Machine Learning Library
Classes | Enumerations | Functions
CMatrix.h File Reference
#include <iostream>
#include <fstream>
#include "CObject.h"

Go to the source code of this file.

Classes

class  CMatrix< Type >
 Template object implementing a matrix of single and double precision elements. More...
 
class  CVector< Type >
 templatized vector for numerical applications More...
 
class  CDenseVector< Type >
 Template object for vectors of single and double precision and integer. More...
 
class  CMatrix< Type >
 Template object implementing a matrix of single and double precision elements. More...
 

Enumerations

enum  TMatrixType { SYMETRIC }
 

Functions

template<class Type >
CMatrix< Type > operator+ (const CMatrix< Type > &rtMat1, const CMatrix< Type > &rtMat2)
 
template<class Type >
CMatrix< Type > operator- (const CMatrix< Type > &rtMat1, const CMatrix< Type > &rtMat2)
 
template<class Type >
CMatrix< Type > elementMul (const CMatrix< Type > &rtMat1, const CMatrix< Type > &rtMat2)
 
template<class Type >
CMatrix< Type > elementDiv (const CMatrix< Type > &rtMat1, const CMatrix< Type > &rtMat2)
 
template<class Type >
CMatrix< Type > operator* (const CMatrix< Type > &tMat1, const CMatrix< Type > &tMat2)
 
template<class Type >
CMatrix< Type > operator+ (const CMatrix< Type > &rtMat, const Type &rtScalar)
 
template<class Type >
CMatrix< Type > operator* (const CMatrix< Type > &tMat, const Type &rtScalar)
 
template<class Type >
CMatrix< Type > operator- (const CMatrix< Type > &rtMat, const Type &rtScalar)
 
template<class Type >
CMatrix< Type > operator/ (const CMatrix< Type > &rtMat, const Type &rtScalar)
 
template<class Type >
CDenseVector< Type > operator* (const CMatrix< Type > &rtMat, const CVector< Type > &rtVec)
 
template<class Type >
void save (const CMatrix< Type > &rtMat, char *acString)
 
template<class Type >
void load (CMatrix< Type > &rtMat, char *acString)
 

Enumeration Type Documentation

Enumerator
SYMETRIC 

Function Documentation

template<class Type >
CMatrix<Type> elementDiv ( const CMatrix< Type > &  rtMat1,
const CMatrix< Type > &  rtMat2 
)

Elementwise division of two matrices with returned result.

template<class Type >
CMatrix<Type> elementMul ( const CMatrix< Type > &  rtMat1,
const CMatrix< Type > &  rtMat2 
)

Elementwise multiplication of two matrices with returned result.

template<class Type >
void load ( CMatrix< Type > &  rtMat,
char *  acString 
)

Load matrix

template<class Type >
CMatrix<Type> operator* ( const CMatrix< Type > &  tMat1,
const CMatrix< Type > &  tMat2 
)

Multiplication of two matrices with returned result.

template<class Type >
CMatrix<Type> operator* ( const CMatrix< Type > &  tMat,
const Type &  rtScalar 
)

Multiplication of a scalar with each element with returned result.

template<class Type >
CDenseVector<Type> operator* ( const CMatrix< Type > &  rtMat,
const CVector< Type > &  rtVec 
)

Vector matrix multiplication

template<class Type >
CMatrix<Type> operator+ ( const CMatrix< Type > &  rtMat1,
const CMatrix< Type > &  rtMat2 
)

Elementwise addition of two matrices with returned result.

template<class Type >
CMatrix<Type> operator+ ( const CMatrix< Type > &  rtMat,
const Type &  rtScalar 
)

Addition of a scalar to each element with returned result. ^

template<class Type >
CMatrix<Type> operator- ( const CMatrix< Type > &  rtMat1,
const CMatrix< Type > &  rtMat2 
)

Elementwise subtraction of two matrices with returned result.

template<class Type >
CMatrix<Type> operator- ( const CMatrix< Type > &  rtMat,
const Type &  rtScalar 
)

Subtraction of a scalar from each element with returned result.

template<class Type >
CMatrix<Type> operator/ ( const CMatrix< Type > &  rtMat,
const Type &  rtScalar 
)

Division of each element by a scalar with returned result.

template<class Type >
void save ( const CMatrix< Type > &  rtMat,
char *  acString 
)

Save matrix