C++ main module for mmsd Package  1.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
LAP_DoubleFullGeneralMatrix Class Referenceabstract

#include <LAP_DoubleFullGeneralMatrix.h>

Inheritance diagram for LAP_DoubleFullGeneralMatrix:
Inheritance graph
[legend]
Collaboration diagram for LAP_DoubleFullGeneralMatrix:
Collaboration graph
[legend]

Public Member Functions

 LAP_DoubleFullGeneralMatrix ()
 build a matrix More...
 
 LAP_DoubleFullGeneralMatrix (const tLVectorIndex &n, const tLVectorIndex &m)
 build a matrix More...
 
 LAP_DoubleFullGeneralMatrix (const LAP_DoubleFullGeneralMatrix &mat)
 build a matrix More...
 
virtual ~LAP_DoubleFullGeneralMatrix ()
 destroy a matrix More...
 
virtual SP::LAP_DoubleMatrix NewInstance () const
 create a New instance of this More...
 
virtual double & operator() (const tLVectorIndex &i, const tLVectorIndex &j)
 accessor of element at row i and column j taking into account the row More...
 
virtual const double & operator() (const tLVectorIndex &i, const tLVectorIndex &j) const
 accessor of element at row i and column j More...
 
LAP_DoubleFullGeneralMatrixoperator= (const double &s)
 init all the matrix to s More...
 
LAP_DoubleFullGeneralMatrixoperator= (const LAP_DoubleFullGeneralMatrix &s)
 init all the matrix to s More...
 
LAP_DoubleFullGeneralMatrixoperator^= (const lapack_real &s)
 power by s the matrix v More...
 
LAP_DoubleFullGeneralMatrixoperator*= (const lapack_real &s)
 multiply by s the matrix More...
 
LAP_DoubleFullGeneralMatrixoperator/= (const lapack_real &s)
 divide by s the matrix v More...
 
LAP_DoubleFullGeneralMatrixoperator+= (const lapack_real &s)
 add s to the upper matrix More...
 
LAP_DoubleFullGeneralMatrixoperator-= (const lapack_real &s)
 sub s to the upper matrix More...
 
LAP_DoubleFullGeneralMatrixoperator*= (const LAP_DoubleFullGeneralMatrix &s)
 multiply the viewed matrices term by term More...
 
LAP_DoubleFullGeneralMatrixoperator/= (const LAP_DoubleFullGeneralMatrix &s)
 divide the viewed matrices term by term More...
 
LAP_DoubleFullGeneralMatrixoperator-= (const LAP_DoubleFullGeneralMatrix &s)
 sub the viewed matrix More...
 
LAP_DoubleFullGeneralMatrixoperator+= (const LAP_DoubleFullGeneralMatrix &s)
 add the viewed matrix More...
 
virtual void setSize (const tLVectorIndex &n, const tLVectorIndex &p)
 set the dimension of the matrix and allocate the values array More...
 
virtual void setSize (const tLVectorIndex &n)
 set the dimension of the matrix and alocate the values array More...
 
virtual void setValues (const tLVectorIndex &n, const tLVectorIndex &p, SP::LAP_DoubleVector v)
 set the values of the matrix to V without allocation the values array More...
 
virtual void setValues (SP::LAP_DoubleVector v)
 set the values n is the size of values. the size of the matrix is sqrt(n)xsqrt(n) More...
 
virtual void setValues (const tLVectorIndex &n, const tLVectorIndex &p, const double *values)
 set the values More...
 
virtual void setValues (const tLVectorIndex &n, const double *values)
 set the values n is the size of values. the size of the matrix is sqrt(n)xsqrt(n) More...
 
void concat (const double &alpha, const LAP_DoubleFullGeneralMatrix &X, const double &beta, const LAP_DoubleFullGeneralMatrix &Y)
 concat This-> [alpha X, beta Y] add the colmuns of Y to the columns of X to becomes A More...
 
tLVectorIncrement getRowIncrement () const
 get the memory distance between (*this)(i,j) & (*this)(i+1,j) More...
 
tLVectorIndex getLeadingDimension () const
 get the memory distance between (*this)(i,j) & (*this)(i,j+1) More...
 
void transpose ()
 transpose the matrix More...
 
tBoolean isTransposed () const
 return the transposed More...
 
virtual tLVectorIndex getRowsNumber () const
 get the lines number of the matrix from view More...
 
virtual tLVectorIndex getColumnsNumber () const
 get the columns number of the matrix from view More...
 
void add (const double &alpha, const LAP_DoubleFullGeneralMatrix &x)
 This+=alpha.x. More...
 
virtual void getColumn (const tLVectorIndex &j, LAP_DoubleVector &v) const
 get the viewed j-th column in a vector More...
 
virtual void getColumn (const tLVectorIndex &j, SP::LAP_DoubleVector v) const
 get the viewed j-th column in a vector More...
 
void getColumnByReference (const tLVectorIndex &j, LAP_DoubleVector &v)
 get the column by reference the values of v pointer to the values of the column j of this More...
 
void getColumnByReference (const tLVectorIndex &j, LAP_ConstDoubleVector &v) const
 get the column by reference the values of v pointer to the values of the column j of this More...
 
virtual void getRow (const tLVectorIndex &i, SP::LAP_DoubleVector v) const
 get the i-th viewed row in a vector More...
 
virtual void getRow (const tLVectorIndex &i, LAP_DoubleVector &v) const
 get the i-th viewed row in a vector More...
 
void getRowByReference (const tLVectorIndex &i, LAP_DoubleVector &v)
 get the row by reference the values of v pointer to the values of the column j of this More...
 
void getRowByReference (const tLVectorIndex &i, LAP_ConstDoubleVector &v) const
 get the row by reference the values of v pointer to the values of the column j of this More...
 
void removeColumn (const tLVectorIndex &index)
 remove column at index More...
 
void swapColumns (const tLVectorIndex &i, const tLVectorIndex &j)
 swap the viewed columns i & j More...
 
void reverseColumns ()
 reverse the viewed columns of the matrix More...
 
tBoolean symmetricTest () const
 test if the matrix is symmetric with epsilon difference More...
 
tBoolean upperTest () const
 test if the matrix is upper More...
 
tBoolean lowerTest () const
 test if the matrix is symmetric with epsilon difference More...
 
virtual tReal norm2 () const
 return norm2 sqrt(sum_ij(aij^2))=sqrt(tr(AtA)); More...
 
virtual tReal norm2 (LAP_DoubleVector &v) const
 return norm2 of the matrix and for each row; More...
 
virtual tReal sum (const tFlag &d, LAP_DoubleVector &s) const
 make the sum among the direction if (d==ROW) sum all the columns of each row and size of s is the number of rows if (d==COL) sum all the rows of each column and size of s is the number of columns ^return the sum of all the element of the matrix More...
 
virtual tReal sum (const tFlag &d, const tLVectorIndex &index) const
 make the sum among the direction if (d==ROW) sum all the columns of row index if (d==COL) sum all the rows of coluln at index More...
 
virtual tReal max (const tFlag &d, const tLVectorIndex &index) const
 make get max among the direction if (d==ROW) max of all the columns of row index if (d==COL) max of all the rows of column at index More...
 
void indexMin (tLVectorIndex &i, tLVectorIndex &j) const
 get the index of the min view element in absolute value More...
 
virtual void vectorProduct (const LAP_DoubleVector &X, LAP_DoubleVector &Y) const
 compute Y= This. X More...
 
void vectorProduct (const tBoolean &isTrans, const LAP_DoubleVector &X, const lapack_real &alpha, const lapack_real &beta, LAP_DoubleVector &Y) const
 return Y=betaY+alpha.op(This).X More...
 
void vectorProduct (const tBoolean &isTrans, const LAP_ConstDoubleVector &X, const lapack_real &alpha, const lapack_real &beta, LAP_DoubleVector &Y) const
 return Y=betaY+alpha.op(This).X More...
 
virtual void vectorProduct (const tBoolean &isTrans, const tLVectorIndex &nx, const tLVectorIncrement &incx, const double *x, const lapack_real &alpha, const lapack_real &beta, const tLVectorIndex &ny, const tLVectorIncrement &incy, double *y) const
 compute Y= betaY + alpha. op(This). X More...
 
virtual SP::LAP_DoubleMatrix matrixProduct (const LAP_DoubleMatrix &B) const
 return C= This.B More...
 
tBoolean matrixProduct (const LAP_DoubleMatrix &B, LAP_DoubleFullGeneralMatrix &C) const
 general return C=(This) . B More...
 
