|
|
| xview (const xview &)=default |
template<class T = xexpression_type>
requires (data_interface_expression<T>) |
| storage_type & | storage () |
template<class T = xexpression_type>
requires (data_interface_expression<T>) |
| const storage_type & | storage () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| linear_iterator | linear_begin () |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| linear_iterator | linear_end () |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| const_linear_iterator | linear_begin () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| const_linear_iterator | linear_end () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| const_linear_iterator | linear_cbegin () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| const_linear_iterator | linear_cend () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| reverse_linear_iterator | linear_rbegin () |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| reverse_linear_iterator | linear_rend () |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| const_reverse_linear_iterator | linear_rbegin () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| const_reverse_linear_iterator | linear_rend () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| const_reverse_linear_iterator | linear_crbegin () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| const_reverse_linear_iterator | linear_crend () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| const inner_strides_type & | strides () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| const inner_strides_type & | backstrides () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| const_pointer | data () const |
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| pointer | data () |
| template<xscalar_concept ST = self_type> |
| | operator reference () |
| template<xscalar_concept ST = self_type> |
| | operator const_reference () const |
template<class align, class simd, class T = xexpression_type>
requires (has_simd_interface_concept<T> and strided_view_concept<CT, S...>) |
| void | store_simd (size_type i, const simd &e) |
template<class align, class requested_type = value_type, std::size_t N = xt_simd::simd_traits<requested_type>::size, class T = xexpression_type>
requires (has_simd_interface_concept<T> and strided_view_concept<CT, S...>) |
| simd_return_type< requested_type > | load_simd (size_type i) const |
template<class T = xexpression_type>
requires (has_simd_interface_concept<T> and strided_view_concept<CT, S...>) |
| reference | data_element (size_type i) |
template<class T = xexpression_type>
requires (has_simd_interface_concept<T> and strided_view_concept<CT, S...>) |
| const_reference | data_element (size_type i) const |
template<class T = xexpression_type>
requires (has_simd_interface_concept<T> and strided_view_concept<CT, S...>) |
| reference | flat (size_type i) |
template<class T = xexpression_type>
requires (has_simd_interface_concept<T> and strided_view_concept<CT, S...>) |
| const_reference | flat (size_type i) const |
| template<class E> |
| self_type & | operator= (const xexpression< E > &e) |
| | The extended assignment operator.
|
| template<class E> |
| disable_xexpression< E, self_type > & | operator= (const E &e) |
| const inner_shape_type & | shape () const noexcept |
| | Returns the shape of the view.
|
| const slice_type & | slices () const noexcept |
| | Returns the slices of the view.
|
| layout_type | layout () const noexcept |
| | Returns the slices of the view.
|
| bool | is_contiguous () const noexcept |
| 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.
|
| const_reference | at (Args... args) const |
| | Returns a constant reference to the element at the specified position in the expression, after dimension and bounds checking.
|
| disable_integral_t< S, const_reference > | operator[] (const S &index) const |
| | Returns a constant reference to the element at the specified position in the expression.
|
|
const_reference | operator[] (std::initializer_list< I > index) const |
|
const_reference | operator[] (size_type i) const |
|
const_reference | back () const |
| | Returns a constant reference to last the element of the expression.
|
|
const_reference | front () const |
| | Returns a constant reference to first the element of the expression.
|
| const_reference | periodic (Args... args) const |
| | Returns a constant 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(noexcept(derived_cast().shape())) |
| | Returns the size of the expression.
|
| size_type | dimension () const noexcept |
| | Returns the number of dimensions of the expression.
|
| size_type | shape (size_type index) const |
| | Returns the i-th dimension of the expression.
|
| const_reference | at (Args... args) const |
| | Returns a constant reference to the element at the specified position in the expression, after dimension and bounds checking.
|
| disable_integral_t< S, const_reference > | operator[] (const S &index) const |
| | Returns a constant reference to the element at the specified position in the expression.
|
| const_reference | periodic (Args... args) const |
| | Returns a constant reference to the element at the specified position in the expression, after applying periodicity to the indices (negative and 'overflowing' indices are changed).
|
| bool | in_bounds (Args... args) const |
| | Returns true only if the the specified position is a valid entry in the expression.
|
| const_reference | front () const |
| | Returns a constant reference to first the element of the expression.
|
| const_reference | back () const |
| | Returns a constant reference to last the element of the expression.
|
|
| template<class T> |
| void | fill (const T &value) |
| | Fills the view with the given value.
|
| template<class... Args> |
| reference | operator() (Args... args) |
| | Returns a reference to the element at the specified position in the view.
|
| template<class... Args> |
| reference | unchecked (Args... args) |
| | Returns a reference to the element at the specified position in the view.
|
| template<class It> |
| reference | element (It first, It last) |
| template<class... Args> |
| const_reference | operator() (Args... args) const |
| | Returns a constant reference to the element at the specified position in the view.
|
| template<class... Args> |
| const_reference | unchecked (Args... args) const |
| | Returns a constant reference to the element at the specified position in the view.
|
| template<class It> |
| const_reference | element (It first, It last) const |
| xexpression_type & | expression () noexcept |
| | Returns a reference to the underlying expression of the view.
|
| const xexpression_type & | expression () const noexcept |
| | Returns a const reference to the underlying expression of the view.
|
template<class T = xexpression_type>
requires (data_interface_expression<T> and strided_view_concept<CT, S...>) |
| std::size_t | data_offset () const noexcept |
| | Return the offset to the first element of the view in the underlying container.
|
| size_type | underlying_size (size_type dim) const |
| xtl::xclosure_pointer< self_type & > | operator& () & |
| xtl::xclosure_pointer< const self_type & > | operator& () const & |
| xtl::xclosure_pointer< self_type > | operator& () && |
| template<class T> |
| auto | storage () -> storage_type &requires(data_interface_expression< T >) |
| | Returns the data holder of the underlying container (only if the view is on a realized container).
|
| template<class T> |
| auto | storage () const -> const storage_type &requires(data_interface_expression< T >) |
| template<class T> |
| auto | linear_begin () -> linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | linear_end () -> linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | linear_begin () const -> const_linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | linear_end () const -> const_linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | linear_cbegin () const -> const_linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | linear_cend () const -> const_linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | linear_rbegin () -> reverse_linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | linear_rend () -> reverse_linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | linear_rbegin () const -> const_reverse_linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | linear_rend () const -> const_reverse_linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | linear_crbegin () const -> const_reverse_linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | linear_crend () const -> const_reverse_linear_iterator requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | strides () const -> const inner_strides_type &requires(data_interface_expression< T >and strided_view_concept< CT, S... >) |
| | Return the strides for the underlying container of the view.
|
| template<class T> |
| auto | backstrides () const -> const inner_strides_type &requires(data_interface_expression< T >and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | data () const -> const_pointer requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
| | Return the pointer to the underlying buffer.
|
| template<class T> |
| auto | data () -> pointer requires(data_interface_expression< T > and strided_view_concept< CT, S... >) |
|
| template<class ST> |
| bool | broadcast_shape (ST &shape, bool reuse_cache=false) const |
| | Broadcast the shape of the view to the specified parameter.
|
| template<class ST> |
| bool | has_linear_assign (const ST &strides) const |
| | Checks whether the xview can be linearly assigned to an expression with the specified strides.
|
| template<class ST> |
| stepper | stepper_begin (const ST &shape) |
| template<class ST> |
| stepper | stepper_end (const ST &shape, layout_type l) |
| template<class ST> |
| const_stepper | stepper_begin (const ST &shape) const |
| template<class ST> |
| const_stepper | stepper_end (const ST &shape, layout_type l) const |
| template<class It> |
| It | data_xbegin_impl (It begin) const noexcept |
| template<class It> |
| It | data_xend_impl (It begin, layout_type l, size_type offset) const noexcept |
| container_iterator | data_xbegin () noexcept |
| const_container_iterator | data_xbegin () const noexcept |
| container_iterator | data_xend (layout_type l, size_type offset) noexcept |
| const_container_iterator | data_xend (layout_type l, size_type offset) const noexcept |
template<class E, class T = xexpression_type>
requires (data_interface_expression<T> and contiguous_view_concept<E, S...>) |
| void | assign_to (xexpression< E > &e, bool force_resize) const |
| template<class E> |
| rebind_t< E > | build_view (E &&e) const |
| template<class align, class simd, class T> |
| auto | store_simd (size_type i, const simd &e) -> void requires(has_simd_interface_concept< T > and strided_view_concept< CT, S... >) |
| template<class align, class requested_type, std::size_t N, class T> |
| auto | load_simd (size_type i) const -> simd_return_type< requested_type > requires(has_simd_interface_concept< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | data_element (size_type i) -> reference requires(has_simd_interface_concept< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | data_element (size_type i) const -> const_reference requires(has_simd_interface_concept< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | flat (size_type i) -> reference requires(has_simd_interface_concept< T > and strided_view_concept< CT, S... >) |
| template<class T> |
| auto | flat (size_type i) const -> const_reference requires(has_simd_interface_concept< T > and strided_view_concept< CT, S... >) |
| template<typename std::decay_t< CT >::size_type I, class T, class... Args> |
| auto | sliced_access (const T &squeeze, Args...) const -> size_type requires(!is_xslice< T >::value) |
template<class CT, class... S>
class xt::xview< CT, S >
Multidimensional view with tensor semantic.
The xview class implements a multidimensional view with tensor semantic. It is used to adapt the shape of an xexpression without changing it. xview is not meant to be used directly, but only with the view helper functions.
- Template Parameters
-
| CT | the closure type of the xexpression to adapt |
| S | the slices type describing the shape adaptation |
- See also
- view, range, all, newaxis, keep, drop
- Examples
- /home/runner/work/xtensor/xtensor/include/xtensor/views/index_mapper.hpp.
Definition at line 357 of file xview.hpp.