Dense multidimensional container holding optional values, optimized for tensor operations.
More...
|
|
template<class E> |
| xoptional_assembly & | operator= (const xexpression< E > &e) |
| | xoptional_assembly () |
| | Allocates an uninitialized xoptional_assembly that holds 0 element.
|
| | xoptional_assembly (const shape_type &shape, layout_type l=base_type::static_layout) |
| | Allocates an uninitialized xoptional_assembly with the specified shape and layout_type.
|
| | xoptional_assembly (const shape_type &shape, const value_type &value, layout_type l=base_type::static_layout) |
| | Allocates an xoptional_assembly with the specified shape and layout_type.
|
| | xoptional_assembly (const shape_type &shape, const strides_type &strides) |
| | Allocates an uninitialized xoptional_assembly with the specified shape and strides.
|
| | xoptional_assembly (const shape_type &shape, const strides_type &strides, const value_type &value) |
| | Allocates an uninitialized xoptional_assembly with the specified shape and strides.
|
| | xoptional_assembly (const VE &ve) |
| | Allocates an xoptional_assembly from the specified value expression.
|
| | xoptional_assembly (VE &&ve) |
| | Allocates an xoptional_assembly from the specified value expression.
|
| template<class OVE, class OFE, typename = std::enable_if_t<is_xexpression<OVE>::value && is_xexpression<OFE>::value>> |
| | xoptional_assembly (OVE &&ove, OFE &&ofe) |
| | Allocates an xoptional_assembly from the specified value expression and missing mask expression.
|
| | xoptional_assembly (const value_type &value) |
| | Allocates an xoptional_assembly that holds a single element initialized to the specified value.
|
| | xoptional_assembly (nested_initializer_list_t< value_type, 1 > t) |
| | Allocates a one-dimensional xoptional_assembly.
|
| | xoptional_assembly (nested_initializer_list_t< value_type, 2 > t) |
| | Allocates a two-dimensional xoptional_assembly.
|
| | xoptional_assembly (nested_initializer_list_t< value_type, 3 > t) |
| | Allocates a three-dimensional xoptional_assembly.
|
| | xoptional_assembly (nested_initializer_list_t< value_type, 4 > t) |
| | Allocates a four-dimensional xoptional_assembly.
|
| | xoptional_assembly (nested_initializer_list_t< value_type, 5 > t) |
| | Allocates a five-dimensional xoptional_assembly.
|
| | xoptional_assembly (const xoptional_assembly &) |
| xoptional_assembly & | operator= (const xoptional_assembly &) |
| | xoptional_assembly (xoptional_assembly &&) |
| xoptional_assembly & | operator= (xoptional_assembly &&) |
| template<class S> |
| xoptional_assembly< VE, FE > | from_shape (S &&s) |
| | Allocates and returns an xoptional_assembly with the specified shape.
|
| 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 VE, class FE>
class xt::xoptional_assembly< VE, FE >
Dense multidimensional container holding optional values, optimized for tensor operations.
The xoptional_assembly class implements a dense multidimensional container hoding optional values. This container is optimized of tensor operations: contrary to xarray_optional, xoptional_assembly holds two separated expressions, one for the values, the other for the missing mask.
- Template Parameters
-
| VE | The type of expression holding the values. |
| FE | The type of expression holding the missing mask. |
Definition at line 61 of file xoptional_assembly.hpp.