xsemantic_base¶
Defined in xtensor/xsemantic.hpp
- template <class D>
-
class
xt::xsemantic_base¶ 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.
Inherits from xt::xexpression< D >
Subclassed by xt::xadaptor_semantic< D >, xt::xcontainer_semantic< D >, xt::xview_semantic< D >
Computed assignement
- template <class E>
-
auto
operator+=(const E &e)¶ Adds the scalar
eto*this.- Return
- a reference to
*this. - Parameters
e: the scalar to add.
- template <class E>
-
auto
operator-=(const E &e)¶ Subtracts the scalar
efrom*this.- Return
- a reference to
*this. - Parameters
e: the scalar to subtract.
- template <class E>
-
auto
operator*=(const E &e)¶ Multiplies
*thiswith the scalare.- Return
- a reference to
*this. - Parameters
e: the scalar involved in the operation.
- template <class E>
-
auto
operator/=(const E &e)¶ Divides
*thisby the scalare.- Return
- a reference to
*this. - Parameters
e: the scalar involved in the operation.
- template <class E>
-
auto
operator+=(const xexpression<E> &e)¶ Adds the xexpression
eto*this.- Return
- a reference to
*this. - Parameters
e: the xexpression to add.
- template <class E>
-
auto
operator-=(const xexpression<E> &e)¶ Subtracts the xexpression
efrom*this.- Return
- a reference to
*this. - Parameters
e: the xexpression to subtract.
- template <class E>
-
auto
operator*=(const xexpression<E> &e)¶ Multiplies
*thiswith the xexpressione.- Return
- a reference to
*this. - Parameters
e: the xexpression involved in the operation.
- template <class E>
-
auto
operator/=(const xexpression<E> &e)¶ Divides
*thisby the xexpressione.- Return
- a reference to
*this. - Parameters
e: the xexpression involved in the operation.
Assign functions
- template <class E>
-
auto
assign(const xexpression<E> &e)¶ 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>
-
auto
plus_assign(const xexpression<E> &e)¶ 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>
-
auto
minus_assign(const xexpression<E> &e)¶ 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>
-
auto
multiplies_assign(const xexpression<E> &e)¶ 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>
-
auto
divides_assign(const xexpression<E> &e)¶ 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.