std::cos(std::valarray) (3) - Linux Manuals
std::cos(std::valarray): std::cos(std::valarray)
NAME
std::cos(std::valarray) - std::cos(std::valarray)
Synopsis
Defined in header <valarray>
template< class T >
valarray<T> cos( const valarray<T>& va );
For each element in va computes cosine of the value of the element.
Parameters
va - value array to apply the operation to
Return value
Value array containing cosines of the values in va.
Notes
Unqualified function (cos) is used to perform the computation. If such function is not available, std::cos is used due to argument dependent lookup.
The function can be implemented with the return type different from std::valarray. In this case, the replacement type has the following properties:
Possible implementation
Example
This section is incomplete
Reason: no example
See also
sin(std::valarray) (function template)
tan(std::valarray) (function template)
acos(std::valarray) (function template)
cos
cosf
cosl computes cosine (cos(x))
(C++11)
(C++11)
cos(std::complex) (function template)