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

class XEMDiagMatrix More...

#include <DiagMatrix.h>

Inheritance diagram for XEM::DiagMatrix:
Collaboration diagram for XEM::DiagMatrix:

Public Member Functions

 DiagMatrix ()
 Default constructor.
 
 DiagMatrix (int64_t pbDimension, double d=1.0)
 
 DiagMatrix (DiagMatrix *A)
 
virtual ~DiagMatrix ()
 Desctructor.
 
double determinant (Exception &errorType)
 compute determinant of diagonal matrix
 
double * getStore ()
 return store of diagonal matrix
 
void inverse (Matrix *&A)
 compute inverse of diagonal 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) will be A / d
 
void equalToMatrixMultiplyByDouble (Matrix *D, double d)
 this = matrix * d
 
void computeSVD (DiagMatrix *&S, GeneralMatrix *&O)
 compute singular vector decomposition
 
double computeTrace ()
 compute trace of general matrix
 
void add (double *xMoinsMean, double cik)
 add : cik * xMoinsMean * xMoinsMean' to this
 
void operator= (const double &d)
 set the value of (d x Identity) to this
 
void operator/= (const double &d)
 this = this / (d * Identity)
 
void operator*= (const double &d)
 this = this * (d * Identity)
 
void operator+= (Matrix *M)
 this = this + matrix
 
void operator= (Matrix *M)
 this = matrix
 
double putSphericalValueInStore (double &store)
 Return store of a spherical matrix in a diagonal one.
 
double addSphericalValueInStore (double &store)
 Add store of a spherical matrix in a diagonal 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 input (std::ifstream &fi)
 read general matrix in an input file
 
virtual void input (double **variances)
 
void setSymmetricStore (double *store)
 set store
 
void setGeneralStore (double *store)
 
void setDiagonalStore (double *store)
 
void setSphericalStore (double store)
 
double ** storeToArray () const
 
double detDiag (Exception &errorType)
 gives : det(diag(this))
 
void compute_as__multi_O_S_O (double multi, GeneralMatrix *&O, DiagMatrix *&S)
 
double trace_this_O_Sm1_O (GeneralMatrix *&O, DiagMatrix *&S)
 
double compute_trace_W_C (Matrix *C)
 
void computeShape_as__diag_Ot_this_O (DiagMatrix *&Shape, GeneralMatrix *&Ori, double diviseur=1.0)
 
void sortDiagMatrix ()
 sort diagonal matrix in decreasing order
 
- 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 XEMDiagMatrix

Author
F Langrognet & A Echenim

Constructor & Destructor Documentation

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

contructor : d*Id default value = Id


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