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

Public Member Functions

 SymmetricMatrix ()
 Default constructor.
 
 SymmetricMatrix (int64_t pbDimension, double d=1.0)
 
 SymmetricMatrix (SymmetricMatrix *A)
 
virtual ~SymmetricMatrix ()
 Destructor.
 
double determinant (Exception &errorType)
 Compute determinant of symmetric matrix.
 
double * getStore ()
 Return store of symmetric matrix.
 
MATH::SymmetricMatrixgetValue ()
 Return newmat symmetric matrix.
 
int64_t getStoreDim ()
 Return dimension of store.
 
void inverse (Matrix *&A)
 Inverse symmetric matrix.
 
double norme (double *xMoinsMean)
 compute (x - mean)' this (x - mean)
 
void equalToMatrixDividedByDouble (Matrix *A, double d)
 compute : this = A / d
 
void equalToMatrixMultiplyByDouble (Matrix *D, double d)
 compute : 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 symmetric one.
 
double addSphericalValueInStore (double &store)
 Add store of a spherical matrix in a symmetric 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 computeSVD (DiagMatrix *&S, GeneralMatrix *&O)
 compute general matrix SVD decomposition
 
void operator= (const double &d)
 this = (d * Identity)
 
void operator/= (const double &d)
 this = this / (Identity * d)
 
void operator*= (const double &d)
 this = this * ( Identity * d)
 
void operator+= (Matrix *M)
 this = this + matrix
 
void operator= (Matrix *M)
 this = matrix
 
void input (std::ifstream &fi)
 read symmetric matrix store in file
 
virtual void input (double **variances)
 
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'
 
double computeTrace ()
 compute trace of this
 
void compute_as_M_tM (GeneralMatrix *M, int64_t d)
 compute this as M * M'
 
void compute_as_M_V (SymmetricMatrix *M, double *V)
 compute this as matrix * vector
 
void compute_product_Lk_Wk (Matrix *Wk, double L)
 compute this as double * matrix
 
double compute_trace_W_C (Matrix *C)
 copute trace of W * C
 
void compute_M_as__O_Sinverse_Ot_this (GeneralMatrix &M, GeneralMatrix *&O, DiagMatrix *&S)
 compute M as : M = ( O * S^{-1} * O' ) * this
 
void compute_M_tM (double *V, int64_t l)
 compute this as vector * vector'
 
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)
 

Constructor & Destructor Documentation

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

constructor : d*Id default value : Id


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