ONE - On-device Neural Engine
|
#include <Array.h>
Public Member Functions | |
Array (T *data, Shape shape) noexcept | |
Array (const Array &)=delete | |
Array (Array &&a) noexcept | |
template<typename... Ts> | |
T & | at (Ts... x) const noexcept |
template<typename... Ts> | |
ContiguousSpan< T, std::is_const< T >::value > | slice (Ts... x) noexcept |
returns last dimension as ContigniousSpan | |
template<typename... Ts> | |
ContiguousSpan< T, true > | slice (Ts... x) const noexcept |
returns last dimension as ContigniousSpan | |
ContiguousSpan< T, std::is_const< T >::value > | flat () noexcept |
ContiguousSpan< T, true > | flat () const noexcept |
const Shape & | shape () const noexcept |
|
inlinenoexcept |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 99 of file Array.h.
Referenced by ndarray::Array< T >::slice(), and ndarray::Array< T >::slice().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 123 of file Array.h.
References ndarray::Shape::element_count().
Referenced by ndarray::array_cast().
|
inlinenoexcept |
Definition at line 130 of file Array.h.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), RandomDataGenerator.RandomDataGenerator::_gen_uint8(), ndarray::array_cast(), and gather_array().
|
inlinenoexcept |
returns last dimension as ContigniousSpan
x | indices of slice to take. See tests for usage details |
Definition at line 117 of file Array.h.
References ndarray::Array< T >::at(), ndarray::Shape::dim(), and ndarray::Shape::rank().
|
inlinenoexcept |
returns last dimension as ContigniousSpan
x | indices of slice to take. See tests for usage details |
Definition at line 106 of file Array.h.
References ndarray::Array< T >::at(), ndarray::Shape::dim(), and ndarray::Shape::rank().
Referenced by gather_array(), and main().