MachineIntelligenceCore:Algorithms
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
mic::types Namespace Reference

Classes

class  Action2DInterface
 Interface class representing an action in 2-D space. More...
 
class  Action2D
 Abstract template class representing an action in 2-D space. More...
 
class  NESWAction
 Class representing an N/E/S/W action. More...
 
class  RandomNESWAction
 Class representing a random N/E/S/W action. More...
 
class  ExitAction
 Class representing an exit action. More...
 
class  Batch
 Template class storing the sample batches. A batch is stored in fact as three vectors, containing data, labels and sample numbers respectively. More...
 
class  color_rgba
 Class for storing single a pixel of four channel (RGBA) image. More...
 
class  Tensor
 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. More...
 
class  Matrix
 Template-typed Matrix of dynamic size. Uses OpenBLAS if found by CMAKE - overloaded, specializations of * operator for types: float, double. More...
 
class  MatrixArray
 A dynamic array of matrices. It's just what it looks like - std::vector<Matrix>; elements are are accessible by name with operator [] name needs to be given together with name in the main constructor. More...
 
class  Position2D
 Class representing position in 2-D space. More...
 
class  Sample
 Template class storing the data-label pairs. Additionally it stores the the index of the sample (mainly for debug purposes). More...
 

Typedefs

typedef mic::types::Sample
< char, char > 
CharSample
 The <char-char> pair type used by e.g. RawTextImporter. More...
 
typedef mic::types::Batch
< char, char > 
CharBatch
 The <char-char> batch type used by e.g. RawTextImporter. More...
 
template<typename T >
using MatrixPtr = typename std::shared_ptr< mic::types::Matrix< T > >
 Typedef for a shared pointer to template-typed dynamic matrices. More...
 
typedef Eigen::VectorXd VectorXd
 Vector of double precision floats (of dynamic size). More...
 
typedef mic::types::Matrix
< double > 
MatrixXd
 Matrix of double precision floats (of dynamic size). More...
 
typedef std::shared_ptr
< mic::types::MatrixXd
MatrixXdPtr
 Shared pointer to matrix of double precision floats (of dynamic size). More...
 
typedef std::pair< MatrixXdPtr,
std::shared_ptr< char > > 
MatrixXdCharPair
 The <matrix-char> pair type used by e.g. IBMFontMatrixImporter. More...
 
typedef std::pair< MatrixXdPtr,
std::shared_ptr< unsigned int > > 
MatrixXdUintPair
 The <matrix-unsigned int> pair type used by e.g. MNISTMatrixImporter. More...
 
typedef Eigen::VectorXf VectorXf
 Vector of floats with single precision (of dynamic size). More...
 
typedef std::shared_ptr
< Eigen::VectorXf > 
VectorXfPtr
 Shared pointer to vector of floats with single precision (of dynamic size). More...
 
typedef mic::types::Matrix< float > MatrixXf
 Matrix of floats with single precision (of dynamic size). More...
 
typedef std::shared_ptr
< mic::types::MatrixXf
MatrixXfPtr
 Shared pointer to matrix with single precision floats (of dynamic size). More...
 
typedef std::pair< MatrixXfPtr,
std::shared_ptr< char > > 
MatrixXfCharPair
 The <single precision="" float="" matrix-char>=""> pair type. More...
 
typedef std::pair< MatrixXfPtr,
std::shared_ptr< unsigned int > > 
MatrixXfUintPair
 The <single precision="" float="" matrix-unsigned="" int>=""> pair. More...
 
typedef std::pair< MatrixXfPtr,
MatrixXfPtr
MatrixXfMatrixXfPair
 The <single precision float matrix - single precision float matrix> pair. More...
 
typedef Eigen::VectorXi VectorXi
 Vector of integers (of dynamic size). More...
 
typedef std::shared_ptr
< Eigen::VectorXi > 
VectorXiPtr
 Shared pointer of vector with integers (of dynamic size). More...
 
typedef mic::types::Matrix< int > MatrixXi
 Matrix of integers (of dynamic size). More...
 
