Mathematical Functions¶
High-performance mathematical operations and transcendental functions.
A¶
functioncompiletime::abs(T) Compile-time absolute value.functionacos(const T1 &) Returns the arc cosine of x. The returned angle is in the range 0 through \(\pi\) .functionasin(const T1 &) Returns the arc sine of x. The returned angle is in the range \(-\pi/2\) through \(\pi/2\) .functionatan2(const T1 &, const T2 &) Returns the arc tangent of y/x using the signs of both arguments to determine the correct quadrant. The result is in the range \([-\pi, \pi]\) .functionatan2deg(const T1 &, const T2 &) Returns the arc tangent of y/x (expressed in degrees) using the signs of both arguments to determine the correct quadrant. The result is in the range [-180, 180].functionatan(const T1 &) Returns the arc tangent of x. The returned angle is in the range \(-\pi/2\) through \(\pi/2\) .functionatandeg(const T1 &) Returns the arc tangent of x, expressed in degrees. The returned angle is in the range -90 through 90.
C¶
functioncabs(const T1 &) Returns the absolute value (magnitude) of the complex number xfunctioncabssqr(const T1 &) Returns the squared absolute value (magnitude squared) of the complex number xfunctioncarg(const T1 &) Returns the phase angle (argument) of the complex number xfunctioncartesian(const T1 &) Converts a complex number from polar to cartesian representationfunctioncatmullrom(M, T, T, T, T) Catmull-Rom spline interpolation.functioncbrt(const T1 &) Returns the cube root of x.functionccos(const T1 &) Returns the cosine of the complex number xfunctionccosh(const T1 &) Returns the hyperbolic cosine of the complex number xfunctioncexp10(const T1 &) Returns 10 raised to the complex number xfunctioncexp2(const T1 &) Returns 2 raised to the complex number xfunctioncexp(const T1 &) Returns e raised to the complex number xfunctionclog10(const T1 &) Returns the common (base-10) logarithm of the complex number xfunctionclog2(const T1 &) Returns the binary (base-2) logarithm of the complex number xfunctionclog(const T1 &) Returns the natural logarithm of the complex number xfunctioncos2x(const T &, const T &) Returnscos(2x)from already computedsin(x)andcos(x).functioncos3x(const T &, const T &) Returnscos(3x)from already computedsin(x)andcos(x).functioncos(const T1 &) Returns the trigonometric cosine of x, evaluated in radians.functioncosdeg(const T1 &) Returns the trigonometric cosine of the angle expressed in degrees.functioncosh(const T1 &) Returns the hyperbolic cosine of x.functioncoshsinh(const T1 &) Computes cosh and sinh of x in a single pass and interleaves the results.functioncosine(M, T, T) Cosine interpolation.functioncossin(const T1 &) Returns the trigonometric cosine of the even elements ofxand sine of the odd elements.functioncossindeg(const T1 &) Returns the trigonometric cosine of the even elements and sine of the odd elements ofx,wherexis a vector of angles expressed in degrees.functioncompiletime::cos(T) Compile-time cosine, derived fromsin.functioncoth(const T1 &) Returns the hyperbolic cotangent of x.functioncsin(const T1 &) Returns the sine of the complex number xfunctioncsinh(const T1 &) Returns the hyperbolic sine of the complex number xfunctioncsqr(const T1 &) Returns square of the complex number xfunctioncsqrt(const T1 &) Returns square root of the complex number xfunctioncubic(M, T, T, T, T) Cubic interpolation.
E¶
functionexp10(const T1 &) Returns 10 raised to the given power x.functionexp2(const T1 &) Returns 2 raised to the given power x.functionexp_fmadd(const T1 &, const T2 &, const T3 &) Returns exp(x * m + a).functionexp(const T1 &) Returns e raised to the given power x.
F¶
functionfactorial_approx(const T1 &) Returns the approximate factorial of an argument.variablefactorial_table Lookup table of exact factorial values for 0 <= n <= 20.functionfactorial(int) Returns the exact factorial of an argument.functionfastcos(const T1 &) Returns a fast (lower-precision) approximation of the trigonometric cosine of x.functionfastcosdeg(const T1 &) Returns a fast (lower-precision) approximation of the trigonometric cosine of the angle expressed in degrees.functionfastsin(const T1 &) Returns a fast (lower-precision) approximation of the trigonometric sine of x.functionfastsindeg(const T1 &) Returns a fast (lower-precision) approximation of the trigonometric sine of the angle expressed in degrees.
G¶
functiongamma(const T1 &) Returns the approximate gamma function of an argument.
L¶
functionlinear(M, T, T) Linear interpolation.functionlog10(const T1 &) Returns the common (base-10) logarithm of x.functionlog2(const T1 &) Returns the binary (base-2) logarithm of x.functionlog_fmadd(const T1 &, const T2 &, const T3 &) Returns log(x) * m + a.functionlogb(const T1 &) Returns the unbiased exponent of x as a floating-point value (equivalent tostd::logb).functionlog(const T1 &) Returns the natural logarithm of x.functionlogm(const T1 &, const T2 &) Returns log(x) * m.functionlogn(const T1 &, const T2 &) Returns the logarithm of x with base y.
M¶
functionmodzerobessel(const T1 &) Computes the modified zeroth-order Bessel function of the first kind. This function calculates I₀(x), the modified Bessel function of the first kind with order zero, for the given input value.functioncompiletime::mulsign(T, T) Compile-time multiplication by sign of a second value.
N¶
functionnearest(M, T, T) Nearest-neighbor interpolation.
P¶
functionpolar(const T1 &) Converts a complex number to its polar representation (magnitude, phase)functionpow(const T1 &, const T2 &) Returns x raised to the given power y.
R¶
functionroot(const T1 &, const T2 &) Returns the real y-th root of x.
S¶
functioncompiletime::select(bool, T, T) Compile-time conditional select between two values.functionsin2x(const T &, const T &) Returnssin(2x)from already computedsin(x)andcos(x).functionsin3x(const T &, const T &) Returnssin(3x)from already computedsin(x)andcos(x).functionsinc(const T1 &) Returns the (normalized) sinc function ofx.functionsin(const T1 &) Returns the trigonometric sine of x, evaluated in radians.functionsincos(const T1 &) Returns the trigonometric sine of the even elements ofxand cosine of the odd elements.functionsincosdeg(const T1 &) Returns the trigonometric sine of the even elements and cosine of the odd elements ofx,wherexis a vector of angles expressed in degrees.functionsindeg(const T1 &) Returns the trigonometric sine of the angle expressed in degrees.functionsinh(const T1 &) Returns the hyperbolic sine of x.functionsinhcosh(const T1 &) Computes sinh and cosh of x in a single pass and interleaves the results.functioncompiletime::sin(T) Compile-time sine, accurate to better than 1e-4.functionsqrt(const T1 &) Returns the positive square root of x. \(\sqrt{x}\)
T¶
functiontan(const T1 &) Computes the tangent of the input (in radians).functiontandeg(const T1 &) Computes the tangent of the input (in degrees).functiontanh(const T1 &) Returns the hyperbolic tangent of x.functioncompiletime::trunc(T) Compile-time truncation toward zero.
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.