std::log<div class="t-tr-text">(性病:: valarray的)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">(std::valarray)</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div>
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <valarray>
|
||
| template< class T > valarray<T> log( const valarray<T>& va ); |
||
计算自然对数的值中的每个元素
va元素 Original:
For each element in
va computes natural logarithm of the value of the element. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 参数
| va | - | 值的数组的操作
Original: value array to apply the operation to The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 返回值
的值数组自然对数的
vaOriginal:
Value array natural logarithms of the values in
va.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 注释
碎末功能(log)是用来执行计算。如果这种功能是不可用的,std::log由于参数依赖查找.
Original:
Unqualified function (log) is used to perform the computation. If such function is not available, std::log is used due to argument dependent lookup.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
该功能可以实现从std::valarray不同的返回类型。在这种情况下,替换类型具有以下属性:
Original:
The function can be implemented with the return type different from std::valarray. In this case, the replacement type has the following properties:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- const提供的所有std::valarray成员函数.Original:All const member functions of std::valarray are provided.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - std::valarray,std::slice_array,std::gslice_array,std::mask_array和std::indirect_array可以由更换型.Original:std::valarray, std::slice_array, std::gslice_array, std::mask_array and std::indirect_array can be constructed from the replacement type.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 所有的函数接受一个参数的类型const std::valarray&也应接受替换类型.Original:All functions accepting a arguments of type const std::valarray& should also accept the replacement type.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 接受两个参数的类型const std::valarray&应该接受所有的功能const std::valarray&的每个组合和置换型.Original:All functions accepting two arguments of type const std::valarray& should accept every combination of const std::valarray& and the replacement type.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
-
[编辑] 可能的实现
template< class T > valarray<T> log( const valarray<T>& va ) { valarray<T> other = va; for (T &i : other) { i = log(i); } } |
[编辑] 为例
| 本节是不完整的 原因: no example |