Dense multidimensional adaptor holding optional values, optimized for tensor operations.
More...
|
|
template<class E> |
| xoptional_assembly_adaptor & | operator= (const xexpression< E > &e) |
| template<class OVE, class OFE> |
| | xoptional_assembly_adaptor (OVE &&ve, OFE &&fe) |
| | Constructs an xoptional_assembly_adaptor of the given value and missing mask expressions.
|
| | xoptional_assembly_adaptor (const xoptional_assembly_adaptor &) |
| xoptional_assembly_adaptor & | operator= (const xoptional_assembly_adaptor &) |
| | xoptional_assembly_adaptor (xoptional_assembly_adaptor &&) |
| xoptional_assembly_adaptor & | operator= (xoptional_assembly_adaptor &&) |
| xoptional_assembly_adaptor & | operator= (temporary_type &&) |
| layout_iterator< L > | begin () noexcept |
| | Returns an iterator to the first element of the expression.
|
| broadcast_iterator< S, L > | begin (const S &shape) noexcept |
| | Returns an iterator to the first element of the expression.
|
| const_layout_iterator< L > | begin () const noexcept |
| | Returns a constant iterator to the first element of the expression.
|
| const_broadcast_iterator< S, L > | begin (const S &shape) const noexcept |
| | Returns a constant iterator to the first element of the expression.
|
| layout_iterator< L > | end () noexcept |
| | Returns an iterator to the element following the last element of the expression.
|
| broadcast_iterator< S, L > | end (const S &shape) noexcept |
| | Returns an iterator to the element following the last element of the expression.
|
| const_layout_iterator< L > | end () const noexcept |
| | Returns a constant iterator to the element following the last element of the expression.
|
| const_broadcast_iterator< S, L > | end (const S &shape) const noexcept |
| | Returns a constant iterator to the element following the last element of the expression.
|
| reverse_layout_iterator< L > | rbegin () noexcept |
| | Returns an iterator to the first element of the reversed expression.
|
| reverse_broadcast_iterator< S, L > | rbegin (const S &shape) noexcept |
| | Returns an iterator to the first element of the reversed expression.
|
| const_reverse_layout_iterator< L > | rbegin () const noexcept |
| | Returns a constant iterator to the first element of the reversed expression.
|
| const_reverse_broadcast_iterator< S, L > | rbegin (const S &shape) const noexcept |
| | Returns a constant iterator to the first element of the reversed expression.
|
| reverse_layout_iterator< L > | rend () noexcept |
| | Returns an iterator to the element following the last element of the reversed expression.
|
| reverse_broadcast_iterator< S, L > | rend (const S &shape) noexcept |
| | Returns an iterator to the element following the last element of the reversed expression.
|
| const_reverse_layout_iterator< L > | rend () const noexcept |
| | Returns a constant iterator to the element following the last element of the reversed expression.
|
| const_reverse_broadcast_iterator< S, L > | rend (const S &shape) const noexcept |
| | Returns a constant iterator to the element following the last element of the reversed expression.
|
| size_type | size () const noexcept |
| | Returns the number of element in the optional assembly.
|
| constexpr size_type | dimension () const noexcept |
| | Returns the number of dimensions of the optional assembly.
|
| const inner_shape_type & | shape () const noexcept |
| | Returns the shape of the optional assembly.
|
| const inner_strides_type & | strides () const noexcept |
| | Returns the strides of the optional assembly.
|
| const inner_backstrides_type & | backstrides () const noexcept |
| | Returns the backstrides of the optional assembly.
|
| void | resize (const S &shape, bool force=false) |
| | Resizes the optional assembly.
|
| auto & | reshape (const S &shape, layout_type layout=static_layout) & |
| | Reshapes the optional assembly.
|
| layout_type | layout () const noexcept |
| | Return the layout_type of the container.
|
| bool | is_contiguous () const noexcept |
| void | fill (const T &value) |
| | Fills the data with the given value.
|
| reference | operator() (Args... args) |
| | Returns a reference to the element at the specified position in the optional assembly.
|
| reference | at (Args... args) |
| | Returns a reference to the element at the specified position in the optional assembly, after dimension and bounds checking.
|
| reference | unchecked (Args... args) |
| | Returns a reference to the element at the specified position in the optional assembly.
|
| disable_integral_t< S, reference > | operator[] (const S &index) |
| | Returns a reference to the element at the specified position in the optional assembly.
|
| reference | periodic (Args... args) |
| | Returns a reference to the element at the specified position in the optional assembly, after applying periodicity to the indices (negative and 'overflowing' indices are changed).
|
| reference | front () |
| | Returns a reference to the first element of the optional assembly.
|
| reference | back () |
| | Returns a reference to the last element of the optional assembly.
|
| reference | flat (size_type args) |
| | Returns a reference to the element at the specified position of the underlying storage in the optional assembly.
|
| reference | element (It first, It last) |
| | Returns a reference to the element at the specified position in the optional assembly.
|
| bool | in_bounds (Args... args) const |
| | Returns true only if the the specified position is a valid entry in the expression.
|
| storage_type & | storage () noexcept |
| value_type * | data () noexcept |
| const size_type | data_offset () const noexcept |
| bool | broadcast_shape (S &shape, bool reuse_cache=false) const |
| | Broadcast the shape of the optional assembly to the specified parameter.
|
| bool | has_linear_assign (const S &strides) const noexcept |
| | Checks whether the xoptional_assembly_base can be linearly assigned to an expression with the specified strides.
|
| linear_iterator | linear_begin () noexcept |
| linear_iterator | linear_end () noexcept |
| const_linear_iterator | linear_cbegin () const noexcept |
| const_linear_iterator | linear_cend () const noexcept |
| reverse_linear_iterator | linear_rbegin () noexcept |
| reverse_linear_iterator | linear_rend () noexcept |
| const_reverse_linear_iterator | linear_crbegin () const noexcept |
| const_reverse_linear_iterator | linear_crend () const noexcept |
| stepper | stepper_begin (const S &shape) noexcept |
| stepper | stepper_end (const S &shape, layout_type l) noexcept |
| value_expression | value () noexcept |
| | Return an expression for the values of the optional assembly.
|
| flag_expression | has_value () noexcept |
| | Return an expression for the missing mask of the optional assembly.
|
| derived_type & | assign_temporary (temporary_type &&) |
| | Assigns the temporary tmp to *this.
|
| derived_type & | assign_xexpression (const xexpression< E > &e) |
| derived_type & | computed_assign (const xexpression< E > &e) |
| derived_type & | scalar_computed_assign (const E &e, F &&f) |
| disable_xexpression< E, derived_type & > | operator+= (const E &) |
| | Adds the scalar e to *this.
|
| disable_xexpression< E, derived_type & > | operator-= (const E &) |
| | Subtracts the scalar e from *this.
|
| disable_xexpression< E, derived_type & > | operator*= (const E &) |
| | Multiplies *this with the scalar e.
|
| disable_xexpression< E, derived_type & > | operator/= (const E &) |
| | Divides *this by the scalar e.
|
| disable_xexpression< E, derived_type & > | operator%= (const E &) |
| | Computes the remainder of *this after division by the scalar e.
|
| disable_xexpression< E, derived_type & > | operator&= (const E &) |
| | Computes the bitwise and of *this and the scalar e and assigns it to *this.
|
| disable_xexpression< E, derived_type & > | operator|= (const E &) |
| | Computes the bitwise or of *this and the scalar e and assigns it to *this.
|
| disable_xexpression< E, derived_type & > | operator^= (const E &) |
| | Computes the bitwise xor of *this and the scalar e and assigns it to *this.
|
| derived_type & | assign (const xexpression< E > &) |
| | Assigns the xexpression e to *this.
|
| derived_type & | plus_assign (const xexpression< E > &) |
| | Adds the xexpression e to *this.
|
| derived_type & | minus_assign (const xexpression< E > &) |
| | Subtracts the xexpression e to *this.
|
| derived_type & | multiplies_assign (const xexpression< E > &) |
| | Multiplies *this with the xexpression e.
|
| derived_type & | divides_assign (const xexpression< E > &) |
| | Divides *this by the xexpression e.
|
| derived_type & | modulus_assign (const xexpression< E > &) |
| | Computes the remainder of *this after division by the xexpression e.
|
| derived_type & | bit_and_assign (const xexpression< E > &) |
| | Computes the bitwise and of e to *this.
|
| derived_type & | bit_or_assign (const xexpression< E > &) |
| | Computes the bitwise or of e to *this.
|
| derived_type & | bit_xor_assign (const xexpression< E > &) |
| | Computes the bitwise xor of e to *this.
|
template<class VEC, class FEC>
class xt::xoptional_assembly_adaptor< VEC, FEC >
Dense multidimensional adaptor holding optional values, optimized for tensor operations.
The xoptional_assembly_adaptor class implements a dense multidimensional adaptor hoding optional values. It is used to provide an optional expression semantic to two tensor expressions, one holding the value, the hother holding the missing mask.
- Template Parameters
-
| VEC | The closure for the type of expression holding the values. |
| FE | The closure for the type of expression holding the missing mask. |
Definition at line 190 of file xoptional_assembly.hpp.