void matrixProduct (const LAP_DoubleFullGeneralMatrix &B, LAP_DoubleFullGeneralMatrix &C) const
 make the product : C:=This. B More...
 
void matrixProduct (const tBoolean &isLeftSide, const tBoolean &isTrans, const LAP_DoubleFullGeneralMatrix &B, const double &alpha, LAP_DoubleFullGeneralMatrix &C) const
 make the product : C:=op(This).B (leftSide=true) C:=B. op(This) (leftSide=false) More...
 
virtual tBoolean computeEigenValues (LAP_DoubleVector &U) const
 compute the eigen values of This: A is copied More...
 
virtual tBoolean computeEigenValueDecomposition (LAP_DoubleVector &U)
 compute the eigen values decomposition on this: A is destroyed such that it contains the eigen vectors this is modified to store the eigen vectors More...
 
virtual tBoolean computeEigenValueDecomposition (LAP_DoubleVector &U, LAP_DoubleMatrix &VR) const
 compute the eigen values decomposition on A: A is copied More...
 
void orthogonalize ()
 
void orthogonalize (const tFlag &m)
 
virtual tBoolean inverse ()
 inverse the matrix More...
 
tBoolean solve (const tBoolean &isTr, LAP_DoubleFullGeneralMatrix &X) const
 solve op(This).X=B where K is the number of colums of B More...
 
tBoolean LUSolve (const tBoolean &isTr, LAP_DoubleFullGeneralMatrix &X)
 solve op(This).X=B where K is the number of colums of B More...
 
virtual tBoolean isSymmetric () const
 return true if the matrix is symmetric More...
 
virtual tBoolean isUpper () const
 return true if the matrix is upper More...
 
const double & operator[] (const tLVectorIndex &index) const
 get the element at index More...
 
double & operator[] (const tLVectorIndex &index)
 get the element at index More...
 
virtual tBoolean copy (const LAP_DoubleMatrix &x)
 copy a matrix More...
 
tBoolean copy (SPC::LAP_DoubleMatrix x)
 copy a matrix More...
 
tBoolean copy (LAP_DoubleMatrix *x)
 copy a matrix More...
 
virtual tBoolean copy (const LAP_Matrix &matrix)
 copy operator More...
 
void init (const double v)
 init the values to v More...
 
void set (const tLVectorIndex &i, const tLVectorIndex &j, const double &v)
 set the value of the element at row i and column j More...
 
void add (const tLVectorIndex &i, const tLVectorIndex &j, const double &v)
 add v to the view term (i,j) of the matrix More...
 
void setStorage (SP::LAP_DoubleMatrixStorage s)
 set the storage More...
 
double get (const tLVectorIndex &i, const tLVectorIndex &j) const
 get the value taking into account the view More...
 
LAP_DoubleMatrixStoragegetStorage ()
 set the storage More...
 
const LAP_DoubleMatrixStoragegetStorage () const
 set the storage More...
 
double trace () const
 return trace More...
 
void addDiagonal (const double &alpha)
 This +=alpha.I. More...
 
pair< tLVectorIndex,
tLVectorIndex
computeBandsNumber () const
 
double getFillRate () const
 get the fill rate of the matrix More...
 
tLVectorIndex getNullValuesNumber () const
 get the number of null values More...
 
tLVectorIndex getValuesNumber () const
 get the number of values More...
 
virtual SP::LAP_DoubleVector vectorProduct (const LAP_DoubleVector &X) const
 compute This. X More...
 
virtual void vectorProduct (SPC::LAP_DoubleVector &X, SP::LAP_DoubleVector &Y) const
 rcompute Y= This X More...
 
virtual void vectorProduct (const tBoolean &isTrans, const LAP_DoubleVector &X, LAP_DoubleVector &Y) const
 compute Y= op(This). X More...
 
virtual void vectorProduct (const tBoolean &isTrans, const tLVectorIndex &nX, const tLVectorIncrement &incX, const double *X, const double &alpha, const double &beta, const tLVectorIndex &nY, const tLVectorIncrement &incY, double *Y) const =0
 compute Y= beta Y + alpha op(This). X with op(A)=A or tA depending on isTrans value More...
 
virtual tString toString () const
 print the matrix taking into account the view More...
 
const tLVectorIndexgetSize (const tFlag &direction) const
 get the size in direction More...
 
double & getNullValue ()
 get a null value More...
 
const double & getNullValue () const
 get a const null value More...
 
tBoolean isNullValue (const double &v) const
 return true if the value is a null More...
 
void getSharedPointer (SP::CORE_Object &p)
 get the shared pointer of this class into p More...
 
void getSharedPointer (SPC::CORE_Object &p) const
 get the shared pointer of this class into p More...
 
tString getClassName () const
 return the class name of the object More...
 
tString getIdentityString () const
 return the identity string of the object of the form className_at_address More...
 
tString getPointerAddress () const
 return the identity string of the object More...
 
template<class T >
tBoolean isInstanceOf () const
 return true if the object is an instance of T More...
 
virtual void print ()
 print the class More...
 
virtual ostream & print (ostream &out) const
 print the class More...
 
virtual void print (const tString &message)
 print the class More...
 
virtual void print (const tInteger &str)
 print More...
 
virtual void print (const tRelativeInteger &str)
 print More...
 
virtual void print (const tReal &str)
 print More...
 
virtual void print (const int &str)
 print More...
 

Static Public Member Functions

static
SP::LAP_DoubleFullGeneralMatrix 
New ()
 
static
SP::LAP_DoubleFullGeneralMatrix 
New (const int &n, const int &m)
 
static
SP::LAP_DoubleFullGeneralMatrix 
New (const tLVectorIndex &n, const tLVectorIndex &m)
 
static
SP::LAP_DoubleFullGeneralMatrix 
Identity (const tLVectorIndex &nRows)
 create an identity matrix More...
 
static void matrixProduct (const tBoolean &isTrA, const LAP_DoubleFullGeneralMatrix &A, const tBoolean &isTrB, const LAP_DoubleFullGeneralMatrix &B, const lapack_real &alpha, const lapack_real &beta, LAP_DoubleFullGeneralMatrix &C)
 make the product C = alpha. op(A).op(B) +beta C More...
 
static void matrixProduct (const tBoolean &isTrA, const tLVectorIndex &nRowsA, const tLVectorIndex &nColsA, const tLVectorIndex &ldA, const double *A, const tBoolean &isTrB, const tLVectorIndex &nRowsB, const tLVectorIndex &nColsB, const tLVectorIndex &ldB, const double *B, const lapack_real &alpha, const lapack_real &beta, LAP_DoubleFullGeneralMatrix &C)
 make the product of 2 full matrix (general, upper,symmetric) C = alpha. op(A).op(B) +beta C with op(T)=tT or op(T)=T More...
 
static tBoolean computeEigenValues (LAP_DoubleFullGeneralMatrix &A, LAP_DoubleVector &U)
 compute the eigen values of A and A is destroyed after method More...
 
static tBoolean computeEigenValueDecomposition (LAP_DoubleFullGeneralMatrix &A, LAP_DoubleVector &U, LAP_DoubleFullGeneralMatrix &VR)
 compute the eigen elements of A A is supposed to be non symmetric: A is destroyed More...
 
static tBoolean solve (const LAP_DoubleFullGeneralMatrix &A, const lapack_int *ipiv, const tBoolean &isTr, LAP_DoubleFullGeneralMatrix &X)
 solve op(This).X=B where K is the number of colums of B More...
 
static double zpow (const double &f, const int &n)
 compute the value of pow(f,n)=f^n More...
 
static tString getClassName (const tString &identityString)
 return the class name of the object using only the identity string More...
 
template<class T >
static tString getTypeName ()
 get type name More...
 
static tBoolean is64Architecture ()
 return true if the machine is a 64 bits machine More...
 
static tBoolean is32Architecture ()
 return true if the machine is a 32 bits machine More...
 
static tString pointer2String (const void *obj)
 return the string represantation of a pointer More...
 
static void setOutput (ostream &out)
 set output More...
 
static ostream & getOutput ()
 get output More...
 
static void printObjectsInMemory ()
 print object in memory More...
 
static ostream & print (ostream &out, const tString &message)
 print the class More...
 
static void outputPrint (const tString &message)
 

Static Public Attributes

static const tFlag QR =1
 
static const tFlag QRP =2
 
static const tFlag ROW =0
 
static const tFlag COL =1
 
static double ZERO_EPSILON =1.e-18
 
static tBoolean mIsMemoryTesting =false
 indicator to store all classes created and deleted only for debuging version More...
 

Protected Member Functions

