xtensor
|
Functions | |
template<class E > | |
auto | xt::ceil (E &&e) noexcept -> detail::xfunction_type_t< math::ceil_fun, E > |
ceil function. | |
template<class E > | |
auto | xt::floor (E &&e) noexcept -> detail::xfunction_type_t< math::floor_fun, E > |
floor function. | |
template<class E > | |
auto | xt::trunc (E &&e) noexcept -> detail::xfunction_type_t< math::trunc_fun, E > |
trunc function. | |
template<class E > | |
auto | xt::round (E &&e) noexcept -> detail::xfunction_type_t< math::round_fun, E > |
round function. | |
template<class E > | |
auto | xt::nearbyint (E &&e) noexcept -> detail::xfunction_type_t< math::nearbyint_fun, E > |
nearbyint function. | |
template<class E > | |
auto | xt::rint (E &&e) noexcept -> detail::xfunction_type_t< math::rint_fun, E > |
rint function. | |
|
inlinenoexcept |
ceil function.
Returns an xfunction for the element-wise smallest integer value not less than e.
e | an xexpression |
|
inlinenoexcept |
floor function.
Returns an xfunction for the element-wise smallest integer value not greater than e.
e | an xexpression |
|
inlinenoexcept |
nearbyint function.
Returns an xfunction for the element-wise rounding of e to integer values in floating point format, using the current rounding mode. nearbyint never raises FE_INEXACT error.
e | an xexpression |
|
inlinenoexcept |
rint function.
Returns an xfunction for the element-wise rounding of e to integer values in floating point format, using the current rounding mode. Contrary to nearbyint, rint may raise FE_INEXACT error.
e | an xexpression |
|
inlinenoexcept |
round function.
Returns an xfunction for the element-wise nearest integer value to e, rounding halfway cases away from zero, regardless of the current rounding mode.
e | an xexpression |
|
inlinenoexcept |
trunc function.
Returns an xfunction for the element-wise nearest integer not greater in magnitude than e.
e | an xexpression |