CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
cuv::tensor_info< M, L > Struct Template Reference

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

#include <tensor.hpp>

Collaboration diagram for cuv::tensor_info< M, L >:
Collaboration graph
[legend]

Public Types

typedef unsigned int size_type
 type of shapes of the tensor
typedef int index_type
 type of indices in tensor
typedef M data_memory_space
 this is where the data lies

Public Member Functions

 tensor_info ()
 default constructor: does nothing
size_type size ()
 tensor_info (size_type s)
 construct with known shape
void resize (size_type s)
 resize all memories
 tensor_info (const tensor_info< M, L > &o)
 copy-constructor
template<class OM >
 tensor_info (const tensor_info< OM, L > &o)
 copy-construct from other memory space

Public Attributes

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>
struct cuv::tensor_info< M, L >

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

Definition at line 810 of file tensor.hpp.

Member Function Documentation

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

Definition at line 828 of file tensor.hpp.


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