void setThis (SP::CORE_Object p)
 set this weak shared pointer called toDoAfterThis setting method More...
 
virtual void setType (tString type)
 set the type of the object More...
 
virtual void toDoAfterThisSetting ()
 method called after setThis() method this method can oly be called once. More...
 

Constructor & Destructor Documentation

LAP_DoubleFullGeneralMatrix::LAP_DoubleFullGeneralMatrix ( )

build a matrix

References LAP_DoubleFullStorage::New(), null, and LAP_DoubleMatrix::setStorage().

Referenced by New().

Here is the call graph for this function:

Here is the caller graph for this function:

LAP_DoubleFullGeneralMatrix::LAP_DoubleFullGeneralMatrix ( const tLVectorIndex n,
const tLVectorIndex m 
)

build a matrix

References LAP_DoubleFullStorage::New(), null, setSize(), and LAP_DoubleMatrix::setStorage().

Here is the call graph for this function:

LAP_DoubleFullGeneralMatrix::LAP_DoubleFullGeneralMatrix ( const LAP_DoubleFullGeneralMatrix mat)

build a matrix

References LAP_DoubleMatrix::copy(), LAP_DoubleFullStorage::New(), null, and LAP_DoubleMatrix::setStorage().

Here is the call graph for this function:

LAP_DoubleFullGeneralMatrix::~LAP_DoubleFullGeneralMatrix ( )
virtual

destroy a matrix

References null.

Member Function Documentation

void LAP_DoubleMatrix::add ( const tLVectorIndex i,
const tLVectorIndex j,
const double &  v 
)
inlineinherited

add v to the view term (i,j) of the matrix

Parameters
i: row of the element
jcolumn of the element
vvalue to add
void LAP_DoubleFullGeneralMatrix::add ( const double &  alpha,
const LAP_DoubleFullGeneralMatrix x 
)

This+=alpha.x.

References getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), tLVectorIncrement, and tLVectorIndex.

Here is the call graph for this function:

void LAP_DoubleMatrix::addDiagonal ( const double &  alpha)
inlineinherited

This +=alpha.I.

Referenced by MATH_StiefelOptimizer::minimize().

Here is the caller graph for this function:

pair<tLVectorIndex,tLVectorIndex> LAP_DoubleMatrix::computeBandsNumber ( ) const
inlineinherited
virtual tBoolean LAP_DoubleFullGeneralMatrix::computeEigenValueDecomposition ( LAP_DoubleVector U)
inlinevirtual

compute the eigen values decomposition on this: A is destroyed such that it contains the eigen vectors this is modified to store the eigen vectors

Parameters
Uthe eigen values

References LAP_DoubleMatrix::copy(), and tBoolean.

Referenced by computeEigenValueDecomposition().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual tBoolean LAP_DoubleFullGeneralMatrix::computeEigenValueDecomposition ( LAP_DoubleVector U,
LAP_DoubleMatrix VR 
) const
inlinevirtual

compute the eigen values decomposition on A: A is copied

Parameters
Uthe eigen values
VRthe eigen vectors

References computeEigenValueDecomposition(), and null.

Here is the call graph for this function:

tBoolean LAP_DoubleFullGeneralMatrix::computeEigenValueDecomposition ( LAP_DoubleFullGeneralMatrix A,
LAP_DoubleVector U,
LAP_DoubleFullGeneralMatrix VR 
)
static

compute the eigen elements of A A is supposed to be non symmetric: A is destroyed

References DoubleFullMatrixEigenValues(), getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), lapack_int, setSize(), LAP_Vector< T >::setSize(), tLVectorIndex, CORE_String::toString(), and tString.

Here is the call graph for this function:

tBoolean LAP_DoubleFullGeneralMatrix::computeEigenValues ( LAP_DoubleFullGeneralMatrix A,
LAP_DoubleVector U 
)
static

compute the eigen values of A and A is destroyed after method

References DoubleFullMatrixEigenValues(), getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), lapack_int, null, LAP_Vector< T >::resetView(), LAP_Vector< T >::setSize(), tLVectorIndex, CORE_String::toString(), and tString.

Referenced by computeEigenValues().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual tBoolean LAP_DoubleFullGeneralMatrix::computeEigenValues ( LAP_DoubleVector U) const
inlinevirtual

compute the eigen values of This: A is copied

Implements LAP_DoubleMatrix.

References computeEigenValues().

Here is the call graph for this function:

void LAP_DoubleFullGeneralMatrix::concat ( const double &  alpha,
const LAP_DoubleFullGeneralMatrix X,
const double &  beta,
const LAP_DoubleFullGeneralMatrix Y 
)
inline

concat This-> [alpha X, beta Y] add the colmuns of Y to the columns of X to becomes A

References LAP_Matrix::COL, LAP_DoubleFullStorage::concat(), LAP_Matrix::getSize(), LAP_Matrix::ROW, and setSize().

Here is the call graph for this function:

virtual tBoolean LAP_Matrix::copy ( const LAP_Matrix matrix)
inlinevirtualinherited

copy operator

Parameters
mmatrix to copy
Returns
false if the allocation failed

References LAP_Matrix::COL, LAP_Matrix::getSize(), and LAP_Matrix::ROW.

Referenced by LAP_DoubleMatrix::copy().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean LAP_DoubleMatrix::copy ( const LAP_DoubleMatrix x)
virtualinherited

copy a matrix

Parameters
xthe matrix to copy

References LAP_Matrix::copy(), LAP_DoubleMatrixStorage::copy(), LAP_DoubleMatrix::getStorage(), LAP_DoubleMatrix::isSymmetric(), isTransposed(), LAP_DoubleMatrix::isUpper(), null, and tBoolean.

Referenced by LAP_DoubleBandedSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleFullUpperMatrix::computeEigenValueDecomposition(), computeEigenValueDecomposition(), LAP_DoublePackedSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleFullSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleMatrix::copy(), MMSD_DoubleSymmetricMatrix::copy(), LAP_DoubleBandedSymmetricMatrix::LAP_DoubleBandedSymmetricMatrix(), LAP_DoubleBandedUpperMatrix::LAP_DoubleBandedUpperMatrix(), LAP_DoubleFullGeneralMatrix(), LAP_DoubleFullSymmetricMatrix::LAP_DoubleFullSymmetricMatrix(), LAP_DoubleFullUpperMatrix::LAP_DoubleFullUpperMatrix(), LAP_DoublePackedSymmetricMatrix::LAP_DoublePackedSymmetricMatrix(), LAP_DoublePackedUpperMatrix::LAP_DoublePackedUpperMatrix(), LAP_DoublePackedUpperMatrix::matrixProduct(), LAP_DoubleBandedUpperMatrix::matrixProduct(), LAP_DoubleFullUpperMatrix::matrixProduct(), matrixProduct(), MATH_StiefelOptimizer::minimize(), LAP_DoubleBandedUpperMatrix::operator=(), LAP_DoubleBandedSymmetricMatrix::operator=(), LAP_DoublePackedSymmetricMatrix::operator=(), LAP_DoubleFullUpperMatrix::operator=(), LAP_DoubleFullSymmetricMatrix::operator=(), operator=(), LAP_DoublePackedUpperMatrix::operator=(), and solve().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean LAP_DoubleMatrix::copy ( SPC::LAP_DoubleMatrix  x)
inlineinherited

copy a matrix

Parameters
xthe matrix to copy

References LAP_DoubleMatrix::copy(), and null.

Here is the call graph for this function:

tBoolean LAP_DoubleMatrix::copy ( LAP_DoubleMatrix x)
inlineinherited

copy a matrix

Parameters
xthe matrix to copy

References LAP_DoubleMatrix::copy(), and null.

Here is the call graph for this function:

double LAP_DoubleMatrix::get ( const tLVectorIndex i,
const tLVectorIndex j 
) const
inlineinherited
static tString CORE_Object::getClassName ( const tString identityString)
inlinestaticinherited

return the class name of the object using only the identity string

Referenced by UI_Class::createVector2D(), LAP_DoublePackedUpperMatrix::matrixProduct(), LAP_DoubleBandedUpperMatrix::matrixProduct(), LAP_DoubleFullUpperMatrix::matrixProduct(), and CORE_Object::printObjectsInMemory().

Here is the caller graph for this function:

tString CORE_Object::getClassName ( ) const
inherited

return the class name of the object

Returns
the class name of the object

References tString.

Referenced by CORE_Object::getIdentityString().

Here is the caller graph for this function:

void LAP_DoubleFullGeneralMatrix::getColumn ( const tLVectorIndex j,
LAP_DoubleVector v 
) const
virtual

