|
xtensor
|
Base interface for assignable xexpressions. More...
#include <xsemantic.hpp>
Public Types | |
| using | base_type = select_expression_base_t<D> |
| using | derived_type = typename base_type::derived_type |
| using | temporary_type = typename xcontainer_inner_types<D>::temporary_type |
Public Member Functions | |
Computed assignement | |
| template<class E> | |
| disable_xexpression< E, derived_type & > | operator+= (const E &) |
Adds the scalar e to *this. | |
| template<class E> | |
| disable_xexpression< E, derived_type & > | operator-= (const E &) |
Subtracts the scalar e from *this. | |
| template<class E> | |
| disable_xexpression< E, derived_type & > | operator*= (const E &) |
Multiplies *this with the scalar e. | |
| template<class E> | |
| disable_xexpression< E, derived_type & > | operator/= (const E &) |
Divides *this by the scalar e. | |
| template<class E> | |
| disable_xexpression< E, derived_type & > | operator%= (const E &) |
Computes the remainder of *this after division by the scalar e. | |
| template<class E> | |
| disable_xexpression< E, derived_type & > | operator&= (const E &) |
Computes the bitwise and of *this and the scalar e and assigns it to *this. | |
| template<class E> | |
| disable_xexpression< E, derived_type & > | operator|= (const E &) |
Computes the bitwise or of *this and the scalar e and assigns it to *this. | |
| template<class E> | |
| disable_xexpression< E, derived_type & > | operator^= (const E &) |
Computes the bitwise xor of *this and the scalar e and assigns it to *this. | |
| template<class E> | |
| derived_type & | operator+= (const xexpression< E > &) |
Adds the xexpression e to *this. | |
| template<class E> | |
| derived_type & | operator-= (const xexpression< E > &) |
Subtracts the xexpression e from *this. | |
| template<class E> | |
| derived_type & | operator*= (const xexpression< E > &) |
Multiplies *this with the xexpression e. | |
| template<class E> | |
| derived_type & | operator/= (const xexpression< E > &) |
Divides *this by the xexpression e. | |
| template<class E> | |
| derived_type & | operator%= (const xexpression< E > &) |
Computes the remainder of *this after division by the xexpression e. | |
| template<class E> | |
| derived_type & | operator&= (const xexpression< E > &) |
Computes the bitwise and of *this and the xexpression e and assigns it to *this. | |
| template<class E> | |
| derived_type & | operator|= (const xexpression< E > &) |
Computes the bitwise or of *this and the xexpression e and assigns it to *this. | |
| template<class E> | |
| derived_type & | operator^= (const xexpression< E > &) |
Computes the bitwise xor of *this and the xexpression e and assigns it to *this. | |
Assign functions | |
| template<class E, class P> | |
| derived_type & | assign (const xexpression< E > &e, P p) |
Assigns the xexpression e to *this. | |
| template<class E, class P> | |
| derived_type & | plus_assign (const xexpression< E > &e, P p) |
Adds the xexpression e to *this. | |
| template<class E, class P> | |
| derived_type & | minus_assign (const xexpression< E > &e, P p) |
Subtracts the xexpression e to *this. | |
| template<class E, class P> | |
| derived_type & | multiplies_assign (const xexpression< E > &e, P p) |
Multiplies *this with the xexpression e. | |
| template<class E, class P> | |
| derived_type & | divides_assign (const xexpression< E > &e, P p) |
Divides *this by the xexpression e. | |
| template<class E, class P> | |
| derived_type & | modulus_assign (const xexpression< E > &e, P p) |
Computes the remainder of *this after division by the xexpression e. | |
| template<class E, class P> | |
| derived_type & | bit_and_assign (const xexpression< E > &e, P p) |
Computes the bitwise and of e to *this. | |
| template<class E, class P> | |
| derived_type & | bit_or_assign (const xexpression< E > &e, P p) |
Computes the bitwise or of e to *this. | |
| template<class E, class P> | |
| derived_type & | bit_xor_assign (const xexpression< E > &e, P p) |
Computes the bitwise xor of e to *this. | |
| template<class E> | |
| derived_type & | operator= (const xexpression< E > &) |
Base interface for assignable xexpressions.
The xsemantic_base class defines the interface for assignable xexpressions.
| D | The derived type, i.e. the inheriting class for which xsemantic_base provides the interface. |
Definition at line 58 of file xsemantic.hpp.
| using xt::xsemantic_base< D >::base_type = select_expression_base_t<D> |
Definition at line 62 of file xsemantic.hpp.
| using xt::xsemantic_base< D >::derived_type = typename base_type::derived_type |
Definition at line 63 of file xsemantic.hpp.
| using xt::xsemantic_base< D >::temporary_type = typename xcontainer_inner_types<D>::temporary_type |
Definition at line 65 of file xsemantic.hpp.
|
inline |
Assigns the xexpression e to *this.
Ensures no temporary will be used to perform the assignment.
| e | the xexpression to assign. |
*this. Definition at line 517 of file xsemantic.hpp.
|
inline |
Computes the bitwise and of e to *this.
Ensures no temporary will be used to perform the assignment.
| e | the xexpression to add. |
*this. Definition at line 618 of file xsemantic.hpp.
|
inline |
Computes the bitwise or of e to *this.
Ensures no temporary will be used to perform the assignment.
| e | the xexpression to add. |
*this. Definition at line 631 of file xsemantic.hpp.
|
inline |
Computes the bitwise xor of e to *this.
Ensures no temporary will be used to perform the assignment.
| e | the xexpression to add. |
*this. Definition at line 644 of file xsemantic.hpp.
|
inline |
Divides *this by the xexpression e.
Ensures no temporary will be used to perform the assignment.
| e | the xexpression involved in the operation. |
*this. Definition at line 592 of file xsemantic.hpp.
|
inline |
Subtracts the xexpression e to *this.
Ensures no temporary will be used to perform the assignment.
| e | the xexpression to subtract. |
*this. Definition at line 566 of file xsemantic.hpp.
|
inline |
Computes the remainder of *this after division by the xexpression e.
Ensures no temporary will be used to perform the assignment.
| e | the xexpression involved in the operation. |
*this. Definition at line 605 of file xsemantic.hpp.
|
inline |
Multiplies *this with the xexpression e.
Ensures no temporary will be used to perform the assignment.
| e | the xexpression involved in the operation. |
*this. Definition at line 579 of file xsemantic.hpp.
|
inline |
Computes the remainder of *this after division by the scalar e.
| e | the scalar involved in the operation. |
*this. Definition at line 366 of file xsemantic.hpp.
|
inline |
Computes the remainder of *this after division by the xexpression e.
| e | the xexpression involved in the operation. |
*this. Definition at line 462 of file xsemantic.hpp.
|
inline |
Computes the bitwise and of *this and the scalar e and assigns it to *this.
| e | the scalar involved in the operation. |
*this. Definition at line 378 of file xsemantic.hpp.
|
inline |
Computes the bitwise and of *this and the xexpression e and assigns it to *this.
| e | the xexpression involved in the operation. |
*this. Definition at line 474 of file xsemantic.hpp.
|
inline |
Multiplies *this with the scalar e.
| e | the scalar involved in the operation. |
*this. Definition at line 342 of file xsemantic.hpp.
|
inline |
Multiplies *this with the xexpression e.
| e | the xexpression involved in the operation. |
*this. Definition at line 438 of file xsemantic.hpp.
|
inline |
Adds the scalar e to *this.
| e | the scalar to add. |
*this. Definition at line 318 of file xsemantic.hpp.
|
inline |
Adds the xexpression e to *this.
| e | the xexpression to add. |
*this. Definition at line 414 of file xsemantic.hpp.
|
inline |
Subtracts the scalar e from *this.
| e | the scalar to subtract. |
*this. Definition at line 330 of file xsemantic.hpp.
|
inline |
Subtracts the xexpression e from *this.
| e | the xexpression to subtract. |
*this. Definition at line 426 of file xsemantic.hpp.
|
inline |
Divides *this by the scalar e.
| e | the scalar involved in the operation. |
*this. Definition at line 354 of file xsemantic.hpp.
|
inline |
Divides *this by the xexpression e.
| e | the xexpression involved in the operation. |
*this. Definition at line 450 of file xsemantic.hpp.
|
inlineprotected |
Definition at line 651 of file xsemantic.hpp.
|
inline |
Computes the bitwise xor of *this and the scalar e and assigns it to *this.
| e | the scalar involved in the operation. |
*this. Definition at line 402 of file xsemantic.hpp.
|
inline |
Computes the bitwise xor of *this and the xexpression e and assigns it to *this.
| e | the xexpression involved in the operation. |
*this. Definition at line 498 of file xsemantic.hpp.
|
inline |
Computes the bitwise or of *this and the scalar e and assigns it to *this.
| e | the scalar involved in the operation. |
*this. Definition at line 390 of file xsemantic.hpp.
|
inline |
Computes the bitwise or of *this and the xexpression e and assigns it to *this.
| e | the xexpression involved in the operation. |
*this. Definition at line 486 of file xsemantic.hpp.
|
inline |
Adds the xexpression e to *this.
Ensures no temporary will be used to perform the assignment.
| e | the xexpression to add. |
*this. Definition at line 553 of file xsemantic.hpp.