Dense multidimensional container adaptor with tensor semantics and fixed dimension.
More...
|
|
| xtensor_adaptor (const xtensor_adaptor &)=default |
|
| xtensor_adaptor (xtensor_adaptor &&)=default |
|
template<class E> |
| xtensor_adaptor & | operator= (const xexpression< E > &e) |
| | xtensor_adaptor (storage_type &&storage) |
| | Constructs an xtensor_adaptor of the given stl-like container.
|
| | xtensor_adaptor (const storage_type &storage) |
| | Constructs an xtensor_adaptor of the given stl-like container.
|
| template<class D> |
| | xtensor_adaptor (D &&storage, const shape_type &shape, layout_type l=L) |
| | Constructs an xtensor_adaptor of the given stl-like container, with the specified shape and layout_type.
|
| template<class D> |
| | xtensor_adaptor (D &&storage, const shape_type &shape, const strides_type &strides) |
| | Constructs an xtensor_adaptor of the given stl-like container, with the specified shape and strides.
|
| xtensor_adaptor & | operator= (const xtensor_adaptor &) |
| xtensor_adaptor & | operator= (xtensor_adaptor &&) |
| xtensor_adaptor & | operator= (temporary_type &&) |
| void | resize (S &&shape, bool force=false) |
| | Resizes the container.
|
| auto & | reshape (S &&shape, layout_type layout=base_type::static_layout) & |
| | Reshapes the container and keeps old elements.
|
| layout_type | layout () const noexcept |
| | Return the layout_type of the container.
|
| bool | is_contiguous () const noexcept |
| reference | at (Args... args) |
| | Returns a reference to the element at the specified position in the expression, after dimension and bounds checking.
|
| disable_integral_t< S, reference > | operator[] (const S &index) |
| | Returns a reference to the element at the specified position in the expression.
|
|
reference | operator[] (std::initializer_list< I > index) |
|
reference | operator[] (size_type i) |
|
reference | back () |
| | Returns a reference to the last element of the expression.
|
|
reference | front () |
| | Returns a reference to the first element of the expression.
|
| reference | periodic (Args... args) |
| | Returns a reference to the element at the specified position in the expression, after applying periodicity to the indices (negative and 'overflowing' indices are changed).
|
| size_type | size () const noexcept |
| | Returns the number of element in the container.
|
| constexpr size_type | dimension () const noexcept |
| | Returns the number of dimensions of the container.
|
| constexpr const inner_shape_type & | shape () const noexcept |
| | Returns the shape of the container.
|
| constexpr const inner_strides_type & | strides () const noexcept |
| | Returns the strides of the container.
|
| constexpr const inner_backstrides_type & | backstrides () const noexcept |
| | Returns the backstrides of the container.
|
| void | fill (const T &value) |
| | Fills the container with the given value.
|
| reference | operator() (Args... args) |
| | Returns a reference to the element at the specified position in the container.
|
| reference | unchecked (Args... args) |
| | Returns a reference to the element at the specified position in the container.
|
| reference | element (It first, It last) |
| | Returns a reference to the element at the specified position in the container.
|
| storage_type & | storage () noexcept |
| | Returns a reference to the buffer containing the elements of the container.
|
| pointer | data () noexcept |
| | Returns a pointer to the underlying array serving as element storage.
|
| const size_type | data_offset () const noexcept |
| | Returns the offset to the first element in the container.
|
| bool | broadcast_shape (S &shape, bool reuse_cache=false) const |
| | Broadcast the shape of the container to the specified parameter.
|
| bool | has_linear_assign (const S &strides) const noexcept |
| | Checks whether the xcontainer can be linearly assigned to an expression with the specified strides.
|
| stepper | stepper_begin (const S &shape) noexcept |
| stepper | stepper_end (const S &shape, layout_type l) noexcept |
| reference | data_element (size_type i) |
| reference | flat (size_type i) |
| | Returns a reference to the element at the specified position in the container storage (as if it was one dimensional).
|
| void | store_simd (size_type i, const simd &e) |
| container_simd_return_type_t< storage_type, value_type, requested_type > | load_simd (size_type i) const |
| 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 |
| select_iterator< L > | begin () noexcept |
| | Returns an iterator to the first element of the expression.
|
| select_iterator< L > | end () noexcept |
| | Returns an iterator to the element following the last element of the expression.
|
| select_const_iterator< L > | cbegin () const noexcept |
| | Returns a constant iterator to the first element of the expression.
|
| select_const_iterator< L > | cend () const noexcept |
| | Returns a constant iterator to the element following the last element of the expression.
|
| select_reverse_iterator< L > | rbegin () noexcept |
| | Returns an iterator to the first element of the reversed expression.
|
| select_reverse_iterator< L > | rend () noexcept |
| | Returns an iterator to the element following the last element of the reversed expression.
|
| select_const_reverse_iterator< L > | crbegin () const noexcept |
| | Returns a constant iterator to the first element of the reversed expression.
|
| select_const_reverse_iterator< L > | crend () const noexcept |
| | Returns a constant iterator to the element following the last element of the reversed expression.
|
| 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 EC, std::size_t N,
layout_type L, class Tag>
class xt::xtensor_adaptor< EC, N, L, Tag >
Dense multidimensional container adaptor with tensor semantics and fixed dimension.
The xtensor_adaptor class implements a dense multidimensional container adaptor with tensor semantics and fixed dimension. It is used to provide a multidimensional container semantic and a tensor semantic to stl-like containers.
- Template Parameters
-
| EC | The closure for the container type to adapt. |
| N | The dimension of the adaptor. |
| L | The layout_type of the adaptor. |
| Tag | The expression tag. |
- See also
- xstrided_container, xcontainer
Definition at line 209 of file xtensor.hpp.