get the viewed j-th column in a vector

Implements LAP_DoubleMatrix.

References getColumnsNumber(), getRowIncrement(), getRowsNumber(), LAP_Vector< T >::resetView(), LAP_Vector< T >::setSize(), tLVectorIncrement, and tLVectorIndex.

Referenced by getColumn().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LAP_DoubleFullGeneralMatrix::getColumn ( const tLVectorIndex j,
SP::LAP_DoubleVector  v 
) const
inlinevirtual

get the viewed j-th column in a vector

Reimplemented from LAP_DoubleMatrix.

References ASSERT_IN, getColumn(), and null.

Here is the call graph for this function:

void LAP_DoubleFullGeneralMatrix::getColumnByReference ( const tLVectorIndex j,
LAP_DoubleVector v 
)
inline
void LAP_DoubleFullGeneralMatrix::getColumnByReference ( const tLVectorIndex j,
LAP_ConstDoubleVector v 
) const
inline

get the column by reference the values of v pointer to the values of the column j of this

References LAP_DoubleFullStorage::getColumnByReference().

Here is the call graph for this function:

virtual tLVectorIndex LAP_DoubleFullGeneralMatrix::getColumnsNumber ( ) const
inlinevirtual

get the columns number of the matrix from view

Reimplemented from LAP_Matrix.

References LAP_DoubleFullStorage::getViewedColumnsNumber().

Referenced by add(), MMSD_DoubleFullMatrix::computeCovarianceMatrix(), computeEigenValueDecomposition(), computeEigenValues(), MATH_EigenFunction::computeFunction(), MMSD_GaussianCluster::computeMultivariateDensity(), LAP_DoublePackedUpperMatrix::copyLower(), LAP_DoubleBandedUpperMatrix::copyLower(), LAP_DoubleFullUpperMatrix::copyLower(), getColumn(), getRow(), indexMin(), MMSD_FluryGautschiGaussianLaw::initialize(), MMSD_Law::initialize(), MMSD_Cluster::initialize(), inverse(), lowerTest(), LAP_DoubleBandedSymmetricMatrix::matrixProduct(), LAP_DoublePackedUpperMatrix::matrixProduct(), LAP_DoubleFullSymmetricMatrix::matrixProduct(), LAP_DoubleBandedUpperMatrix::matrixProduct(), LAP_DoubleFullUpperMatrix::matrixProduct(), matrixProduct(), LAP_DoublePackedSymmetricMatrix::matrixProduct(), max(), MATH_StiefelOptimizer::minimize(), norm2(), LAP_DoubleBandedSymmetricMatrix::rankSymmetricProduct(), LAP_DoublePackedSymmetricMatrix::rankSymmetricProduct(), LAP_DoubleFullSymmetricMatrix::rankSymmetricProduct(), MMSD_FluryGautschiGaussianLaw::restore(), MMSD_Law::saveToUIClass(), MMSD_Cluster::saveToUIClass(), LAP_DoublePackedUpperMatrix::solve(), LAP_DoubleBandedUpperMatrix::solve(), LAP_DoubleFullUpperMatrix::solve(), solve(), sum(), symmetricTest(), testEigenFunction(), testGaussianLaw11N(), testGaussianLaw1PN(), testGaussianLaw2PN(), testOptimize(), testOptimizerGProject1(), testOptimizerGProject2(), testOptimizerHInverse(), testStiefelFunction(), testStiefelGaussianLawFunction(), transpose(), MMSD_GaussianLaw::updateMean(), MMSD_GaussianCluster::updateWeights(), upperTest(), and vectorProduct().

Here is the call graph for this function:

Here is the caller graph for this function:

double LAP_DoubleMatrix::getFillRate ( ) const
inlineinherited

get the fill rate of the matrix

tString CORE_Object::getIdentityString ( ) const
inlineinherited

return the identity string of the object of the form className_at_address

Returns
the identity string of the object

References CORE_Object::getClassName(), CORE_Object::pointer2String(), and tString.

Referenced by UI_Class::createPrimitiveMap(), UI_Class::saveAssociation(), UI_Class::saveClass(), UI_ClassFactory::saveIntoClass(), MATH_StiefelFunction::toString(), LAP_2DView::toString(), CORE_Object::toString(), MATH_StiefelOptimizer::toString(), and MM_Class::toString().

Here is the call graph for this function:

Here is the caller graph for this function:

tLVectorIndex LAP_DoubleFullGeneralMatrix::getLeadingDimension ( ) const
inline
double& LAP_Object::getNullValue ( )
inlineinherited
const double& LAP_Object::getNullValue ( ) const
inlineinherited

get a const null value

tLVectorIndex LAP_DoubleMatrix::getNullValuesNumber ( ) const
inlineinherited

get the number of null values

static ostream& CORE_Object::getOutput ( )
inlinestaticinherited

get output

tString CORE_Object::getPointerAddress ( ) const
inlineinherited

return the identity string of the object

Returns
the identity string of the object

References CORE_Object::pointer2String().

Here is the call graph for this function:

virtual void LAP_DoubleFullGeneralMatrix::getRow ( const tLVectorIndex i,
SP::LAP_DoubleVector  v 
) const
inlinevirtual

get the i-th viewed row in a vector

Reimplemented from LAP_DoubleMatrix.

References null.

void LAP_DoubleFullGeneralMatrix::getRow ( const tLVectorIndex i,
LAP_DoubleVector v 
) const
virtual

get the i-th viewed row in a vector

Implements LAP_DoubleMatrix.

References getColumnsNumber(), getLeadingDimension(), getRowsNumber(), LAP_Vector< T >::resetView(), LAP_Vector< T >::setSize(), and tLVectorIndex.

Here is the call graph for this function:

void LAP_DoubleFullGeneralMatrix::getRowByReference ( const tLVectorIndex i,
LAP_DoubleVector v 
)
inline

get the row by reference the values of v pointer to the values of the column j of this

References LAP_DoubleFullStorage::getRowByReference().

Here is the call graph for this function:

void LAP_DoubleFullGeneralMatrix::getRowByReference ( const tLVectorIndex i,
LAP_ConstDoubleVector v 
) const
inline

get the row by reference the values of v pointer to the values of the column j of this

References LAP_DoubleFullStorage::getRowByReference().

Here is the call graph for this function:

tLVectorIncrement LAP_DoubleFullGeneralMatrix::getRowIncrement ( ) const
inline
virtual tLVectorIndex LAP_DoubleFullGeneralMatrix::getRowsNumber ( ) const
inlinevirtual

get the lines number of the matrix from view

Reimplemented from LAP_Matrix.

References LAP_DoubleFullStorage::getViewedRowsNumber().

Referenced by add(), MMSD_DoubleFullMatrix::computeCovarianceMatrix(), computeEigenValueDecomposition(), computeEigenValues(), MMSD_StiefelFunction::computeFunction(), MMSD_GaussianCluster::computeMultivariateDensity(), MMSD_Model::computeSampleClusterIndices(), MMSD_Model::computeSampleClusterProbabilities(), LAP_DoublePackedUpperMatrix::copyLower(), LAP_DoubleBandedUpperMatrix::copyLower(), LAP_DoubleFullUpperMatrix::copyLower(), getColumn(), getRow(), indexMin(), MMSD_Law::initialize(), MMSD_Cluster::initialize(), inverse(), lowerTest(), LAP_DoubleBandedSymmetricMatrix::matrixProduct(), LAP_DoublePackedUpperMatrix::matrixProduct(), LAP_DoubleBandedUpperMatrix::matrixProduct(), LAP_DoubleFullSymmetricMatrix::matrixProduct(), LAP_DoubleFullUpperMatrix::matrixProduct(), matrixProduct(), LAP_DoublePackedSymmetricMatrix::matrixProduct(), max(), MATH_StiefelOptimizer::minimize(), norm2(), LAP_DoubleBandedSymmetricMatrix::rankSymmetricProduct(), LAP_DoublePackedSymmetricMatrix::rankSymmetricProduct(), LAP_DoubleFullSymmetricMatrix::rankSymmetricProduct(), MMSD_Model::restore(), MMSD_Law::saveToUIClass(), MMSD_Cluster::saveToUIClass(), LAP_DoublePackedUpperMatrix::solve(), LAP_DoubleBandedUpperMatrix::solve(), LAP_DoubleFullUpperMatrix::solve(), solve(), sum(), symmetricTest(), testEigenFunction(), testGaussianLaw11N(), testGaussianLaw1PN(), testGaussianLaw2PN(), testOptimize(), testOptimizerGProject1(), testOptimizerGProject2(), testOptimizerHInverse(), testStiefelFunction(), testStiefelGaussianLawFunction(), transpose(), upperTest(), and vectorProduct().