typedef std::shared_ptr
< mic::types::MatrixXi
MatrixXiPtr
 Shared pointer to matrix of integers (of dynamic size). More...
 
template<typename inputDataType = float>
using MNISTSample = mic::types::Sample< mic::types::Matrix< inputDataType >, unsigned int >
 The <MatrixXf-uint> sample type used by e.g. MNISTImporter. More...
 
template<typename inputDataType = float>
using MNISTSamplePtr = std::shared_ptr< mic::types::MNISTSample< inputDataType > >
 Pointer to the <MatrixXf-uint> sample type used by e.g. MNISTImporter. More...
 
template<typename inputDataType = float>
using MNISTBatch = mic::types::Batch< mic::types::Matrix< inputDataType >, unsigned int >
 The <MatrixXf-uint> batch type used by e.g. MNISTImporter. More...
 
template<typename inputDataType = float>
using MNISTBatchPtr = std::shared_ptr< mic::types::MNISTBatch< inputDataType > >
 Pointer to the <MatrixXf-uint> batch type used by e.g. MNISTImporter. More...
 
template<typename eT >
using TensorPtr = typename std::shared_ptr< mic::types::Tensor< eT > >
 Typedef for a shared pointer to template-typed dynamic matrices. More...
 
template<typename eT >
using TensorSample = typename mic::types::Sample< mic::types::Tensor< eT >, unsigned int >
 The <Tensor-uint> sample type. More...
 
template<typename eT >
using TensorSamplePtr = typename std::shared_ptr< mic::types::TensorSample< eT > >
 Pointer to the <Tensor-uint> sample type. More...
 
template<typename eT >
using TensorBatch = typename mic::types::Batch< mic::types::Tensor< eT >, unsigned int >
 The <Tensor-uint> batch type. More...
 
template<typename eT >
using TensorBatchPtr = typename std::shared_ptr< mic::types::TensorBatch< eT > >
 Pointer to the <Tensor-uint> batch type. More...
 
typedef mic::types::Tensor< int > TensorXi
 Tensor of integers (of dynamic size). More...
 
typedef std::shared_ptr
< mic::types::TensorXi
TensorXiPtr
 Shared pointer to tensor of integers (of dynamic size). More...
 
typedef mic::types::Tensor< float > TensorXf
 Tensor of single precision floats (of dynamic size). More...
 
typedef std::shared_ptr
< mic::types::TensorXf
TensorXfPtr
 Shared pointer to tensor of single precision floats (of dynamic size). More...
 
typedef mic::types::Tensor
< double > 
TensorXd
 Tensor of double precision floats (of dynamic size). More...
 
typedef std::shared_ptr
< mic::types::TensorXd
TensorXdPtr
 Shared pointer to tensor of double precision floats (of dynamic size). More...
 

Enumerations

enum  NESW : short {
  NESW::North = 0, NESW::East, NESW::South, NESW::West,
  NESW::None, NESW::Random, NESW::Exit
}
 Enumeration of possible types of actions in 2D. More...
 
enum  image_type { RGBA, GRAYSCALE, BINARY }
 Possible image types. More...
 
enum  color_channel {
  RED, GREEN, BLUE, ALPHA,
  GRAY
}
 Possible types of image channels. More...
 

Typedef Documentation

The <char-char> batch type used by e.g. RawTextImporter.

Author
tkornuta

Definition at line 89 of file RawTextImporter.hpp.

The <char-char> pair type used by e.g. RawTextImporter.

Author
tkornuta

Definition at line 83 of file RawTextImporter.hpp.

template<typename T >
using mic::types::MatrixPtr = typedef typename std::shared_ptr< mic::types::Matrix<T> >

Typedef for a shared pointer to template-typed dynamic matrices.

Author
tkornuta

Definition at line 479 of file Matrix.hpp.

Matrix of double precision floats (of dynamic size).

Author
tkornuta

Definition at line 75 of file MatrixXdSpecializations.hpp.

