xexpression¶
Defined in xtensor/xexpression.hpp
- template <class D>
-
class xt
::
xexpression
¶ Base class for xexpressions.
The xexpression class is the base class for all classes representing an expression that can be evaluated to a multidimensional container with tensor semantic. Functions that can apply to any xexpression regardless of its specific type should take a xexpression argument.
- Template Parameters
E
: The derived type.
Subclassed by xt::xsemantic_base< D >
Downcast functions
-
auto xt::xexpression
derived_cast
()¶ Returns a reference to the actual derived type of the xexpression.
Returns a constant reference to the actual derived type of the xexpression.
-
auto xt::xexpression
derived_cast
() const¶ Returns a constant reference to the actual derived type of the xexpression.