xexpand_dims_view¶
Defined in xframe/xexpand_dims_view.hpp
-
template<class
CT>
classxexpand_dims_view: public xt::xexpression<xexpand_dims_view<CT>>, private xf::xvariable_base<xexpand_dims_view<CT>>¶ View on a variable with additional axes.
The xvariable_masked_view class is used for creating a view on a variable with additional axes.
- Template Parameters
CT: the closure type on the underlying variable.
Public Functions
-
template<class
E>xexpand_dims_view(E &&e, const extra_dimensions_type &dims)¶ Constructs an xexpand_dims_view given a map of extra dimensions.
- Parameters
e: the variable expression on which to create the view.dims: the map of extra dimensions, the key being the dimension name, the value the position where to put the new dimension.
-
template<class
E, classK>
autoxf::expand_dims(E &&e, std::initializer_list<K> dim_names) Creates a view on a variable expression with additional axes, given a list of extra dimension names.
- Parameters
e: the variable expression on which to create the view.dim_names: the list of extra dimension names.
-
template<class
E>
autoxf::expand_dims(E &&e, std::initializer_list<std::pair<typename std::decay_t<E>::key_type, std::size_t>> dims) Creates a view on a variable expression with additional axes, given a list of extra dimensions.
- Parameters
e: the variable expression on which to create the view.dims: the extra dimensions as a mapping “dimension name” -> “position”.