mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
XEM::GeneralMatrix Class Reference

class GeneralMatrix More...

#include <GeneralMatrix.h>

Inheritance diagram for XEM::GeneralMatrix:
Collaboration diagram for XEM::GeneralMatrix:

Public Member Functions

 GeneralMatrix ()
 Default constructor.
 
 GeneralMatrix (int64_t pbDimension, double d=1.0)
 
 GeneralMatrix (GeneralMatrix *A)
 
virtual ~GeneralMatrix ()
 Destructor.
 
double determinant (Exception &errorType)
 compute determinant of general matrix
 
double * getStore ()
 return store of general matrix
 
MATH::MatrixgetValue ()
 return newmat general matrix
 
int64_t getStoreDim ()
 return dimension of store
 
void inverse (Matrix *&A)
 inverse general matrix
 
void compute_product_Lk_Wk (Matrix *Wk, double L)
 
double norme (double *xMoinsMean)
 compute (x - mean)' this (x - mean)
 
void equalToMatrixDividedByDouble (Matrix *A, double d)
 this = A / d
 
void equalToMatrixMultiplyByDouble (Matrix *D, double d)
 this = A * d
 
void add (double *xMoinsMean, double cik)
 add : cik * xMoinsMean * xMoinsMean' to this
 
double putSphericalValueInStore (double &store)
 return store of a spherical matrix in a general one
 
double addSphericalValueInStore (double &store)
 add store of a spherical matrix in a general one
 
double getSphericalStore ()
 
double * putDiagonalValueInStore (double *store)
 Return store of a diagonal matrix.
 
double * addDiagonalValueInStore (double *store)
 Add store of a diagonal matrix in a diagonal one.
 
double * getDiagonalStore ()
 
double * putSymmetricValueInStore (double *store)
 Return store of a diagonal matrix.
 
double * addSymmetricValueInStore (double *store)
 Add store of a diagonal matrix in a diagonal one.
 
double * getSymmetricStore ()
 
double * putGeneralValueInStore (double *store)
 Return store of a diagonal matrix.
 
double * addGeneralValueInStore (double *store)
 Add store of a diagonal matrix in a diagonal one.
 
double * getGeneralStore ()
 
void operator= (const double &d)
 this = (d x Identity)
 
void operator/= (const double &d)
 this = this / (d x Identity)
 
void operator*= (const double &d)
 this = this * (d x Identity)
 
void operator+= (Matrix *M)
 this = this + matrix
 
void operator= (Matrix *M)
 this = matrix
 
void edit (std::ostream &flux, std::string before, std::string sep, int64_t dim)
 edit general matrix
 
void input (std::ifstream &fi)
 read general matrix from input file
 
void input (std::ifstream &fi, int64_t dim)
 read general matrix from input file
 
virtual void input (double **variances)
 
void computeSVD (DiagMatrix *&S, GeneralMatrix *&O)
 compute general matrix SVD decomposition
 
void computeShape_as__diag_Ot_this_O (DiagMatrix *&Shape, GeneralMatrix *&Ori, double diviseur=1.0)
 compute Shape as diag(Ot . this . O ) / diviseur
 
void compute_as__multi_O_S_O (double multi, GeneralMatrix *&O, DiagMatrix *&S)
 compute this as : multi * (O * S * O' )
 
void compute_as_O_S_O (GeneralMatrix *&O, double *&S_store)
 compute this as O * S *O' More...
 
double computeTrace ()
 compute trace of this
 
void compute_as_M_tM (GeneralMatrix *M, int64_t d)
 compute this as matrix * matrix'
 
void compute_as_M_V (GeneralMatrix *M, double *V)
 compute this as matrix * vector
 
void multiply (double *V, int64_t nk, GeneralMatrix *Q)
 compute this as vector multiplied by matrix
 
void compute_M_as__O_Sinverse_Ot_this (GeneralMatrix &M, GeneralMatrix *&O, DiagMatrix *&S)
 compute M as : M = ( O * S^{-1} * O' ) * this
 
double compute_trace_W_C (Matrix *C)
 
double detDiag (Exception &errorType)
 gives : det(diag(this))
 
double trace_this_O_Sm1_O (GeneralMatrix *&O, DiagMatrix *&S)
 trace( this * O * S^{-1} * O' )
 
void setSymmetricStore (double *store)
 set store
 
void setGeneralStore (double *store)
 
void setDiagonalStore (double *store)
 
void setSphericalStore (double store)
 
double ** storeToArray () const
 
- Public Member Functions inherited from XEM::Matrix
 Matrix ()
 Default constructor.
 
 Matrix (int64_t pbDimension)
 
 Matrix (Matrix *A)
 
virtual ~Matrix ()
 Desctructor.
 
int64_t getPbDimension ()
 
void edit (std::ostream &flux, std::string before)
 

Detailed Description

class GeneralMatrix

Author
F Langrognet & A Echenim

Constructor & Destructor Documentation

XEM::GeneralMatrix::GeneralMatrix ( int64_t  pbDimension,
double  d = 1.0 
)

constructor : d*Id default value = Id

Member Function Documentation

void XEM::GeneralMatrix::compute_as_O_S_O ( GeneralMatrix *&  O,
double *&  S_store 
)

compute this as O * S *O'

compute this as : (O * S * O' )


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