Here is the call graph for this function:

Here is the caller graph for this function:

void CORE_Object::getSharedPointer ( SP::CORE_Object &  p)
inlineinherited
void CORE_Object::getSharedPointer ( SPC::CORE_Object &  p) const
inlineinherited

get the shared pointer of this class into p

const tLVectorIndex& LAP_Matrix::getSize ( const tFlag direction) const
inlineinherited
LAP_DoubleMatrixStorage& LAP_DoubleMatrix::getStorage ( )
inlineinherited
const LAP_DoubleMatrixStorage& LAP_DoubleMatrix::getStorage ( ) const
inlineinherited

set the storage

References null.

template<class T >
static tString CORE_Object::getTypeName ( )
inlinestaticinherited

get type name

References tString.

tLVectorIndex LAP_DoubleMatrix::getValuesNumber ( ) const
inlineinherited

get the number of values

Referenced by MMSD_DoubleSymmetricMatrix::getValuesNumber(), and MMSD_Model::saveToUIClass().

Here is the caller graph for this function:

static SP::LAP_DoubleFullGeneralMatrix LAP_DoubleFullGeneralMatrix::Identity ( const tLVectorIndex nRows)
inlinestatic

create an identity matrix

References New(), and tLVectorIndex.

Here is the call graph for this function:

void LAP_DoubleFullGeneralMatrix::indexMin ( tLVectorIndex i,
tLVectorIndex j 
) const

get the index of the min view element in absolute value

Parameters
ireturn the row index of the min element
jreturn the column index of the min element

References getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), LAP_Matrix::getSize(), LAP_DoubleFullStorage::getStart(), REAL_INFINITY, LAP_Matrix::ROW, tLVectorIncrement, tLVectorIndex, and tReal.

Here is the call graph for this function:

void LAP_DoubleMatrix::init ( const double  v)
inlineinherited

init the values to v

Parameters
vinit value

References LAP_DoubleMatrix::getStorage(), and LAP_DoubleMatrixStorage::init().

Referenced by MMSD_DoubleFullMatrix::operator=().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean LAP_DoubleFullGeneralMatrix::inverse ( )
virtual

inverse the matrix

Returns
true if succeeds

References DoubleFullMatrixInverse(), getColumnsNumber(), getLeadingDimension(), getRowsNumber(), null, tBoolean, tLVectorIndex, CORE_String::toString(), and tString.

Here is the call graph for this function:

static tBoolean CORE_Object::is32Architecture ( )
inlinestaticinherited

return true if the machine is a 32 bits machine

References CORE_Object::is64Architecture().

Here is the call graph for this function:

tBoolean CORE_Object::is64Architecture ( )
staticinherited

return true if the machine is a 64 bits machine

Referenced by CORE_Object::is32Architecture().

Here is the caller graph for this function:

template<class T >
tBoolean CORE_Object::isInstanceOf ( ) const
inlineinherited

return true if the object is an instance of T

References null.

tBoolean LAP_Object::isNullValue ( const double &  v) const
inlineinherited

return true if the value is a null

virtual tBoolean LAP_DoubleGeneralMatrix::isSymmetric ( ) const
inlinevirtualinherited

return true if the matrix is symmetric

Implements LAP_DoubleMatrix.

tBoolean LAP_DoubleFullGeneralMatrix::isTransposed ( ) const
inline

return the transposed

Referenced by LAP_DoubleMatrix::copy().

Here is the caller graph for this function:

virtual tBoolean LAP_DoubleGeneralMatrix::isUpper ( ) const
inlinevirtualinherited

return true if the matrix is upper

Implements LAP_DoubleMatrix.

tBoolean LAP_DoubleFullGeneralMatrix::lowerTest ( ) const
inline

test if the matrix is symmetric with epsilon difference

References getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), tLVectorIncrement, tLVectorIndex, and LAP_Object::ZERO_EPSILON.

Here is the call graph for this function:

tBoolean LAP_DoubleFullGeneralMatrix::LUSolve ( const tBoolean isTr,
LAP_DoubleFullGeneralMatrix X 
)
inline

solve op(This).X=B where K is the number of colums of B

Parameters
isTr: if isTr is true then op(A)=t , op(A)=A otherwise
B: general full matrix of size N x K in output B is modified such as it is the X solution of size N x K

This is LU factorize, theb solve the equation

References solve().

Here is the call graph for this function:

virtual SP::LAP_DoubleMatrix LAP_DoubleFullGeneralMatrix::matrixProduct ( const LAP_DoubleMatrix B) const
inlinevirtual

return C= This.B

Parameters
Bthe matrix to multiply
Returns
a general full matrix corresponding to This.B

Implements LAP_DoubleMatrix.

References LAP_DoubleMatrix::get(), and New().

Referenced by MMSD_StiefelFunction::computeFunction(), MMSD_Law::initialize(), matrixProduct(), MATH_StiefelOptimizer::minimize(), MMSD_Law::restore(), testGaussianLaw11N(), testGaussianLaw1PN(), testGaussianLaw2PN(), testStiefelGaussianLawFunction(), and MMSD_StiefelGaussianLaw::updateCovarianceDecompositionMatrix().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean LAP_DoubleFullGeneralMatrix::matrixProduct ( const LAP_DoubleMatrix B,
LAP_DoubleFullGeneralMatrix C 
) const

general return C=(This) . B

Parameters
Bthe matrix to multiply
Cth output general full matrix C=This.B
Returns
false if the product can not be done B must be a full matrix

References LAP_DoubleMatrix::copy(), LAP_DoubleSymmetricMatrix::matrixProduct(), LAP_DoubleUpperMatrix::matrixProduct(), matrixProduct(), and null.

Here is the call graph for this function:

void LAP_DoubleFullGeneralMatrix::matrixProduct ( const LAP_DoubleFullGeneralMatrix B,
LAP_DoubleFullGeneralMatrix C 
) const
inline

make the product : C:=This. B

Parameters
B: general full matrix C : output product matrix

References matrixProduct().

Here is the call graph for this function:

void LAP_DoubleFullGeneralMatrix::matrixProduct ( const tBoolean isLeftSide,
const tBoolean isTrans,
const LAP_DoubleFullGeneralMatrix B,
const double &  alpha,
LAP_DoubleFullGeneralMatrix C 
) const
inline

make the product : C:=op(This).B (leftSide=true) C:=B. op(This) (leftSide=false)

Parameters
isLeftSide: the left or right B-multiplication
isTransdefine the operator op(X)=X or op(X)=tX
B: general full matrix C : output product matrix

References getColumnsNumber(), getRowsNumber(), matrixProduct(), setSize(), and tLVectorIndex.

Here is the call graph for this function:

static void LAP_DoubleFullGeneralMatrix::matrixProduct ( const tBoolean isTrA,
const LAP_DoubleFullGeneralMatrix A,
const tBoolean isTrB,
const LAP_DoubleFullGeneralMatrix B,
const lapack_real alpha,
const lapack_real beta,
LAP_DoubleFullGeneralMatrix C 
)
inlinestatic

make the product C = alpha. op(A).op(B) +beta C

Parameters
A: general full matrix
B: general full matrix
isTrAdefine op(A)
isTrBdefine op(B)
alphaalpha value
betabeta value C : output product matrix

References getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), matrixProduct(), and tLVectorIndex.

Here is the call graph for this function:

void LAP_DoubleFullGeneralMatrix::matrixProduct ( const tBoolean isTrA,
const tLVectorIndex nRowsA,
const tLVectorIndex nColsA,
const tLVectorIndex ldA,
const double *  A,
const tBoolean isTrB,
const tLVectorIndex nRowsB,
const tLVectorIndex nColsB,
const tLVectorIndex ldB,
const double *  B,
const lapack_real alpha,
const lapack_real beta,
LAP_DoubleFullGeneralMatrix C 
)
static

make the product of 2 full matrix (general, upper,symmetric) C = alpha. op(A).op(B) +beta C with op(T)=tT or op(T)=T

Parameters
nRowsA: number of rows of the full matrix A
nColsA: number of columns of the full matrix A
ldA: A(i,j+1)-A(i,j) distance
A: values of the matrix
nRowsB: number of rows of the full matrix B
nColsB: number of columns of the full matrix B
ldB: B(i,j+1)-B(i,j) distance
B: values of the matrix
isTrAdefine op(A)
isTrBdefine op(B)
alphaalpha value
betabeta value C : output product matrix

