xsemantic_base¶
Defined in xtensor/xsemantic.hpp
-
template<class
D>
classxt::xsemantic_base: public select_expression_base_t<D>¶ Base interface for assignable xexpressions.
The xsemantic_base class defines the interface for assignable xexpressions.
- Template Parameters
D: The derived type, i.e. the inheriting class for which xsemantic_base provides the interface.
Subclassed by xt::xchunked_semantic< xchunked_array< chunk_storage, extension > >, xt::xcontainer_semantic< xtensor_container< EC, N, L, Tag > >, xt::xcontainer_semantic< xoptional_assembly< VE, FE > >, xt::xcontainer_semantic< xarray_adaptor< EC, L, SC, Tag > >, xt::xcontainer_semantic< xarray_container< EC, L, SC, Tag > >, xt::xcontainer_semantic< xfunctor_adaptor< F, CT > >, xt::xcontainer_semantic< xoptional_assembly_adaptor< VEC, FEC > >, xt::xcontainer_semantic< xfixed_container< ET, S, L, SH, Tag > >, xt::xcontainer_semantic< xtensor_adaptor< EC, N, L, Tag > >, xt::xcontainer_semantic< xfixed_adaptor< EC, S, L, SH, Tag > >, xt::xview_semantic< xindex_view< CT, I > >, xt::xview_semantic< xstrided_view< CT, S, layout_type::dynamic, detail::flat_storage_getter< CT, ::xt::layout_type::row_major > > >, xt::xview_semantic< xdynamic_view< CT, S, layout_type::dynamic, detail::flat_storage_getter< CT, ::xt::layout_type::row_major > > >, xt::xview_semantic< xmasked_view< CTD, CTM > >, xt::xview_semantic< xtensor_view< EC, N, L, Tag > >, xt::xview_semantic< xfunctor_view< F, CT > >, xt::xview_semantic< xview< CT, S… > >, xt::xchunked_semantic< D >, xt::xcontainer_semantic< D >, xt::xview_semantic< D >
Computed assignement
-
template<class
E>
autooperator+=(const E &e) -> disable_xexpression<E, derived_type&>¶ Adds the scalar
eto*this.- Return
a reference to
*this.- Parameters
e: the scalar to add.
-
template<class
E>
autooperator-=(const E &e) -> disable_xexpression<E, derived_type&>¶ Subtracts the scalar
efrom*this.- Return
a reference to
*this.- Parameters
e: the scalar to subtract.
-
template<class
E>
autooperator*=(const E &e) -> disable_xexpression<E, derived_type&>¶ Multiplies
*thiswith the scalare.- Return
a reference to
*this.- Parameters
e: the scalar involved in the operation.
-
template<class
E>
autooperator/=(const E &e) -> disable_xexpression<E, derived_type&>¶ Divides
*thisby the scalare.- Return
a reference to
*this.- Parameters
e: the scalar involved in the operation.
-
template<class
E>
autooperator%=(const E &e) -> disable_xexpression<E, derived_type&>¶ Computes the remainder of
*thisafter division by the scalare.- Return
a reference to
*this.- Parameters
e: the scalar involved in the operation.
-
template<class
E>
autooperator&=(const E &e) -> disable_xexpression<E, derived_type&>¶ Computes the bitwise and of
*thisand the scalareand assigns it to*this.- Return
a reference to
*this.- Parameters
e: the scalar involved in the operation.
-
template<class
E>
autooperator|=(const E &e) -> disable_xexpression<E, derived_type&>¶ Computes the bitwise or of
*thisand the scalareand assigns it to*this.- Return
a reference to
*this.- Parameters
e: the scalar involved in the operation.
-
template<class
E>
autooperator^=(const E &e) -> disable_xexpression<E, derived_type&>¶ Computes the bitwise xor of
*thisand the scalareand assigns it to*this.- Return
a reference to
*this.- Parameters
e: the scalar involved in the operation.
-
template<class
E>
autooperator+=(const xexpression<E> &e) -> derived_type&¶ Adds the xexpression
eto*this.- Return
a reference to
*this.- Parameters
e: the xexpression to add.
-
template<class
E>
autooperator-=(const xexpression<E> &e) -> derived_type&¶ Subtracts the xexpression
efrom*this.- Return
a reference to
*this.- Parameters
e: the xexpression to subtract.
-
template<class
E>
autooperator*=(const xexpression<E> &e) -> derived_type&¶ Multiplies
*thiswith the xexpressione.- Return
a reference to
*this.- Parameters
e: the xexpression involved in the operation.
-
template<class
E>
autooperator/=(const xexpression<E> &e) -> derived_type&¶ Divides
*thisby the xexpressione.- Return
a reference to
*this.- Parameters
e: the xexpression involved in the operation.
-
template<class
E>
autooperator%=(const xexpression<E> &e) -> derived_type&¶ Computes the remainder of
*thisafter division by the xexpressione.- Return
a reference to
*this.- Parameters
e: the xexpression involved in the operation.
-
template<class
E>
autooperator&=(const xexpression<E> &e) -> derived_type&¶ Computes the bitwise and of
*thisand the xexpressioneand assigns it to*this.- Return
a reference to
*this.- Parameters
e: the xexpression involved in the operation.
-
template<class
E>
autooperator|=(const xexpression<E> &e) -> derived_type&¶ Computes the bitwise or of
*thisand the xexpressioneand assigns it to*this.- Return
a reference to
*this.- Parameters
e: the xexpression involved in the operation.
-
template<class
E>
autooperator^=(const xexpression<E> &e) -> derived_type&¶ Computes the bitwise xor of
*thisand the xexpressioneand assigns it to*this.- Return
a reference to
*this.- Parameters
e: the xexpression involved in the operation.
Assign functions
-
template<class
E>
autoassign(const xexpression<E> &e) -> derived_type&¶ Assigns the xexpression
eto*this.Ensures no temporary will be used to perform the assignment.
- Return
a reference to
*this.- Parameters
e: the xexpression to assign.
-
template<class
E>
autoplus_assign(const xexpression<E> &e) -> derived_type&¶ Adds the xexpression
eto*this.Ensures no temporary will be used to perform the assignment.
- Return
a reference to
*this.- Parameters
e: the xexpression to add.
-
template<class
E>
autominus_assign(const xexpression<E> &e) -> derived_type&¶ Subtracts the xexpression
eto*this.Ensures no temporary will be used to perform the assignment.
- Return
a reference to
*this.- Parameters
e: the xexpression to subtract.
-
template<class
E>
automultiplies_assign(const xexpression<E> &e) -> derived_type&¶ Multiplies
*thiswith the xexpressione.Ensures no temporary will be used to perform the assignment.
- Return
a reference to
*this.- Parameters
e: the xexpression involved in the operation.
-
template<class
E>
autodivides_assign(const xexpression<E> &e) -> derived_type&¶ Divides
*thisby the xexpressione.Ensures no temporary will be used to perform the assignment.
- Return
a reference to
*this.- Parameters
e: the xexpression involved in the operation.
-
template<class
E>
automodulus_assign(const xexpression<E> &e) -> derived_type&¶ Computes the remainder of
*thisafter division by the xexpressione.Ensures no temporary will be used to perform the assignment.
- Return
a reference to
*this.- Parameters
e: the xexpression involved in the operation.
-
template<class
E>
autobit_and_assign(const xexpression<E> &e) -> derived_type&¶ Computes the bitwise and of
eto*this.Ensures no temporary will be used to perform the assignment.
- Return
a reference to
*this.- Parameters
e: the xexpression to add.
-
template<class
E>
autobit_or_assign(const xexpression<E> &e) -> derived_type&¶ Computes the bitwise or of
eto*this.Ensures no temporary will be used to perform the assignment.
- Return
a reference to
*this.- Parameters
e: the xexpression to add.
-
template<class
E>
autobit_xor_assign(const xexpression<E> &e) -> derived_type&¶ Computes the bitwise xor of
eto*this.Ensures no temporary will be used to perform the assignment.
- Return
a reference to
*this.- Parameters
e: the xexpression to add.