xtensor
Loading...
Searching...
No Matches
Xt_xchunked_array

Functions

template<class T , layout_type L = ::xt::layout_type::row_major, class S >
xchunked_array< xarray< xarray< T > > > xt::chunked_array (S &&shape, S &&chunk_shape, layout_type chunk_memory_layout=::xt::layout_type::row_major)
 Creates an in-memory chunked array.
 
template<layout_type L = ::xt::layout_type::row_major, class E , class S >
xchunked_array< xarray< xarray< typename E::value_type > > > xt::chunked_array (const xexpression< E > &e, S &&chunk_shape, layout_type chunk_memory_layout=::xt::layout_type::row_major)
 Creates an in-memory chunked array.
 
template<layout_type L = ::xt::layout_type::row_major, class E >
xchunked_array< xarray< xarray< typename E::value_type > > > xt::chunked_array (const xexpression< E > &e, layout_type chunk_memory_layout=::xt::layout_type::row_major)
 Creates an in-memory chunked array.
 

Detailed Description

Chunked array container. Defined in xtensor/xchunked_array.hpp.

Function Documentation

◆ chunked_array() [1/3]

template<layout_type L = ::xt::layout_type::row_major, class E >
xchunked_array< xarray< xarray< typename E::value_type > > > xt::chunked_array ( const xexpression< E > & e,
layout_type chunk_memory_layout = ::xt::layout_type::row_major )
inline

Creates an in-memory chunked array.

This function returns a xt::xchunked_array<xt::xarray<T>> initialized from an expression.

Template Parameters
LThe layout_type of the array
Parameters
eThe expression to initialize the chunked array from
chunk_memory_layoutThe layout of each chunk (default: XTENSOR_DEFAULT_LAYOUT)
Returns
returns a xt::xchunked_array<xt::xarray<T>> from the given expression, with the expression's chunk shape and the given memory layout.

Definition at line 378 of file xchunked_array.hpp.

◆ chunked_array() [2/3]

template<layout_type L = ::xt::layout_type::row_major, class E , class S >
xchunked_array< xarray< xarray< typename E::value_type > > > xt::chunked_array ( const xexpression< E > & e,
S && chunk_shape,
layout_type chunk_memory_layout = ::xt::layout_type::row_major )
inline

Creates an in-memory chunked array.

This function returns a xt::xchunked_array<xt::xarray<T>> initialized from an expression.

Template Parameters
LThe layout_type of the array
Parameters
eThe expression to initialize the chunked array from
chunk_shapeThe shape of a chunk
chunk_memory_layoutThe layout of each chunk (default: XTENSOR_DEFAULT_LAYOUT)
Returns
returns a xt::xchunked_array<xt::xarray<T>> from the given expression, with the given chunk shape and memory layout.

Definition at line 370 of file xchunked_array.hpp.

◆ chunked_array() [3/3]

template<class T , layout_type L = ::xt::layout_type::row_major, class S >
xchunked_array< xarray< xarray< T > > > xt::chunked_array ( S && shape,
S && chunk_shape,
layout_type chunk_memory_layout = ::xt::layout_type::row_major )
inline

Creates an in-memory chunked array.

This function returns an uninitialized xt::xchunked_array<xt::xarray<T>>.

Template Parameters
TThe type of the elements (e.g. double)
LThe layout_type of the array
Parameters
shapeThe shape of the array
chunk_shapeThe shape of a chunk
chunk_memory_layoutThe layout of each chunk (default: XTENSOR_DEFAULT_LAYOUT)
Returns
returns a xt::xchunked_array<xt::xarray<T>> with the given shape, chunk shape and memory layout.

Definition at line 347 of file xchunked_array.hpp.