References DoubleFullMatrixMatrixProduct(), getColumnsNumber(), getLeadingDimension(), getRowsNumber(), setSize(), and tLVectorIndex.

Here is the call graph for this function:

tReal LAP_DoubleFullGeneralMatrix::max ( const tFlag d,
const tLVectorIndex index 
) const
virtual

make get max among the direction if (d==ROW) max of all the columns of row index if (d==COL) max of all the rows of column at index

References getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), null, REAL_INFINITY, LAP_Matrix::ROW, tLVectorIncrement, tLVectorIndex, and tReal.

Here is the call graph for this function:

static SP::LAP_DoubleFullGeneralMatrix LAP_DoubleFullGeneralMatrix::New ( )
inlinestatic
static SP::LAP_DoubleFullGeneralMatrix LAP_DoubleFullGeneralMatrix::New ( const int &  n,
const int &  m 
)
inlinestatic

References LAP_DoubleFullGeneralMatrix().

Here is the call graph for this function:

static SP::LAP_DoubleFullGeneralMatrix LAP_DoubleFullGeneralMatrix::New ( const tLVectorIndex n,
const tLVectorIndex m 
)
inlinestatic

References LAP_DoubleFullGeneralMatrix().

Here is the call graph for this function:

virtual SP::LAP_DoubleMatrix LAP_DoubleFullGeneralMatrix::NewInstance ( ) const
inlinevirtual

create a New instance of this

Implements LAP_DoubleMatrix.

References New().

Here is the call graph for this function:

tReal LAP_DoubleFullGeneralMatrix::norm2 ( ) const
virtual

return norm2 sqrt(sum_ij(aij^2))=sqrt(tr(AtA));

Implements LAP_DoubleMatrix.

References LAP_DoubleFullStorage::getColumnByReference(), getColumnsNumber(), LAP_ConstDoubleVector::norm2(), sum(), and tLVectorIndex.

Referenced by MATH_StiefelOptimizer::minimize(), and testStiefelGaussianLawFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

tReal LAP_DoubleFullGeneralMatrix::norm2 ( LAP_DoubleVector v) const
virtual

return norm2 of the matrix and for each row;

Implements LAP_DoubleMatrix.

References LAP_DoubleFullStorage::getRowByReference(), getRowsNumber(), LAP_ConstDoubleVector::norm2(), LAP_Vector< T >::resetView(), LAP_Vector< T >::setSize(), sum(), and tLVectorIndex.

Here is the call graph for this function:

virtual double& LAP_DoubleFullGeneralMatrix::operator() ( const tLVectorIndex i,
const tLVectorIndex j 
)
inlinevirtual

accessor of element at row i and column j taking into account the row

Implements LAP_DoubleMatrix.

virtual const double& LAP_DoubleFullGeneralMatrix::operator() ( const tLVectorIndex i,
const tLVectorIndex j 
) const
inlinevirtual

accessor of element at row i and column j

Implements LAP_DoubleMatrix.

LAP_DoubleFullGeneralMatrix& LAP_DoubleFullGeneralMatrix::operator*= ( const lapack_real s)
inline

multiply by s the matrix

LAP_DoubleFullGeneralMatrix& LAP_DoubleFullGeneralMatrix::operator*= ( const LAP_DoubleFullGeneralMatrix s)
inline

multiply the viewed matrices term by term

LAP_DoubleFullGeneralMatrix& LAP_DoubleFullGeneralMatrix::operator+= ( const lapack_real s)
inline

add s to the upper matrix

LAP_DoubleFullGeneralMatrix& LAP_DoubleFullGeneralMatrix::operator+= ( const LAP_DoubleFullGeneralMatrix s)
inline

add the viewed matrix

LAP_DoubleFullGeneralMatrix& LAP_DoubleFullGeneralMatrix::operator-= ( const lapack_real s)
inline

sub s to the upper matrix

LAP_DoubleFullGeneralMatrix& LAP_DoubleFullGeneralMatrix::operator-= ( const LAP_DoubleFullGeneralMatrix s)
inline

sub the viewed matrix

LAP_DoubleFullGeneralMatrix& LAP_DoubleFullGeneralMatrix::operator/= ( const lapack_real s)
inline

divide by s the matrix v

LAP_DoubleFullGeneralMatrix& LAP_DoubleFullGeneralMatrix::operator/= ( const LAP_DoubleFullGeneralMatrix s)
inline

divide the viewed matrices term by term

LAP_DoubleFullGeneralMatrix& LAP_DoubleFullGeneralMatrix::operator= ( const double &  s)
inline

init all the matrix to s

References LAP_DoubleMatrix::getStorage(), and LAP_DoubleMatrixStorage::init().

Here is the call graph for this function:

LAP_DoubleFullGeneralMatrix& LAP_DoubleFullGeneralMatrix::operator= ( const LAP_DoubleFullGeneralMatrix s)
inline

init all the matrix to s

References LAP_DoubleMatrix::copy().

Here is the call graph for this function:

const double& LAP_DoubleMatrix::operator[] ( const tLVectorIndex index) const
inlineinherited

get the element at index

