MachineIntelligenceCore:Algorithms
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TensorTypes.hpp
Go to the documentation of this file.
1 
23 #ifndef SRC_TYPES_TENSORTYPES_HPP_
24 #define SRC_TYPES_TENSORTYPES_HPP_
25 
26 #include <types/Tensor.hpp>
27 
28 #include <types/Batch.hpp>
29 
30 namespace mic {
31 namespace types {
32 
33 
38 template<typename eT>
39 using TensorPtr = typename std::shared_ptr< mic::types::Tensor<eT> >;
40 
45 #define MAKE_TENSOR_PTR(eT, ...) std::make_shared<mic::types::Tensor<eT> >( mic::types::Tensor<eT> ( { __VA_ARGS__ } ))
46 
51 template<typename eT>
53 
58 template<typename eT>
59 using TensorSamplePtr = typename std::shared_ptr<mic::types::TensorSample<eT> >;
60 
61 
66 template<typename eT>
67 using TensorBatch = typename mic::types::Batch<mic::types::Tensor<eT>, unsigned int>;
68 
69 
74 template<typename eT>
75 using TensorBatchPtr = typename std::shared_ptr<mic::types::TensorBatch<eT> > ;
76 
77 
79 
80 
86 
87 
92 typedef std::shared_ptr< mic::types::TensorXi > TensorXiPtr;
93 
94 
100 
101 
106 typedef std::shared_ptr< mic::types::TensorXf > TensorXfPtr;
107 
108 
114 
115 
120 typedef std::shared_ptr< mic::types::TensorXd > TensorXdPtr;
121 
122 } //: namespace types
123 } //: namespace mic
124 
125 #endif /* SRC_TYPES_TENSORTYPES_HPP_ */
Template class storing the sample batches. A batch is stored in fact as three vectors, containing data, labels and sample numbers respectively.
Definition: Batch.hpp:44
typename std::shared_ptr< mic::types::TensorSample< eT > > TensorSamplePtr
Pointer to the <Tensor-uint> sample type.
Definition: TensorTypes.hpp:59
typename mic::types::Sample< mic::types::Tensor< eT >, unsigned int > TensorSample
The <Tensor-uint> sample type.
Definition: TensorTypes.hpp:52
typename mic::types::Batch< mic::types::Tensor< eT >, unsigned int > TensorBatch
The <Tensor-uint> batch type.
Definition: TensorTypes.hpp:67
std::shared_ptr< mic::types::TensorXf > TensorXfPtr
Shared pointer to tensor of single precision floats (of dynamic size).
std::shared_ptr< mic::types::TensorXi > TensorXiPtr
Shared pointer to tensor of integers (of dynamic size).
Definition: TensorTypes.hpp:92
std::shared_ptr< mic::types::TensorXd > TensorXdPtr
Shared pointer to tensor of double precision floats (of dynamic size).
Template class storing the data-label pairs. Additionally it stores the the index of the sample (main...
Definition: Sample.hpp:38
mic::types::Tensor< int > TensorXi
Tensor of integers (of dynamic size).
Definition: TensorTypes.hpp:85
mic::types::Tensor< double > TensorXd
Tensor of double precision floats (of dynamic size).
typename std::shared_ptr< mic::types::Tensor< eT > > TensorPtr
Typedef for a shared pointer to template-typed dynamic matrices.
Definition: TensorTypes.hpp:39
mic::types::Tensor< float > TensorXf
Tensor of single precision floats (of dynamic size).
Definition: TensorTypes.hpp:99
Template class representing an nD (n-Dimensional) tensor. Tensor is row-major, i.e. first dimension is height (rows), second is width (cols), third is depth (channels) etc.
Definition: Matrix.hpp:49
typename std::shared_ptr< mic::types::TensorBatch< eT > > TensorBatchPtr
Pointer to the <Tensor-uint> batch type.
Definition: TensorTypes.hpp:75
File contaning a template tensor class.