xtensor
Loading...
Searching...
No Matches
Trigonometric function

Functions

template<class E >
auto xt::sin (E &&e) noexcept -> detail::xfunction_type_t< math::sin_fun, E >
 Sine function.
 
template<class E >
auto xt::cos (E &&e) noexcept -> detail::xfunction_type_t< math::cos_fun, E >
 Cosine function.
 
template<class E >
auto xt::tan (E &&e) noexcept -> detail::xfunction_type_t< math::tan_fun, E >
 Tangent function.
 
template<class E >
auto xt::asin (E &&e) noexcept -> detail::xfunction_type_t< math::asin_fun, E >
 Arcsine function.
 
template<class E >
auto xt::acos (E &&e) noexcept -> detail::xfunction_type_t< math::acos_fun, E >
 Arccosine function.
 
template<class E >
auto xt::atan (E &&e) noexcept -> detail::xfunction_type_t< math::atan_fun, E >
 Arctangent function.
 
template<class E1 , class E2 >
auto xt::atan2 (E1 &&e1, E2 &&e2) noexcept -> detail::xfunction_type_t< math::atan2_fun, E1, E2 >
 Artangent function, using signs to determine quadrants.
 

Detailed Description

Function Documentation

◆ acos()

template<class E >
auto xt::acos ( E && e) -> detail::xfunction_type_t<math::acos_fun, E>
inlinenoexcept

Arccosine function.

Returns an xfunction for the element-wise arccosine of e.

Parameters
ean xexpression
Returns
an xfunction

Definition at line 1355 of file xmath.hpp.

◆ asin()

template<class E >
auto xt::asin ( E && e) -> detail::xfunction_type_t<math::asin_fun, E>
inlinenoexcept

Arcsine function.

Returns an xfunction for the element-wise arcsine of e.

Parameters
ean xexpression
Returns
an xfunction

Definition at line 1340 of file xmath.hpp.

◆ atan()

template<class E >
auto xt::atan ( E && e) -> detail::xfunction_type_t<math::atan_fun, E>
inlinenoexcept

Arctangent function.

Returns an xfunction for the element-wise arctangent of e.

Parameters
ean xexpression
Returns
an xfunction

Definition at line 1370 of file xmath.hpp.

◆ atan2()

template<class E1 , class E2 >
auto xt::atan2 ( E1 && e1,
E2 && e2 ) -> detail::xfunction_type_t<math::atan2_fun, E1, E2>
inlinenoexcept

Artangent function, using signs to determine quadrants.

Returns an xfunction for the element-wise arctangent of e1 / e2, using the signs of arguments to determine the correct quadrant.

Parameters
e1an xexpression or a scalar
e2an xexpression or a scalar
Returns
an xfunction
Note
e1 and e2 can't be both scalars.

Definition at line 1388 of file xmath.hpp.

◆ cos()

template<class E >
auto xt::cos ( E && e) -> detail::xfunction_type_t<math::cos_fun, E>
inlinenoexcept

Cosine function.

Returns an xfunction for the element-wise cosine of e (measured in radians).

Parameters
ean xexpression
Returns
an xfunction

Definition at line 1310 of file xmath.hpp.

◆ sin()

template<class E >
auto xt::sin ( E && e) -> detail::xfunction_type_t<math::sin_fun, E>
inlinenoexcept

Sine function.

Returns an xfunction for the element-wise sine of e (measured in radians).

Parameters
ean xexpression
Returns
an xfunction

Definition at line 1295 of file xmath.hpp.

◆ tan()

template<class E >
auto xt::tan ( E && e) -> detail::xfunction_type_t<math::tan_fun, E>
inlinenoexcept

Tangent function.

Returns an xfunction for the element-wise tangent of e (measured in radians).

Parameters
ean xexpression
Returns
an xfunction

Definition at line 1325 of file xmath.hpp.