Parameters
indexindex of the element in [0,getStorage().getValuesNumber()[ return the value of the element at index for reading

References LAP_DoubleMatrix::getStorage().

Here is the call graph for this function:

double& LAP_DoubleMatrix::operator[] ( const tLVectorIndex index)
inlineinherited

get the element at index

Parameters
indexindex of the element in [0,getValuesNumber()[ return the value of the element at index for writing

References LAP_DoubleMatrix::getStorage().

Here is the call graph for this function:

LAP_DoubleFullGeneralMatrix& LAP_DoubleFullGeneralMatrix::operator^= ( const lapack_real s)
inline

power by s the matrix v

void LAP_DoubleFullGeneralMatrix::orthogonalize ( )
inline
void LAP_DoubleFullGeneralMatrix::orthogonalize ( const tFlag m)
inline
void CORE_Object::outputPrint ( const tString message)
staticinherited

print on output

References null, and CORE_Object::print().

Referenced by CORE_Exception::CORE_Exception().

Here is the call graph for this function:

Here is the caller graph for this function:

tString CORE_Object::pointer2String ( const void *  obj)
staticinherited

return the string represantation of a pointer

References tString.

Referenced by CORE_Object::CORE_Object(), CORE_Object::getIdentityString(), CORE_Object::getPointerAddress(), and CORE_Object::~CORE_Object().

Here is the caller graph for this function:

virtual void CORE_Object::print ( )
inlinevirtualinherited

print the class

References CORE_Object::toString().

Referenced by CORE_Object::outputPrint(), CORE_Out::print(), CORE_Object::print(), CORE_Out::printInt(), CORE_Out::println(), CORE_Out::printReal(), CORE_Out::printString(), and CORE_Out::setAction().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual ostream& CORE_Object::print ( ostream &  out) const
inlinevirtualinherited

print the class

References CORE_Object::print(), and CORE_Object::toString().

Here is the call graph for this function:

void CORE_Object::print ( const tString message)
virtualinherited

print the class

Reimplemented in CORE_Out.

References null, and CORE_Object::print().

Here is the call graph for this function:

void CORE_Object::print ( const tInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tRelativeInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tReal str)
virtualinherited

print

References null.

void CORE_Object::print ( const int &  str)
virtualinherited

print

References null.

static ostream& CORE_Object::print ( ostream &  out,
const tString message 
)
inlinestaticinherited

print the class

void CORE_Object::printObjectsInMemory ( )
staticinherited

print object in memory

References CORE_Object::getClassName(), CORE_Object::getSharedPointer(), and CORE_Object::mIsMemoryTesting.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void LAP_DoubleFullGeneralMatrix::removeColumn ( const tLVectorIndex index)

remove column at index

References LAP_Matrix::COL, LAP_Matrix::getSize(), LAP_DoubleFullStorage::removeColumn(), LAP_Matrix::ROW, setSize(), and tLVectorIndex.

Referenced by MMSD_Model::esperanceEvaluation().

Here is the call graph for this function:

Here is the caller graph for this function:

void LAP_DoubleFullGeneralMatrix::reverseColumns ( )
inline

reverse the viewed columns of the matrix

References LAP_DoubleFullStorage::reverseColumns().

Referenced by MMSD_Law::initialize().

Here is the call graph for this function:

Here is the caller graph for this function:

void LAP_DoubleMatrix::set ( const tLVectorIndex i,
const tLVectorIndex j,
const double &  v 
)
inlineinherited

set the value of the element at row i and column j

Parameters
i: row of the element
jcolumn of the element
vvalue to set
static void CORE_Object::setOutput ( ostream &  out)
inlinestaticinherited

set output

virtual void LAP_DoubleFullGeneralMatrix::setSize ( const tLVectorIndex n,
const tLVectorIndex p 
)
inlinevirtual
virtual void LAP_DoubleFullGeneralMatrix::setSize ( const tLVectorIndex n)
inlinevirtual

set the dimension of the matrix and alocate the values array

Reimplemented from LAP_Matrix.

References setSize().

Here is the call graph for this function:

void LAP_DoubleMatrix::setStorage ( SP::LAP_DoubleMatrixStorage  s)
inlineinherited
void CORE_Object::setThis ( SP::CORE_Object  p)
inlineprotectedinherited

set this weak shared pointer called toDoAfterThis setting method

References CORE_Object::toDoAfterThisSetting().

Here is the call graph for this function:

virtual void CORE_Object::setType ( tString  type)
inlineprotectedvirtualinherited

set the type of the object

Referenced by LAP_IntegerVector::LAP_IntegerVector(), MATH_BetaFunction::MATH_BetaFunction(), MATH_C1Function::MATH_C1Function(), MATH_DigammaFunction::MATH_DigammaFunction(), MATH_EigenFunction::MATH_EigenFunction(), MATH_Equation::MATH_Equation(), MATH_Function::MATH_Function(), MATH_GammaFunction::MATH_GammaFunction(), MATH_KeplerFunction::MATH_KeplerFunction(), MATH_LogGammaFunction::MATH_LogGammaFunction(), MATH_NewtonEquation::MATH_NewtonEquation(), MATH_StiefelFunction::MATH_StiefelFunction(), MATH_StiefelOptimizer::MATH_StiefelOptimizer(), MATH_TranscendentEquation::MATH_TranscendentEquation(), MATH_TrigammaFunction::MATH_TrigammaFunction(), MATH_ZeroEquation::MATH_ZeroEquation(), MATH_ZKeplerFunction::MATH_ZKeplerFunction(), MM_Attribute::MM_Attribute(), MM_Class::MM_Class(), MM_ClassFactory::MM_ClassFactory(), MM_Data::MM_Data(), MM_Structure::MM_Structure(), MMSD_ClassFactory::MMSD_ClassFactory(), MMSD_Cluster::MMSD_Cluster(), MMSD_ConstDoubleVector::MMSD_ConstDoubleVector(), MMSD_ConstraintGaussianCluster::MMSD_ConstraintGaussianCluster(), MMSD_ConstraintGaussianModel::MMSD_ConstraintGaussianModel(), MMSD_DataSet::MMSD_DataSet(), MMSD_DataSetClassFactory::MMSD_DataSetClassFactory(), MMSD_DoubleFullMatrix::MMSD_DoubleFullMatrix(), MMSD_DoubleSymmetricMatrix::MMSD_DoubleSymmetricMatrix(), MMSD_DoubleVector::MMSD_DoubleVector(), MMSD_FluryGautschiGaussianLaw::MMSD_FluryGautschiGaussianLaw(), MMSD_GaussianCluster::MMSD_GaussianCluster(), MMSD_GaussianFDFunction::MMSD_GaussianFDFunction(), MMSD_GaussianLaw::MMSD_GaussianLaw(), MMSD_GaussianModel::MMSD_GaussianModel(), MMSD_Law::MMSD_Law(), MMSD_Model::MMSD_Model(), MMSD_ModelClassFactory::MMSD_ModelClassFactory(), MMSD_Object::MMSD_Object(), MMSD_StiefelFunction::MMSD_StiefelFunction(), MMSD_StiefelGaussianLaw::MMSD_StiefelGaussianLaw(), STAT_BernoulliDistribution::STAT_BernoulliDistribution(), STAT_BinomialDistribution::STAT_BinomialDistribution(), STAT_Combinatorial< T >::STAT_Combinatorial(), STAT_DiracDistribution::STAT_DiracDistribution(), STAT_Distribution::STAT_Distribution(), STAT_ExponentialDistribution::STAT_ExponentialDistribution(), STAT_GammaDistribution::STAT_GammaDistribution(), STAT_GeometricDistribution::STAT_GeometricDistribution(), STAT_InverseNormalDistribution::STAT_InverseNormalDistribution(), STAT_NormalDistribution::STAT_NormalDistribution(), STAT_Object::STAT_Object(), STAT_PoissonDistribution::STAT_PoissonDistribution(), STAT_UniformDistribution::STAT_UniformDistribution(), and STAT_UniformLaplaceTransform::STAT_UniformLaplaceTransform().

Here is the caller graph for this function:

virtual void LAP_DoubleFullGeneralMatrix::setValues ( const tLVectorIndex n,
const tLVectorIndex p,
SP::LAP_DoubleVector  v 
)
inlinevirtual

set the values of the matrix to V without allocation the values array

Parameters
nnumber of rows
pnumber of columns
valuevalues ordered by columns

References LAP_Matrix::setSize(), LAP_DoubleFullStorage::setValuesPointer(), and tLVectorIndex.

Referenced by LAP_DoubleFullSymmetricMatrix::computeEigenValueDecomposition(), MMSD_Law::loadFromUIClass(), MMSD_Cluster::loadFromUIClass(), MMSD_Model::loadFromUIClass(), testCovariance(), testGaussianLaw11N(), testGaussianLaw1PN(), testGaussianLaw2PN(), and testStiefelGaussianLawFunction().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LAP_DoubleFullGeneralMatrix::setValues ( SP::LAP_DoubleVector  v)
inlinevirtual

set the values n is the size of values. the size of the matrix is sqrt(n)xsqrt(n)

Reimplemented from LAP_DoubleMatrix.

References LAP_Matrix::setSize(), LAP_DoubleFullStorage::setValuesPointer(), and tLVectorIndex.

Here is the call graph for this function:

virtual void LAP_DoubleFullGeneralMatrix::setValues ( const tLVectorIndex n,
const tLVectorIndex p,
const double *  values 
)
inlinevirtual

set the values

Parameters
nnumber of rows
pnumber of columns
valuesvalues ordered by columns the number of values must be n*p

References setSize(), and LAP_DoubleFullStorage::setValues().

Here is the call graph for this function:

virtual void LAP_DoubleFullGeneralMatrix::setValues ( const tLVectorIndex n,
const double *  values 
)
inlinevirtual

set the values n is the size of values. the size of the matrix is sqrt(n)xsqrt(n)

Reimplemented from LAP_DoubleMatrix.

References LAP_Matrix::setSize(), LAP_DoubleFullStorage::setValues(), and tLVectorIndex.

Here is the call graph for this function:

tBoolean LAP_DoubleFullGeneralMatrix::solve ( const tBoolean isTr,
LAP_DoubleFullGeneralMatrix X 
) const
inline

solve op(This).X=B where K is the number of colums of B

Parameters
isTr: if isTr is true then op(A)=t , op(A)=A otherwise
B: general full matrix of size N x K in output B is modified such as it is the X solution of size N x K

References LAP_DoubleMatrix::copy(), getColumnsNumber(), getRowsNumber(), lapack_int, tBoolean, and tLVectorIndex.

Referenced by LUSolve().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean LAP_DoubleFullGeneralMatrix::solve ( const LAP_DoubleFullGeneralMatrix A,
const lapack_int ipiv,
const tBoolean isTr,
LAP_DoubleFullGeneralMatrix X 
)
static

solve op(This).X=B where K is the number of colums of B

Parameters
Athe full matrix LU factorized
ipivthe pivot for each row given by LU factorization of A
isTr: if isTr is true then op(A)=t , op(A)=A otherwise
B: general full matrix of size N x K in output B is modified such as it is the X solution of size N x K

References LAP_Matrix::COL, DoubleFullMatrixSolveMatrixEquation(), getColumnsNumber(), getLeadingDimension(), getRowsNumber(), LAP_Matrix::getSize(), LAP_Matrix::ROW, tLVectorIndex, and tString.

Here is the call graph for this function:

tReal LAP_DoubleFullGeneralMatrix::sum ( const tFlag d,
LAP_DoubleVector s 
) const
virtual

make the sum among the direction if (d==ROW) sum all the columns of each row and size of s is the number of rows if (d==COL) sum all the rows of each column and size of s is the number of columns ^return the sum of all the element of the matrix

Implements LAP_DoubleMatrix.

References getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), null, LAP_Matrix::ROW, LAP_Vector< T >::setSize(), tLVectorIncrement, and tLVectorIndex.

Referenced by norm2().

Here is the call graph for this function:

Here is the caller graph for this function:

tReal LAP_DoubleFullGeneralMatrix::sum ( const tFlag d,
const tLVectorIndex index 
) const
virtual

make the sum among the direction if (d==ROW) sum all the columns of row index if (d==COL) sum all the rows of coluln at index

Implements LAP_DoubleMatrix.

References getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), null, LAP_Matrix::ROW, tLVectorIncrement, tLVectorIndex, and tReal.

Here is the call graph for this function:

void LAP_DoubleFullGeneralMatrix::swapColumns ( const tLVectorIndex i,
const tLVectorIndex j 
)
inline

swap the viewed columns i & j

References LAP_DoubleFullStorage::swapColumns().

Here is the call graph for this function:

tBoolean LAP_DoubleFullGeneralMatrix::symmetricTest ( ) const
inline

test if the matrix is symmetric with epsilon difference

References getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), tLVectorIncrement, tLVectorIndex, and LAP_Object::ZERO_EPSILON.

Here is the call graph for this function:

virtual void CORE_Object::toDoAfterThisSetting ( )
inlineprotectedvirtualinherited

method called after setThis() method this method can oly be called once.

Reimplemented in STAT_UniformLaplaceTransform.

Referenced by CORE_Object::setThis(), and STAT_UniformLaplaceTransform::toDoAfterThisSetting().

Here is the caller graph for this function:

tString LAP_DoubleMatrix::toString ( ) const
virtualinherited

print the matrix taking into account the view

Reimplemented from CORE_Object.

References LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), tLVectorIndex, CORE_String::toString(), and tString.

