|
mxnet
|
Read only data structure to reference continuous memory region of array. Provide unified view for vector, array and C style array. This data structure do not guarantee aliveness of referenced array. More...
#include <array_view.h>

Public Member Functions | |
| array_view ()=default | |
| default constructor More... | |
| array_view (const array_view< ValueType > &other)=default | |
| default copy constructor More... | |
| array_view (array_view< ValueType > &&other)=default | |
| default move constructor More... | |
| array_view< ValueType > & | operator= (const array_view< ValueType > &other)=default |
| default assign constructor More... | |
| array_view (const std::vector< ValueType > &other) | |
| construct array view std::vector More... | |
| template<std::size_t size> | |
| array_view (const std::array< ValueType, size > &other) | |
| construct array std::array More... | |
| array_view (const ValueType *begin, const ValueType *end) | |
| construct array view from continuous segment More... | |
| size_t | size () const |
| const ValueType * | begin () const |
| const ValueType * | end () const |
| const ValueType & | operator[] (size_t i) const |
| get i-th element from the view More... | |
Read only data structure to reference continuous memory region of array. Provide unified view for vector, array and C style array. This data structure do not guarantee aliveness of referenced array.
Make sure do not use array_view to record data in async function closures. Also do not use array_view to create reference to temporary data structure.
| ValueType | The value |
|
default |
default constructor
|
default |
default copy constructor
| other | another array view. |
|
default |
default move constructor
| other | another array view. |
|
inline |
construct array view std::vector
| other | vector container |
|
inline |
construct array std::array
| other | another array view. |
|
inline |
construct array view from continuous segment
| begin | beginning pointre |
| end | end pointer |
|
inline |
|
inline |
|
default |
default assign constructor
| other | another array view. |
|
inline |
get i-th element from the view
| i | The index. |
|
inline |
1.8.11