xsemantic_base¶
Defined in xtensor/xsemantic.hpp
-
template<class D>
class 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< D >, xt::xcontainer_semantic< D >, xt::xview_semantic< D >
Computed assignement
-
template<class E>
inline auto operator+=(const E &e) -> disable_xexpression<E, derived_type&>¶ Adds the scalar
eto*this.- Parameters
e – the scalar to add.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator-=(const E &e) -> disable_xexpression<E, derived_type&>¶ Subtracts the scalar
efrom*this.- Parameters
e – the scalar to subtract.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator*=(const E &e) -> disable_xexpression<E, derived_type&>¶ Multiplies
*thiswith the scalare.- Parameters
e – the scalar involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator/=(const E &e) -> disable_xexpression<E, derived_type&>¶ Divides
*thisby the scalare.- Parameters
e – the scalar involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator%=(const E &e) -> disable_xexpression<E, derived_type&>¶ Computes the remainder of
*thisafter division by the scalare.- Parameters
e – the scalar involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator&=(const E &e) -> disable_xexpression<E, derived_type&>¶ Computes the bitwise and of
*thisand the scalareand assigns it to*this.- Parameters
e – the scalar involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator|=(const E &e) -> disable_xexpression<E, derived_type&>¶ Computes the bitwise or of
*thisand the scalareand assigns it to*this.- Parameters
e – the scalar involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator^=(const E &e) -> disable_xexpression<E, derived_type&>¶ Computes the bitwise xor of
*thisand the scalareand assigns it to*this.- Parameters
e – the scalar involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator+=(const xexpression<E> &e) -> derived_type&¶ Adds the xexpression
eto*this.- Parameters
e – the xexpression to add.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator-=(const xexpression<E> &e) -> derived_type&¶ Subtracts the xexpression
efrom*this.- Parameters
e – the xexpression to subtract.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator*=(const xexpression<E> &e) -> derived_type&¶ Multiplies
*thiswith the xexpressione.- Parameters
e – the xexpression involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator/=(const xexpression<E> &e) -> derived_type&¶ Divides
*thisby the xexpressione.- Parameters
e – the xexpression involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator%=(const xexpression<E> &e) -> derived_type&¶ Computes the remainder of
*thisafter division by the xexpressione.- Parameters
e – the xexpression involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator&=(const xexpression<E> &e) -> derived_type&¶ Computes the bitwise and of
*thisand the xexpressioneand assigns it to*this.- Parameters
e – the xexpression involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator|=(const xexpression<E> &e) -> derived_type&¶ Computes the bitwise or of
*thisand the xexpressioneand assigns it to*this.- Parameters
e – the xexpression involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto operator^=(const xexpression<E> &e) -> derived_type&¶ Computes the bitwise xor of
*thisand the xexpressioneand assigns it to*this.- Parameters
e – the xexpression involved in the operation.
- Returns
a reference to
*this.
Assign functions
-
template<class E>
inline auto assign(const xexpression<E> &e) -> derived_type&¶ Assigns the xexpression
eto*this.Ensures no temporary will be used to perform the assignment.
- Parameters
e – the xexpression to assign.
- Returns
a reference to
*this.
-
template<class E>
inline auto plus_assign(const xexpression<E> &e) -> derived_type&¶ Adds the xexpression
eto*this.Ensures no temporary will be used to perform the assignment.
- Parameters
e – the xexpression to add.
- Returns
a reference to
*this.
-
template<class E>
inline auto minus_assign(const xexpression<E> &e) -> derived_type&¶ Subtracts the xexpression
eto*this.Ensures no temporary will be used to perform the assignment.
- Parameters
e – the xexpression to subtract.
- Returns
a reference to
*this.
-
template<class E>
inline auto multiplies_assign(const xexpression<E> &e) -> derived_type&¶ Multiplies
*thiswith the xexpressione.Ensures no temporary will be used to perform the assignment.
- Parameters
e – the xexpression involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto divides_assign(const xexpression<E> &e) -> derived_type&¶ Divides
*thisby the xexpressione.Ensures no temporary will be used to perform the assignment.
- Parameters
e – the xexpression involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto modulus_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.
- Parameters
e – the xexpression involved in the operation.
- Returns
a reference to
*this.
-
template<class E>
inline auto bit_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.
- Parameters
e – the xexpression to add.
- Returns
a reference to
*this.
-
template<class E>
inline auto bit_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.
- Parameters
e – the xexpression to add.
- Returns
a reference to
*this.
-
template<class E>
inline auto bit_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.
- Parameters
e – the xexpression to add.
- Returns
a reference to
*this.