xtensor
|
Functions | |
template<class E > | |
auto | xt::abs (E &&e) noexcept -> detail::xfunction_type_t< math::abs_fun, E > |
Absolute value function. | |
template<class E > | |
auto | xt::fabs (E &&e) noexcept -> detail::xfunction_type_t< math::fabs_fun, E > |
Absolute value function. | |
template<class E1 , class E2 > | |
auto | xt::fmod (E1 &&e1, E2 &&e2) noexcept -> detail::xfunction_type_t< math::fmod_fun, E1, E2 > |
Remainder of the floating point division operation. | |
template<class E1 , class E2 > | |
auto | xt::remainder (E1 &&e1, E2 &&e2) noexcept -> detail::xfunction_type_t< math::remainder_fun, E1, E2 > |
Signed remainder of the division operation. | |
template<class E1 , class E2 , class E3 > | |
auto | xt::fma (E1 &&e1, E2 &&e2, E3 &&e3) noexcept -> detail::xfunction_type_t< math::fma_fun, E1, E2, E3 > |
Fused multiply-add operation. | |
template<class E1 , class E2 > | |
auto | xt::fmax (E1 &&e1, E2 &&e2) noexcept -> detail::xfunction_type_t< math::fmax_fun, E1, E2 > |
Maximum function. | |
template<class E1 , class E2 > | |
auto | xt::fmin (E1 &&e1, E2 &&e2) noexcept -> detail::xfunction_type_t< math::fmin_fun, E1, E2 > |
Minimum function. | |
template<class E1 , class E2 > | |
auto | xt::fdim (E1 &&e1, E2 &&e2) noexcept -> detail::xfunction_type_t< math::fdim_fun, E1, E2 > |
Positive difference function. | |
template<class E > | |
auto | xt::deg2rad (E &&e) noexcept -> detail::xfunction_type_t< math::deg2rad, E > |
Convert angles from degrees to radians. | |
template<class E > | |
auto | xt::radians (E &&e) noexcept -> detail::xfunction_type_t< math::deg2rad, E > |
Convert angles from degrees to radians. | |
template<class E > | |
auto | xt::rad2deg (E &&e) noexcept -> detail::xfunction_type_t< math::rad2deg, E > |
Convert angles from radians to degrees. | |
template<class E > | |
auto | xt::degrees (E &&e) noexcept -> detail::xfunction_type_t< math::rad2deg, E > |
Convert angles from radians to degrees. | |
template<class E1 , class E2 > | |
auto | xt::maximum (E1 &&e1, E2 &&e2) noexcept -> detail::xfunction_type_t< math::maximum< void >, E1, E2 > |
Elementwise maximum. | |
template<class E1 , class E2 > | |
auto | xt::minimum (E1 &&e1, E2 &&e2) noexcept -> detail::xfunction_type_t< math::minimum< void >, E1, E2 > |
Elementwise minimum. | |
template<class T = void, class E , class X , class EVS = std::tuple<evaluation_strategy::lazy_type>, xtl::check_concept< xtl::negation< is_reducer_options< X > >, xtl::negation< xtl::is_integral< std::decay_t< X > > > > = 0> | |
auto | xt::amax (E &&e, X &&axes, EVS es=EVS()) |
Maximum element along given axis. | |
template<class T = void, class E , class X , class EVS = std::tuple<evaluation_strategy::lazy_type>, xtl::check_concept< xtl::negation< is_reducer_options< X > >, xtl::negation< xtl::is_integral< std::decay_t< X > > > > = 0> | |
auto | xt::amin (E &&e, X &&axes, EVS es=EVS()) |
Minimum element along given axis. | |
template<class E1 , class E2 , class E3 > | |
auto | xt::clip (E1 &&e1, E2 &&lo, E3 &&hi) noexcept -> detail::xfunction_type_t< math::clamp_fun, E1, E2, E3 > |
Clip values between hi and lo. | |
template<class E > | |
auto | xt::sign (E &&e) noexcept -> detail::xfunction_type_t< math::sign_fun, E > |
Returns an element-wise indication of the sign of a number. | |
template<class E1 , class E2 , class E3 , typename T > | |
auto | xt::interp (const E1 &x, const E2 &xp, const E3 &fp, T left, T right) |
Returns the one-dimensional piecewise linear interpolant to a function with given discrete data points (xp, fp), evaluated at x. | |
template<class E1 , class E2 = xt::placeholders::xtuph, class E3 = double> | |
auto | xt::unwrap (E1 &&p, E2 discontinuity=xnone(), std::ptrdiff_t axis=-1, E3 period=2.0 *xt::numeric_constants< double >::PI) |
Unwrap by taking the complement of large deltas with respect to the period. | |
template<class E1 , class E2 , class E3 > | |
auto | xt::interp (const E1 &x, const E2 &xp, const E3 &fp) |
Returns the one-dimensional piecewise linear interpolant to a function with given discrete data points (xp, fp), evaluated at x. | |
|
inlinenoexcept |
Absolute value function.
Returns an xfunction for the element-wise absolute value of e.
e | an xexpression |
|
inline |
Maximum element along given axis.
Returns an xreducer for the maximum of elements over given axes.
e | an xexpression |
axes | the axes along which the maximum is found (optional) |
es | evaluation strategy of the reducer |
|
inline |
Minimum element along given axis.
Returns an xreducer for the minimum of elements over given axes.
e | an xexpression |
axes | the axes along which the minimum is found (optional) |
es | evaluation strategy of the reducer |
|
inlinenoexcept |
Clip values between hi and lo.
Returns an xfunction for the element-wise clipped values between lo and hi
e1 | an xexpression or a scalar |
lo | a scalar |
hi | a scalar |
|
inlinenoexcept |
Convert angles from degrees to radians.
Returns an xfunction for the element-wise corresponding angle in radians of e.
e | an xexpression |
|
inlinenoexcept |
Convert angles from radians to degrees.
Returns an xfunction for the element-wise corresponding angle in degrees of e.
e | an xexpression |
|
inlinenoexcept |
Absolute value function.
Returns an xfunction for the element-wise absolute value of e.
e | an xexpression |
|
inlinenoexcept |
Positive difference function.
Returns an xfunction for the element-wise positive difference of e1 and e2.
e1 | an xexpression or a scalar |
e2 | an xexpression or a scalar |
|
inlinenoexcept |
|
inlinenoexcept |
Maximum function.
Returns an xfunction for the element-wise maximum of e1 and e2.
e1 | an xexpression or a scalar |
e2 | an xexpression or a scalar |
|
inlinenoexcept |
Minimum function.
Returns an xfunction for the element-wise minimum of e1 and e2.
e1 | an xexpression or a scalar |
e2 | an xexpression or a scalar |
|
inlinenoexcept |
Remainder of the floating point division operation.
Returns an xfunction for the element-wise remainder of the floating point division operation e1 / e2.
e1 | an xexpression or a scalar |
e2 | an xexpression or a scalar |
Returns the one-dimensional piecewise linear interpolant to a function with given discrete data points (xp, fp), evaluated at x.
x | The x-coordinates at which to evaluate the interpolated values (sorted). |
xp | The x-coordinates of the data points (sorted). |
fp | The y-coordinates of the data points, same length as xp. |
Returns the one-dimensional piecewise linear interpolant to a function with given discrete data points (xp, fp), evaluated at x.
x | The x-coordinates at which to evaluate the interpolated values (sorted). |
xp | The x-coordinates of the data points (sorted). |
fp | The y-coordinates of the data points, same length as xp. |
left | Value to return for x < xp[0]. |
right | Value to return for x > xp[-1] |
|
inlinenoexcept |
Elementwise maximum.
Returns an xfunction for the element-wise maximum between e1 and e2.
e1 | an xexpression |
e2 | an xexpression |
|
inlinenoexcept |
Elementwise minimum.
Returns an xfunction for the element-wise minimum between e1 and e2.
e1 | an xexpression |
e2 | an xexpression |
|
inlinenoexcept |
Convert angles from radians to degrees.
Returns an xfunction for the element-wise corresponding angle in degrees of e.
e | an xexpression |
|
inlinenoexcept |
Convert angles from degrees to radians.
Returns an xfunction for the element-wise corresponding angle in radians of e.
e | an xexpression |
|
inlinenoexcept |
Signed remainder of the division operation.
Returns an xfunction for the element-wise signed remainder of the floating point division operation e1 / e2.
e1 | an xexpression or a scalar |
e2 | an xexpression or a scalar |
|
inlinenoexcept |
Returns an element-wise indication of the sign of a number.
If the number is positive, returns +1. If negative, -1. If the number is zero, returns 0.
e | an xexpression |
|
inline |
Unwrap by taking the complement of large deltas with respect to the period.
https://numpy.org/doc/stable/reference/generated/numpy.unwrap.html
p | Input array. |
discontinuity | Maximum discontinuity between values, default is period / 2 . Values below period / 2 are treated as if they were period / 2 . To have an effect different from the default, use discontinuity > period / 2 . |
axis | Axis along which unwrap will operate, default: the last axis. |
period | Size of the range over which the input wraps. Default: . |