typedef std::pair< MatrixXdPtr, std::shared_ptr<char> > mic::types::MatrixXdCharPair

The <matrix-char> pair type used by e.g. IBMFontMatrixImporter.

Author
tkornuta

Definition at line 89 of file MatrixXdSpecializations.hpp.

typedef std::shared_ptr< mic::types::MatrixXd > mic::types::MatrixXdPtr

Shared pointer to matrix of double precision floats (of dynamic size).

Author
tkornuta

Definition at line 82 of file MatrixXdSpecializations.hpp.

typedef std::pair< MatrixXdPtr, std::shared_ptr<unsigned int> > mic::types::MatrixXdUintPair

The <matrix-unsigned int> pair type used by e.g. MNISTMatrixImporter.

Author
tkornuta

Definition at line 95 of file MatrixXdSpecializations.hpp.

Matrix of floats with single precision (of dynamic size).

Author
tkornuta

Definition at line 86 of file MatrixXfSpecializations.hpp.

typedef std::pair< MatrixXfPtr, std::shared_ptr<char> > mic::types::MatrixXfCharPair

The <single precision="" float="" matrix-char>=""> pair type.

Author
tkornuta

Definition at line 100 of file MatrixXfSpecializations.hpp.

The <single precision float matrix - single precision float matrix> pair.

Author
tkornuta

Definition at line 112 of file MatrixXfSpecializations.hpp.

typedef std::shared_ptr< mic::types::MatrixXf > mic::types::MatrixXfPtr

Shared pointer to matrix with single precision floats (of dynamic size).

Author
tkornuta

Definition at line 93 of file MatrixXfSpecializations.hpp.

typedef std::pair< MatrixXfPtr, std::shared_ptr<unsigned int> > mic::types::MatrixXfUintPair

The <single precision="" float="" matrix-unsigned="" int>=""> pair.

Author
tkornuta

Definition at line 106 of file MatrixXfSpecializations.hpp.

Matrix of integers (of dynamic size).

Author
tkornuta

Definition at line 49 of file MatrixXiSpecializations.hpp.

typedef std::shared_ptr< mic::types::MatrixXi > mic::types::MatrixXiPtr

Shared pointer to matrix of integers (of dynamic size).

Author
tkornuta

Definition at line 55 of file MatrixXiSpecializations.hpp.

template<typename inputDataType = float>
using mic::types::MNISTBatch = typedef mic::types::Batch<mic::types::Matrix<inputDataType>, unsigned int>

The <MatrixXf-uint> batch type used by e.g. MNISTImporter.

Author
tkornuta

Definition at line 55 of file MNISTTypes.hpp.

template<typename inputDataType = float>
using mic::types::MNISTBatchPtr = typedef std::shared_ptr<mic::types::MNISTBatch<inputDataType> >

Pointer to the <MatrixXf-uint> batch type used by e.g. MNISTImporter.

Author
tkornuta

Definition at line 62 of file MNISTTypes.hpp.

template<typename inputDataType = float>
using mic::types::MNISTSample = typedef mic::types::Sample<mic::types::Matrix<inputDataType>, unsigned int>

The <MatrixXf-uint> sample type used by e.g. MNISTImporter.

Author
tkornuta

Definition at line 41 of file MNISTTypes.hpp.

template<typename inputDataType = float>
using mic::types::MNISTSamplePtr = typedef std::shared_ptr<mic::types::MNISTSample<inputDataType> >

Pointer to the <MatrixXf-uint> sample type used by e.g. MNISTImporter.

Author
tkornuta

Definition at line 48 of file MNISTTypes.hpp.

template<typename eT >
using mic::types::TensorBatch = typedef typename mic::types::Batch<mic::types::Tensor<eT>, unsigned int>

The <Tensor-uint> batch type.

Author
tkornuta

Definition at line 67 of file TensorTypes.hpp.

template<typename eT >
using mic::types::TensorBatchPtr = typedef typename std::shared_ptr<mic::types::TensorBatch<eT> >

Pointer to the <Tensor-uint> batch type.

