xtensor/xview.hpp
CT
, class ..S
>xview
: public xt::xview_semantic<xview<CT, S..>>, public std::conditional_t<detail::is_contiguous_view<std::decay_t<CT>, S..>::value, xcontiguous_iterable<xview<CT, S..>>, xiterable<xview<CT, S..>>>, public xt::xaccessible<xview<CT, S..>>, public extension::xview_base_t<CT, S..>¶CT
: the closure type of the xexpression to adapt S
: the slices type describing the shape adaptationE
>operator=
(constxexpression<E> &e)¶CTA
, class FSL
, class ..SL
>xview
(CTA &&e, FSL &&first_slice, SL&&.. slices)¶e
: the xexpression to adapt first_slice
: the first slice describing the view slices
: the slices list describing the view shape
()const¶slices
()const¶layout
()const¶T
>fill
(constT &value)¶value
: the value to fill the view with. expression
()¶expression
()const¶Args
>operator()
(Args.. args)¶args
: a list of indices specifying the position in the view. Indices must be unsigned integers, the number of indices should be equal or greater than the number of dimensions of the view. Args
>unchecked
(Args.. args)¶args
: a list of indices specifying the position in the view. Indices must be unsigned integers, the number of indices must be equal to the number of dimensions of the view, else the behavior is undefined.Args
>operator()
(Args.. args)const¶args
: a list of indices specifying the position in the view. Indices must be unsigned integers, the number of indices should be equal or greater than the number of dimensions of the view. Args
>unchecked
(Args.. args)const¶args
: a list of indices specifying the position in the view. Indices must be unsigned integers, the number of indices must be equal to the number of dimensions of the view, else the behavior is undefined.T
>storage
()¶xt::eval
will make sure that the underlying xexpression is on a realized container. T
>strides
()const¶T
>data
()const¶T
>data_offset
()const¶ST
>broadcast_shape
(ST &shape, bool reuse_cache = false)const¶shape
: the result shape reuse_cache
: parameter for internal optimization ST
>has_linear_assign
(constST &strides)const¶E
, class ..S
>xt::
view
(E &&e, S&&.. slices)¶e
: the xexpression to adapt slices
: the slices list describing the view. view
accepts negative indices, in that case indexing is done in reverse order. E
>xt::
row
(E &&e, std::ptrdiff_t index)¶e
: the xexpression to adapt index
: 0-based index of the row, negative indices will return the last rows in reverse order. std::invalid_argument
: if the expression has more than 2 dimensions. E
>xt::
col
(E &&e, std::ptrdiff_t index)¶e
: the xexpression to adapt index
: 0-based index of the column, negative indices will return the last columns in reverse order. std::invalid_argument
: if the expression has more than 2 dimensions. xtensor/xslice.hpp
A
, class B
>xt::
range
(Astart_val, Bstop_val)_
syntax to select from the start or until the end.A
, class B
, class C
>xt::
range
(Astart_val, Bstop_val, Cstep)_
syntax to select from the start or until the end. xt::
all
()xt::
newaxis
()¶xt::
ellipsis
()¶all()
slices, until the number of slices is equal to the number of dimensions of the source array.T
>xt::
keep
(T &&indices)indices
: The indices container T
>xt::
drop
(T &&indices)indices
: The container of indices to drop