curfil  ..
 All Classes Functions Variables Typedefs Friends Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
cuv::ndarray_info< M, L > Class Template Reference

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< allocatorm_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

Detailed Description

template<class M, class L>
class cuv::ndarray_info< M, L >

contains infos about shape and stride on host and in the ndarray data space.

Definition at line 136 of file ndarray.hpp.

Member Function Documentation

template<class M, class L>
size_type cuv::ndarray_info< M, L >::size ( )
inline
Returns
the size of the arrays (should all be the same)

Definition at line 166 of file ndarray.hpp.


The documentation for this class was generated from the following file: