Skip to content

Function fastcos

function fastcos(const T1 &) math

template <numeric T1>
KFR_FUNCTION flt_type<T1> fastcos(const T1& x)

Returns a fast (lower-precision) approximation of the trigonometric cosine of x.

Template parameters
T1 Scalar or vector type. Integer arguments are promoted to a floating-point type.
Parameters
x Angle in radians.
Returns
Approximate cosine of x, in the same floating-point type as x (or its element type for vectors).

Fully qualified name: kfr::fastcos(const T1 &)

Declared at math/sin_cos.hpp:87

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.