xtensor
Loading...
Searching...
No Matches
Casting operators

Functions

template<class R , class E >
auto xt::cast (E &&e) noexcept -> detail::xfunction_type_t< typename detail::cast< R >::functor, E >
 Element-wise static_cast.
 

Detailed Description

Function Documentation

◆ cast()

template<class R , class E >
auto xt::cast ( E && e) -> detail::xfunction_type_t<typename detail::cast<R>::functor, E>
inlinenoexcept

Element-wise static_cast.

Returns an xfunction for the element-wise static_cast of e to type R.

Parameters
ean xexpression or a scalar
Returns
an xfunction

Definition at line 990 of file xoperation.hpp.