Author
tkornuta

Definition at line 75 of file TensorTypes.hpp.

template<typename eT >
using mic::types::TensorPtr = typedef typename std::shared_ptr< mic::types::Tensor<eT> >

Typedef for a shared pointer to template-typed dynamic matrices.

Author
tkornuta

Definition at line 39 of file TensorTypes.hpp.

template<typename eT >
using mic::types::TensorSample = typedef typename mic::types::Sample<mic::types::Tensor<eT>, unsigned int>

The <Tensor-uint> sample type.

Author
tkornuta

Definition at line 52 of file TensorTypes.hpp.

template<typename eT >
using mic::types::TensorSamplePtr = typedef typename std::shared_ptr<mic::types::TensorSample<eT> >

Pointer to the <Tensor-uint> sample type.

Author
tkornuta

Definition at line 59 of file TensorTypes.hpp.

Tensor of double precision floats (of dynamic size).

Author
tkornuta

Definition at line 113 of file TensorTypes.hpp.

typedef std::shared_ptr< mic::types::TensorXd > mic::types::TensorXdPtr

Shared pointer to tensor of double precision floats (of dynamic size).

Author
tkornuta

Definition at line 120 of file TensorTypes.hpp.

Tensor of single precision floats (of dynamic size).

Author
tkornuta

Definition at line 99 of file TensorTypes.hpp.

typedef std::shared_ptr< mic::types::TensorXf > mic::types::TensorXfPtr

Shared pointer to tensor of single precision floats (of dynamic size).

Author
tkornuta

Definition at line 106 of file TensorTypes.hpp.

Tensor of integers (of dynamic size).

Author
tkornuta

Definition at line 85 of file TensorTypes.hpp.

typedef std::shared_ptr< mic::types::TensorXi > mic::types::TensorXiPtr

Shared pointer to tensor of integers (of dynamic size).

Author
tkornuta

Definition at line 92 of file TensorTypes.hpp.

typedef Eigen::VectorXd mic::types::VectorXd

Vector of double precision floats (of dynamic size).

Author
tkornuta

Definition at line 68 of file MatrixXdSpecializations.hpp.

typedef Eigen::VectorXf mic::types::VectorXf

Vector of floats with single precision (of dynamic size).

Author
tkornuta

Definition at line 72 of file MatrixXfSpecializations.hpp.

typedef std::shared_ptr< Eigen::VectorXf > mic::types::VectorXfPtr

Shared pointer to vector of floats with single precision (of dynamic size).

Author
tkornuta

Definition at line 79 of file MatrixXfSpecializations.hpp.

typedef Eigen::VectorXi mic::types::VectorXi

Vector of integers (of dynamic size).

Author
tkornuta

Definition at line 35 of file MatrixXiSpecializations.hpp.

typedef std::shared_ptr< Eigen::VectorXi > mic::types::VectorXiPtr

Shared pointer of vector with integers (of dynamic size).

Author
tkornuta

Definition at line 42 of file MatrixXiSpecializations.hpp.

Enumeration Type Documentation

Possible types of image channels.

Author
krocki
Enumerator
RED 

Red channel

GREEN 

Green channel

BLUE 

Blue channel

ALPHA 

Alpha channel

GRAY 

Gray channel

Definition at line 43 of file Color.hpp.

Possible image types.

Author
krocki
Enumerator
RGBA 

RGBA.

Four channel RGBA image - each pixel color is described by four values in range <0-255>

GRAYSCALE 

GRAYSCALE.

Grayscale image - a single channel image with values of pixels in range <0-255>

BINARY 

BINARY.

Binary image - a single channel image with values of pixels in range <0-1>

Definition at line 33 of file Color.hpp.

enum mic::types::NESW : short
strong

Enumeration of possible types of actions in 2D.

Author
tkornuta
Enumerator
North 

Action north.

East 

Action east.

South 

Action south.

West 

Action west.

None 

Empty action.

Random 

Random action.

Exit 

Exit action.

Definition at line 36 of file Action2D.hpp.