contains infos about shape and stride on host and in the ndarray data space. More...
#include <ndarray.hpp>
Public Types | |
| typedef unsigned int | size_type |
| type of shapes of the ndarray | |
| typedef int | index_type |
| type of indices in ndarray | |
| typedef M | data_memory_space |
| this is where the data lies | |
Public Member Functions | |
| ndarray_info (const boost::shared_ptr< allocator > &_allocator) | |
| default constructor: does nothing | |
| size_type | size () |
| ndarray_info (size_type s, const boost::shared_ptr< allocator > &_allocator) | |
| construct with known shape | |
| void | resize (size_type s) |
| resize all memories | |
| ndarray_info (const ndarray_info< M, L > &o) | |
| copy-constructor | |
| template<class OM > | |
| ndarray_info (const ndarray_info< OM, L > &o) | |
| copy-construct from other memory space | |
Public Attributes | |
| boost::shared_ptr< allocator > | m_allocator |
|
linear_memory< size_type, host_memory_space > | host_shape |
| shape stored in host memory | |
|
linear_memory< index_type, host_memory_space > | host_stride |
| strides stored in host memory | |
|
linear_memory< size_type, data_memory_space > | data_shape |
| shape stored in data memory | |
|
linear_memory< index_type, data_memory_space > | data_stride |
| strides stored in data memory | |
contains infos about shape and stride on host and in the ndarray data space.
Definition at line 136 of file ndarray.hpp.
|
inline |
Definition at line 166 of file ndarray.hpp.
1.8.1.2