Here is the call graph for this function:

double LAP_DoubleMatrix::trace ( ) const
inlineinherited

return trace

References LAP_DoubleMatrix::getStorage(), and LAP_DoubleMatrixStorage::trace().

Here is the call graph for this function:

void LAP_DoubleFullGeneralMatrix::transpose ( )

transpose the matrix

References getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), tLVectorIncrement, and tLVectorIndex.

Here is the call graph for this function:

tBoolean LAP_DoubleFullGeneralMatrix::upperTest ( ) const
inline

test if the matrix is upper

References getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), tLVectorIncrement, tLVectorIndex, and LAP_Object::ZERO_EPSILON.

Here is the call graph for this function:

virtual SP::LAP_DoubleVector LAP_DoubleMatrix::vectorProduct ( const LAP_DoubleVector X) const
inlinevirtualinherited

compute This. X

Parameters
Xinput vector
Returns
This.X

References LAP_Vector< T >::get(), and LAP_DoubleVector::New().

Referenced by LAP_DoubleMatrix::vectorProduct(), LAP_DoublePackedSymmetricMatrix::vectorProduct(), LAP_DoubleBandedSymmetricMatrix::vectorProduct(), LAP_DoubleFullSymmetricMatrix::vectorProduct(), and vectorProduct().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LAP_DoubleMatrix::vectorProduct ( SPC::LAP_DoubleVector &  X,
SP::LAP_DoubleVector &  Y 
) const
inlinevirtualinherited

rcompute Y= This X

Parameters
Xinput vector
Youtput vector

References null, and LAP_DoubleMatrix::vectorProduct().

Here is the call graph for this function:

virtual void LAP_DoubleMatrix::vectorProduct ( const tBoolean isTrans,
const LAP_DoubleVector X,
LAP_DoubleVector Y 
) const
inlinevirtualinherited

compute Y= op(This). X

Parameters
isTrans: if (isTrans) op(A)=A else pop(A)=tA
X: input vector
Y: output vector

Reimplemented in LAP_DoubleFullUpperMatrix, and LAP_DoublePackedUpperMatrix.

References LAP_Matrix::getColumnsNumber(), LAP_Vector< T >::getIncrement(), LAP_Matrix::getRowsNumber(), LAP_Vector< T >::getSize(), LAP_Vector< T >::setSize(), tLVectorIndex, and LAP_DoubleMatrix::vectorProduct().

Here is the call graph for this function:

virtual void LAP_DoubleMatrix::vectorProduct ( const tBoolean isTrans,
const tLVectorIndex nX,
const tLVectorIncrement incX,
const double *  X,
const double &  alpha,
const double &  beta,
const tLVectorIndex nY,
const tLVectorIncrement incY,
double *  Y 
) const
pure virtualinherited

compute Y= beta Y + alpha op(This). X with op(A)=A or tA depending on isTrans value

Parameters
isTrans: if (isTrans) op(A)=A else pop(A)=tA
nXsize of X
incXincrement of X (memory distance between X(i) & X(i+1)
XX values of minimum size nX*incX
nYsize of Y
incYincrement of Y (memory distance between Y(i) & Y(i+1)
YY values of minimum size nY*incY

Implemented in LAP_DoubleFullUpperMatrix, LAP_DoubleBandedUpperMatrix, and LAP_DoublePackedUpperMatrix.

virtual void LAP_DoubleFullGeneralMatrix::vectorProduct ( const LAP_DoubleVector X,
LAP_DoubleVector Y 
) const
inlinevirtual

compute Y= This. X

Reimplemented from LAP_DoubleMatrix.

References LAP_DoubleMatrix::vectorProduct().

Referenced by vectorProduct().

Here is the call graph for this function:

Here is the caller graph for this function:

void LAP_DoubleFullGeneralMatrix::vectorProduct ( const tBoolean isTrans,
const LAP_DoubleVector X,
const lapack_real alpha,
const lapack_real beta,
LAP_DoubleVector Y 
) const
inline

return Y=betaY+alpha.op(This).X

Parameters
isTrans: if (isTrans) op(A)=A else pop(A)=tA
Xvector X of size number of cols of this
alphavalue of alpha
beta: value of beta
Y: vector Y of size number of rows of this

References getColumnsNumber(), LAP_Vector< T >::getIncrement(), getRowsNumber(), LAP_Vector< T >::getSize(), LAP_Vector< T >::setSize(), tLVectorIndex, and vectorProduct().

Here is the call graph for this function:

void LAP_DoubleFullGeneralMatrix::vectorProduct ( const tBoolean isTrans,
const LAP_ConstDoubleVector X,
const lapack_real alpha,
const lapack_real beta,
LAP_DoubleVector Y 
) const
inline

return Y=betaY+alpha.op(This).X

Parameters
isTrans: if (isTrans) op(A)=A else pop(A)=tA
Xvector X of size number of cols of this
alphavalue of alpha
beta: value of beta
Y: vector Y of size number of rows of this

References getColumnsNumber(), LAP_ConstVector< T >::getIncrement(), LAP_Vector< T >::getIncrement(), getRowsNumber(), LAP_ConstVector< T >::getSize(), LAP_Vector< T >::getSize(), LAP_Vector< T >::setSize(), tLVectorIndex, and vectorProduct().

Here is the call graph for this function:

virtual void LAP_DoubleFullGeneralMatrix::vectorProduct ( const tBoolean isTrans,
const tLVectorIndex nx,
const tLVectorIncrement incx,
const double *  x,
const lapack_real alpha,
const lapack_real beta,
const tLVectorIndex ny,
const tLVectorIncrement incy,
double *  y 
) const
inlinevirtual

compute Y= betaY + alpha. op(This). X

Parameters
isTransif (isTrans) op(A)=tA else op(A)=A;
nXsize of X
incXincrement of X (memory distance between X(i) & X(i+1)
XX values of minimum size nX*incX
alphaalpha value
beta:betavalue
nYsize of Y
incYincrement of Y (memory distance between Y(i) & Y(i+1)
YY values of minimum size nY*incY

References DoubleFullMatrixVectorProduct(), getColumnsNumber(), getLeadingDimension(), getRowIncrement(), getRowsNumber(), and tLVectorIndex.

Here is the call graph for this function:

static double LAP_DoubleMatrix::zpow ( const double &  f,
const int &  n 
)
inlinestaticinherited

compute the value of pow(f,n)=f^n

Parameters
freal value
nexponent relative value

return $ \displaystyle f^n $

Member Data Documentation

const tFlag LAP_Matrix::COL =1
staticinherited
tBoolean CORE_Object::mIsMemoryTesting =false
staticinherited

indicator to store all classes created and deleted only for debuging version

Referenced by CORE_Object::CORE_Object(), main(), CORE_Object::printObjectsInMemory(), and CORE_Object::~CORE_Object().

const tFlag LAP_DoubleFullGeneralMatrix::QR =1
static
const tFlag LAP_DoubleFullGeneralMatrix::QRP =2
static
const tFlag LAP_Matrix::ROW =0
staticinherited
double LAP_Object::ZERO_EPSILON =1.e-18
staticinherited

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