xtensor
|
View of an xexpression from vector of indices. More...
#include <xindex_view.hpp>
Public Member Functions | |
template<class E > | |
self_type & | operator= (const xexpression< E > &e) |
template<class E > | |
disable_xexpression< E, self_type > & | operator= (const E &e) |
template<class... Args> | |
reference | operator() (size_type idx0, size_type idx1, Args... args) |
template<class S > | |
disable_integral_t< S, reference > | operator[] (const S &index) |
template<class OI > | |
reference | operator[] (std::initializer_list< OI > index) |
template<class It > | |
reference | element (It first, It last) |
template<class... Args> | |
const_reference | operator() (size_type idx0, size_type idx1, Args... args) const |
template<class S > | |
disable_integral_t< S, const_reference > | operator[] (const S &index) const |
template<class OI > | |
const_reference | operator[] (std::initializer_list< OI > index) const |
template<class It > | |
const_reference | element (It first, It last) const |
template<class ST > | |
stepper | stepper_begin (const ST &shape) |
template<class ST > | |
stepper | stepper_end (const ST &shape, layout_type) |
template<class ST > | |
const_stepper | stepper_begin (const ST &shape) const |
template<class ST > | |
const_stepper | stepper_end (const ST &shape, layout_type) const |
template<class E > | |
rebind_t< E > | build_index_view (E &&e) const |
Constructor | |
template<class CTA , class I2 > | |
xindex_view (CTA &&e, I2 &&indices) noexcept | |
Constructs an xindex_view, selecting the indices specified by indices. | |
Size and shape | |
size_type | size () const noexcept |
Returns the size of the xindex_view. | |
size_type | dimension () const noexcept |
Returns the number of dimensions of the xindex_view. | |
const inner_shape_type & | shape () const noexcept |
Returns the shape of the xindex_view. | |
size_type | shape (size_type index) const |
Returns the i-th dimension of the expression. | |
layout_type | layout () const noexcept |
bool | is_contiguous () const noexcept |
Data | |
template<class T > | |
void | fill (const T &value) |
Fills the view with the given value. | |
reference | operator() (size_type idx=size_type(0)) |
Returns a reference to the element at the specified position in the xindex_view. | |
reference | unchecked (size_type idx) |
Returns a reference to the element at the specified position in the xindex_view. | |
reference | operator[] (size_type i) |
const_reference | operator() (size_type idx=size_type(0)) const |
Returns a constant reference to the element at the specified position in the xindex_view. | |
const_reference | unchecked (size_type idx) const |
Returns a constant reference to the element at the specified position in the xindex_view. | |
const_reference | operator[] (size_type i) const |
xexpression_type & | expression () noexcept |
Returns a reference to the underlying expression of the view. | |
const xexpression_type & | expression () const noexcept |
Returns a constant reference to the underlying expression of the view. | |
template<class... Args> | |
auto | operator() (size_type, size_type idx1, Args... args) -> reference |
template<class... Args> | |
auto | operator() (size_type, size_type idx1, Args... args) const -> const_reference |
template<class S > | |
auto | operator[] (const S &index) -> disable_integral_t< S, reference > |
Returns a reference to the element at the specified position in the container. | |
template<class OI > | |
auto | operator[] (std::initializer_list< OI > index) -> reference |
template<class S > | |
auto | operator[] (const S &index) const -> disable_integral_t< S, const_reference > |
Returns a constant reference to the element at the specified position in the container. | |
template<class OI > | |
auto | operator[] (std::initializer_list< OI > index) const -> const_reference |
template<class It > | |
auto | element (It first, It) -> reference |
Returns a reference to the element at the specified position in the xindex_view. | |
template<class It > | |
auto | element (It first, It) const -> const_reference |
Returns a reference to the element at the specified position in the xindex_view. | |
Broadcasting | |
template<class O > | |
bool | broadcast_shape (O &shape, bool reuse_cache=false) const |
Broadcast the shape of the xindex_view to the specified parameter. | |
template<class O > | |
bool | has_linear_assign (const O &) const noexcept |
Checks whether the xindex_view can be linearly assigned to an expression with the specified strides. | |
template<class ST > | |
auto | stepper_begin (const ST &shape) -> stepper |
template<class ST > | |
auto | stepper_end (const ST &shape, layout_type) -> stepper |
template<class ST > | |
auto | stepper_begin (const ST &shape) const -> const_stepper |
template<class ST > | |
auto | stepper_end (const ST &shape, layout_type) const -> const_stepper |
template<class E > | |
auto | build_index_view (E &&e) const -> rebind_t< E > |
Public Member Functions inherited from xt::xview_semantic< xindex_view< CT, I > > | |
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) |
derived_type & | assign_temporary (temporary_type &&) |
Assigns the temporary tmp to *this . | |
auto | assign_xexpression (const xexpression< E > &e) -> derived_type & |
auto | computed_assign (const xexpression< E > &e) -> derived_type & |
auto | scalar_computed_assign (const E &e, F &&f) -> derived_type & |
auto | operator= (const xexpression< E > &rhs) -> derived_type & |
Public Member Functions inherited from xt::xsemantic_base< D > | |
template<class E > | |
disable_xexpression< E, derived_type & > | operator+= (const E &) |
template<class E > | |
disable_xexpression< E, derived_type & > | operator-= (const E &) |
template<class E > | |
disable_xexpression< E, derived_type & > | operator*= (const E &) |
template<class E > | |
disable_xexpression< E, derived_type & > | operator/= (const E &) |
template<class E > | |
disable_xexpression< E, derived_type & > | operator%= (const E &) |
template<class E > | |
disable_xexpression< E, derived_type & > | operator&= (const E &) |
template<class E > | |
disable_xexpression< E, derived_type & > | operator|= (const E &) |
template<class E > | |
disable_xexpression< E, derived_type & > | operator^= (const E &) |
template<class E > | |
derived_type & | operator+= (const xexpression< E > &) |
template<class E > | |
derived_type & | operator-= (const xexpression< E > &) |
template<class E > | |
derived_type & | operator*= (const xexpression< E > &) |
template<class E > | |
derived_type & | operator/= (const xexpression< E > &) |
template<class E > | |
derived_type & | operator%= (const xexpression< E > &) |
template<class E > | |
derived_type & | operator&= (const xexpression< E > &) |
template<class E > | |
derived_type & | operator|= (const xexpression< E > &) |
template<class E > | |
derived_type & | operator^= (const xexpression< E > &) |
template<class E > | |
derived_type & | assign (const xexpression< E > &) |
template<class E > | |
derived_type & | plus_assign (const xexpression< E > &) |
template<class E > | |
derived_type & | minus_assign (const xexpression< E > &) |
template<class E > | |
derived_type & | multiplies_assign (const xexpression< E > &) |
template<class E > | |
derived_type & | divides_assign (const xexpression< E > &) |
template<class E > | |
derived_type & | modulus_assign (const xexpression< E > &) |
template<class E > | |
derived_type & | bit_and_assign (const xexpression< E > &) |
template<class E > | |
derived_type & | bit_or_assign (const xexpression< E > &) |
template<class E > | |
derived_type & | bit_xor_assign (const xexpression< E > &) |
template<class E > | |
auto | operator+= (const E &e) -> disable_xexpression< E, derived_type & > |
Adds the scalar e to *this . | |
template<class E > | |
auto | operator-= (const E &e) -> disable_xexpression< E, derived_type & > |
Subtracts the scalar e from *this . | |
template<class E > | |
auto | operator*= (const E &e) -> disable_xexpression< E, derived_type & > |
Multiplies *this with the scalar e . | |
template<class E > | |
auto | operator/= (const E &e) -> disable_xexpression< E, derived_type & > |
Divides *this by the scalar e . | |
template<class E > | |
auto | operator%= (const E &e) -> disable_xexpression< E, derived_type & > |
Computes the remainder of *this after division by the scalar e . | |
template<class E > | |
auto | operator&= (const E &e) -> disable_xexpression< E, derived_type & > |
Computes the bitwise and of *this and the scalar e and assigns it to *this . | |
template<class E > | |
auto | operator|= (const E &e) -> disable_xexpression< E, derived_type & > |
Computes the bitwise or of *this and the scalar e and assigns it to *this . | |
template<class E > | |
auto | operator^= (const E &e) -> disable_xexpression< E, derived_type & > |
Computes the bitwise xor of *this and the scalar e and assigns it to *this . | |
template<class E > | |
auto | operator+= (const xexpression< E > &e) -> derived_type & |
Adds the xexpression e to *this . | |
template<class E > | |
auto | operator-= (const xexpression< E > &e) -> derived_type & |
Subtracts the xexpression e from *this . | |
template<class E > | |
auto | operator*= (const xexpression< E > &e) -> derived_type & |
Multiplies *this with the xexpression e . | |
template<class E > | |
auto | operator/= (const xexpression< E > &e) -> derived_type & |
Divides *this by the xexpression e . | |
template<class E > | |
auto | operator%= (const xexpression< E > &e) -> derived_type & |
Computes the remainder of *this after division by the xexpression e . | |
template<class E > | |
auto | operator&= (const xexpression< E > &e) -> derived_type & |
Computes the bitwise and of *this and the xexpression e and assigns it to *this . | |
template<class E > | |
auto | operator|= (const xexpression< E > &e) -> derived_type & |
Computes the bitwise or of *this and the xexpression e and assigns it to *this . | |
template<class E > | |
auto | operator^= (const xexpression< E > &e) -> derived_type & |
Computes the bitwise xor of *this and the xexpression e and assigns it to *this . | |
template<class E > | |
auto | assign (const xexpression< E > &e) -> derived_type & |
Assigns the xexpression e to *this . | |
template<class E > | |
auto | plus_assign (const xexpression< E > &e) -> derived_type & |
Adds the xexpression e to *this . | |
template<class E > | |
auto | minus_assign (const xexpression< E > &e) -> derived_type & |
Subtracts the xexpression e to *this . | |
template<class E > | |
auto | multiplies_assign (const xexpression< E > &e) -> derived_type & |
Multiplies *this with the xexpression e . | |
template<class E > | |
auto | divides_assign (const xexpression< E > &e) -> derived_type & |
Divides *this by the xexpression e . | |
template<class E > | |
auto | modulus_assign (const xexpression< E > &e) -> derived_type & |
Computes the remainder of *this after division by the xexpression e . | |
template<class E > | |
auto | bit_and_assign (const xexpression< E > &e) -> derived_type & |
Computes the bitwise and of e to *this . | |
template<class E > | |
auto | bit_or_assign (const xexpression< E > &e) -> derived_type & |
Computes the bitwise or of e to *this . | |
template<class E > | |
auto | bit_xor_assign (const xexpression< E > &e) -> derived_type & |
Computes the bitwise xor of e to *this . | |
template<class E > | |
auto | operator= (const xexpression< E > &e) -> derived_type & |
Public Member Functions inherited from xt::xiterable< xindex_view< CT, I > > | |
layout_iterator< L > | begin () noexcept |
broadcast_iterator< S, L > | begin (const S &shape) noexcept |
const_layout_iterator< L > | begin () const noexcept |
const_broadcast_iterator< S, L > | begin (const S &shape) const noexcept |
auto | begin () const noexcept -> const_layout_iterator< L > |
Returns a constant iterator to the first element of the expression. | |
auto | begin (const S &shape) const noexcept -> const_broadcast_iterator< S, L > |
Returns a constant iterator to the first element of the expression. | |
layout_iterator< L > | end () noexcept |
broadcast_iterator< S, L > | end (const S &shape) noexcept |
const_layout_iterator< L > | end () const noexcept |
const_broadcast_iterator< S, L > | end (const S &shape) const noexcept |
auto | end () const noexcept -> const_layout_iterator< L > |
Returns a constant iterator to the element following the last element of the expression. | |
auto | end (const S &shape) const noexcept -> const_broadcast_iterator< S, L > |
Returns a constant iterator to the element following the last element of the expression. | |
reverse_layout_iterator< L > | rbegin () noexcept |
reverse_broadcast_iterator< S, L > | rbegin (const S &shape) noexcept |
const_reverse_layout_iterator< L > | rbegin () const noexcept |
const_reverse_broadcast_iterator< S, L > | rbegin (const S &shape) const noexcept |
auto | rbegin () const noexcept -> const_reverse_layout_iterator< L > |
Returns a constant iterator to the first element of the reversed expression. | |
auto | rbegin (const S &shape) const noexcept -> const_reverse_broadcast_iterator< S, L > |
Returns a constant iterator to the first element of the reversed expression. | |
reverse_layout_iterator< L > | rend () noexcept |
reverse_broadcast_iterator< S, L > | rend (const S &shape) noexcept |
const_reverse_layout_iterator< L > | rend () const noexcept |
const_reverse_broadcast_iterator< S, L > | rend (const S &shape) const noexcept |
auto | rend () const noexcept -> const_reverse_layout_iterator< L > |
Returns a constant iterator to the element following the last element of the reversed expression. | |
auto | rend (const S &shape) const noexcept -> const_reverse_broadcast_iterator< S, L > |
Returns a constant iterator to the element following the last element of the reversed expression. | |
auto | begin () noexcept -> layout_iterator< L > |
Returns an iterator to the first element of the expression. | |
auto | end () noexcept -> layout_iterator< L > |
Returns an iterator to the element following the last element of the expression. | |
auto | begin (const S &shape) noexcept -> broadcast_iterator< S, L > |
Returns an iterator to the first element of the expression. | |
auto | end (const S &shape) noexcept -> broadcast_iterator< S, L > |
Returns an iterator to the element following the last element of the expression. | |
auto | rbegin () noexcept -> reverse_layout_iterator< L > |
Returns an iterator to the first element of the reversed expression. | |
auto | rend () noexcept -> reverse_layout_iterator< L > |
Returns an iterator to the element following the last element of the reversed expression. | |
auto | rbegin (const S &shape) noexcept -> reverse_broadcast_iterator< S, L > |
Returns an iterator to the first element of the reversed expression. | |
auto | rend (const S &shape) noexcept -> reverse_broadcast_iterator< S, L > |
Returns an iterator to the element following the last element of the reversed expression. | |
auto | get_begin (bool end_index) noexcept -> layout_iterator< L > |
auto | get_begin (const S &shape, bool end_index) noexcept -> broadcast_iterator< S, L > |
auto | get_end (bool end_index) noexcept -> layout_iterator< L > |
auto | get_end (const S &shape, bool end_index) noexcept -> broadcast_iterator< S, L > |
auto | get_stepper_begin (const S &shape) noexcept -> stepper |
auto | get_stepper_begin (const S &shape) const noexcept -> const_stepper |
auto | get_stepper_end (const S &shape, layout_type l) noexcept -> stepper |
auto | get_stepper_end (const S &shape, layout_type l) const noexcept -> const_stepper |
Public Member Functions inherited from xt::xconst_iterable< D > | |
template<layout_type L = ::xt::layout_type::row_major> | |
const_layout_iterator< L > | begin () const noexcept |
template<layout_type L = ::xt::layout_type::row_major> | |
const_layout_iterator< L > | end () const noexcept |
template<layout_type L = ::xt::layout_type::row_major> | |
const_layout_iterator< L > | cbegin () const noexcept |
template<layout_type L = ::xt::layout_type::row_major> | |
const_layout_iterator< L > | cend () const noexcept |
template<layout_type L = ::xt::layout_type::row_major> | |
const_reverse_layout_iterator< L > | rbegin () const noexcept |
template<layout_type L = ::xt::layout_type::row_major> | |
const_reverse_layout_iterator< L > | rend () const noexcept |
template<layout_type L = ::xt::layout_type::row_major> | |
const_reverse_layout_iterator< L > | crbegin () const noexcept |
template<layout_type L = ::xt::layout_type::row_major> | |
const_reverse_layout_iterator< L > | crend () const noexcept |
template<layout_type L = ::xt::layout_type::row_major, class S > | |
const_broadcast_iterator< S, L > | begin (const S &shape) const noexcept |
template<layout_type L = ::xt::layout_type::row_major, class S > | |
const_broadcast_iterator< S, L > | end (const S &shape) const noexcept |
template<layout_type L = ::xt::layout_type::row_major, class S > | |
const_broadcast_iterator< S, L > | cbegin (const S &shape) const noexcept |
template<layout_type L = ::xt::layout_type::row_major, class S > | |
const_broadcast_iterator< S, L > | cend (const S &shape) const noexcept |
template<layout_type L = ::xt::layout_type::row_major, class S > | |
const_reverse_broadcast_iterator< S, L > | rbegin (const S &shape) const noexcept |
template<layout_type L = ::xt::layout_type::row_major, class S > | |
const_reverse_broadcast_iterator< S, L > | rend (const S &shape) const noexcept |
template<layout_type L = ::xt::layout_type::row_major, class S > | |
const_reverse_broadcast_iterator< S, L > | crbegin (const S &shape) const noexcept |
template<layout_type L = ::xt::layout_type::row_major, class S > | |
const_reverse_broadcast_iterator< S, L > | crend (const S &shape) const noexcept |
template<layout_type L> | |
auto | begin () const noexcept -> const_layout_iterator< L > |
Returns a constant iterator to the first element of the expression. | |
template<layout_type L> | |
auto | end () const noexcept -> const_layout_iterator< L > |
Returns a constant iterator to the element following the last element of the expression. | |
template<layout_type L> | |
auto | cbegin () const noexcept -> const_layout_iterator< L > |
Returns a constant iterator to the first element of the expression. | |
template<layout_type L> | |
auto | cend () const noexcept -> const_layout_iterator< L > |
Returns a constant iterator to the element following the last element of the expression. | |
template<layout_type L> | |
auto | rbegin () const noexcept -> const_reverse_layout_iterator< L > |
Returns a constant iterator to the first element of the reversed expression. | |
template<layout_type L> | |
auto | rend () const noexcept -> const_reverse_layout_iterator< L > |
Returns a constant iterator to the element following the last element of the reversed expression. | |
template<layout_type L> | |
auto | crbegin () const noexcept -> const_reverse_layout_iterator< L > |
Returns a constant iterator to the first element of the reversed expression. | |
template<layout_type L> | |
auto | crend () const noexcept -> const_reverse_layout_iterator< L > |
Returns a constant iterator to the element following the last element of the reversed expression. | |
template<layout_type L, class S > | |
auto | begin (const S &shape) const noexcept -> const_broadcast_iterator< S, L > |
Returns a constant iterator to the first element of the expression. | |
template<layout_type L, class S > | |
auto | end (const S &shape) const noexcept -> const_broadcast_iterator< S, L > |
Returns a constant iterator to the element following the last element of the expression. | |
template<layout_type L, class S > | |
auto | cbegin (const S &shape) const noexcept -> const_broadcast_iterator< S, L > |
Returns a constant iterator to the first element of the expression. | |
template<layout_type L, class S > | |
auto | cend (const S &shape) const noexcept -> const_broadcast_iterator< S, L > |
Returns a constant iterator to the element following the last element of the expression. | |
template<layout_type L, class S > | |
auto | rbegin (const S &shape) const noexcept -> const_reverse_broadcast_iterator< S, L > |
Returns a constant iterator to the first element of the reversed expression. | |
template<layout_type L, class S > | |
auto | rend (const S &shape) const noexcept -> const_reverse_broadcast_iterator< S, L > |
Returns a constant iterator to the element following the last element of the reversed expression. | |
template<layout_type L, class S > | |
auto | crbegin (const S &shape) const noexcept -> const_reverse_broadcast_iterator< S, L > |
Returns a constant iterator to the first element of the reversed expression. | |
template<layout_type L, class S > | |
auto | crend (const S &shape) const noexcept -> const_reverse_broadcast_iterator< S, L > |
Returns a constant iterator to the element following the last element of the reversed expression. | |
template<layout_type L> | |
auto | get_cbegin (bool end_index) const noexcept -> const_layout_iterator< L > |
template<layout_type L> | |
auto | get_cend (bool end_index) const noexcept -> const_layout_iterator< L > |
template<layout_type L, class S > | |
auto | get_cbegin (const S &shape, bool end_index) const noexcept -> const_broadcast_iterator< S, L > |
template<layout_type L, class S > | |
auto | get_cend (const S &shape, bool end_index) const noexcept -> const_broadcast_iterator< S, L > |
template<class S > | |
auto | get_stepper_begin (const S &shape) const noexcept -> const_stepper |
template<class S > | |
auto | get_stepper_end (const S &shape, layout_type l) const noexcept -> const_stepper |
Static Public Attributes | |
static constexpr layout_type | static_layout = layout_type::dynamic |
static constexpr bool | contiguous_layout = false |
Friends | |
class | xview_semantic< xindex_view< CT, I > > |
Extended copy semantic | |
template<class E > | |
auto | operator= (const xexpression< E > &e) -> self_type & |
The extended assignment operator. | |
template<class E > | |
auto | operator= (const E &e) -> disable_xexpression< E, self_type > & |
Additional Inherited Members | |
Protected Member Functions inherited from xt::xview_semantic< xindex_view< CT, I > > | |
xview_semantic (const xview_semantic &)=default | |
xview_semantic (xview_semantic &&)=default | |
xview_semantic & | operator= (const xview_semantic &)=default |
xview_semantic & | operator= (xview_semantic &&)=default |
derived_type & | operator= (const xexpression< E > &) |
Protected Member Functions inherited from xt::xsemantic_base< D > | |
xsemantic_base (const xsemantic_base &)=default | |
xsemantic_base & | operator= (const xsemantic_base &)=default |
xsemantic_base (xsemantic_base &&)=default | |
xsemantic_base & | operator= (xsemantic_base &&)=default |
template<class E > | |
derived_type & | operator= (const xexpression< E > &) |
Protected Member Functions inherited from xt::xconst_iterable< D > | |
const inner_shape_type & | get_shape () const |
View of an xexpression from vector of indices.
The xindex_view class implements a flat (1D) view into a multidimensional xexpression yielding the values at the indices of the index array. xindex_view is not meant to be used directly, but only with the index_view and filter helper functions.
CT | the closure type of the xexpression type underlying this view |
I | the index array type of the view |
Definition at line 91 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::base_index_type = xindex_type_t<shape_type> |
Definition at line 122 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::bool_load_type = typename xexpression_type::bool_load_type |
Definition at line 124 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::const_pointer = typename xexpression_type::const_pointer |
Definition at line 108 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::const_reference = typename xexpression_type::const_reference |
Definition at line 106 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::const_stepper = typename iterable_base::const_stepper |
Definition at line 119 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::difference_type = typename xexpression_type::difference_type |
Definition at line 110 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::expression_tag = typename extension_base::expression_tag |
Definition at line 102 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::extension_base = extension::xindex_view_base_t<CT, I> |
Definition at line 101 of file xindex_view.hpp.
Definition at line 116 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::inner_shape_type = typename iterable_base::inner_shape_type |
Definition at line 113 of file xindex_view.hpp.
Definition at line 112 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::pointer = typename xexpression_type::pointer |
Definition at line 107 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::rebind_t = xindex_view<E, I> |
Definition at line 194 of file xindex_view.hpp.
Definition at line 105 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::self_type = xindex_view<CT, I> |
Definition at line 97 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::semantic_base = xview_semantic<self_type> |
Definition at line 99 of file xindex_view.hpp.
Definition at line 114 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::size_type = typename xexpression_type::size_type |
Definition at line 109 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::stepper = typename iterable_base::stepper |
Definition at line 118 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::temporary_type = typename xcontainer_inner_types<self_type>::temporary_type |
Definition at line 121 of file xindex_view.hpp.
using xt::xindex_view< CT, I >::value_type = typename xexpression_type::value_type |
Definition at line 104 of file xindex_view.hpp.
Definition at line 98 of file xindex_view.hpp.
|
inlinenoexcept |
Constructs an xindex_view, selecting the indices specified by indices.
The resulting xexpression has a 1D shape with a length of n for n indices.
e | the underlying xexpression for this view |
indices | the indices to select |
Definition at line 288 of file xindex_view.hpp.
Broadcast the shape of the xindex_view to the specified parameter.
shape | the result shape |
reuse_cache | parameter for internal optimization |
Definition at line 561 of file xindex_view.hpp.
|
inline |
Definition at line 618 of file xindex_view.hpp.
Returns the number of dimensions of the xindex_view.
Definition at line 344 of file xindex_view.hpp.
Returns a reference to the element at the specified position in the xindex_view.
first | iterator starting the sequence of indices The number of indices in the sequence should be equal to or greater 1. |
Definition at line 512 of file xindex_view.hpp.
|
inline |
Returns a reference to the element at the specified position in the xindex_view.
first | iterator starting the sequence of indices The number of indices in the sequence should be equal to or greater 1. |
Definition at line 524 of file xindex_view.hpp.
Returns a constant reference to the underlying expression of the view.
Definition at line 542 of file xindex_view.hpp.
Returns a reference to the underlying expression of the view.
Definition at line 533 of file xindex_view.hpp.
|
inline |
Fills the view with the given value.
value | the value to fill the view with. |
Definition at line 392 of file xindex_view.hpp.
|
inlinenoexcept |
Checks whether the xindex_view can be linearly assigned to an expression with the specified strides.
Definition at line 573 of file xindex_view.hpp.
Definition at line 374 of file xindex_view.hpp.
|
inlinenoexcept |
Definition at line 368 of file xindex_view.hpp.
|
inline |
Returns a reference to the element at the specified position in the xindex_view.
idx | index specifying the position in the index_view. More indices may be provided, only the last one will be used. |
Definition at line 403 of file xindex_view.hpp.
|
inline |
Returns a constant reference to the element at the specified position in the xindex_view.
idx | index specifying the position in the index_view. More indices may be provided, only the last one will be used. |
Definition at line 431 of file xindex_view.hpp.
|
inline |
Definition at line 410 of file xindex_view.hpp.
|
inline |
Definition at line 438 of file xindex_view.hpp.
|
inline |
Definition at line 315 of file xindex_view.hpp.
|
inline |
The extended assignment operator.
Definition at line 306 of file xindex_view.hpp.
|
inline |
Returns a reference to the element at the specified position in the container.
index | a sequence of indices specifying the position in the container. Indices must be unsigned integers, the number of indices in the list should be equal or greater than the number of dimensions of the container. |
Definition at line 461 of file xindex_view.hpp.
|
inline |
Returns a constant reference to the element at the specified position in the container.
index | a sequence of indices specifying the position in the container. Indices must be unsigned integers, the number of indices in the list should be equal or greater than the number of dimensions of the container. |
Definition at line 487 of file xindex_view.hpp.
Definition at line 474 of file xindex_view.hpp.
Definition at line 500 of file xindex_view.hpp.
|
inline |
Definition at line 468 of file xindex_view.hpp.
|
inline |
Definition at line 494 of file xindex_view.hpp.
Returns the shape of the xindex_view.
Definition at line 353 of file xindex_view.hpp.
Returns the i-th dimension of the expression.
Definition at line 362 of file xindex_view.hpp.
Returns the size of the xindex_view.
Definition at line 335 of file xindex_view.hpp.
|
inline |
Definition at line 586 of file xindex_view.hpp.
|
inline |
Definition at line 602 of file xindex_view.hpp.
|
inline |
Definition at line 594 of file xindex_view.hpp.
|
inline |
Definition at line 610 of file xindex_view.hpp.
Returns a reference to the element at the specified position in the xindex_view.
idx | index specifying the position in the index_view. |
Definition at line 420 of file xindex_view.hpp.
|
inline |
Returns a constant reference to the element at the specified position in the xindex_view.
idx | index specifying the position in the index_view. |
Definition at line 448 of file xindex_view.hpp.
|
friend |
Definition at line 205 of file xindex_view.hpp.
|
staticconstexpr |
Definition at line 127 of file xindex_view.hpp.
|
staticconstexpr |
Definition at line 126 of file xindex_view.hpp.