C++ main module for mmsd Package
1.0
|
#include <LAP_DoubleMatrix.h>
Public Member Functions | |
LAP_DoubleMatrix () | |
build a matrix More... | |
LAP_DoubleMatrix (const tLVectorIndex &n, const tLVectorIndex &p) | |
virtual | ~LAP_DoubleMatrix () |
destroy a matrix 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 const double & | operator() (const tLVectorIndex &i, const tLVectorIndex &j) const =0 |
get the element at row i & column j More... | |
virtual double & | operator() (const tLVectorIndex &i, const tLVectorIndex &j)=0 |
get the element at row i & column j More... | |
virtual SP::LAP_DoubleMatrix | NewInstance () const =0 |
create a New instance of this 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... | |
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... | |
virtual void | setValues (SP::LAP_DoubleVector v) |
set the values of the matrix More... | |
virtual void | setValues (const tLVectorIndex &n, const double *values) |
set the values More... | |
double | get (const tLVectorIndex &i, const tLVectorIndex &j) const |
get the value taking into account the view More... | |
LAP_DoubleMatrixStorage & | getStorage () |
set the storage More... | |
const LAP_DoubleMatrixStorage & | getStorage () const |
set the storage More... | |
virtual tBoolean | isSymmetric () const =0 |
return true if the matrix is symmetric More... | |
virtual tBoolean | isUpper () const =0 |
return true if the matrix is upper More... | |
virtual void | getColumn (const tLVectorIndex &j, LAP_DoubleVector &v) const =0 |
get the j-th column in a vector More... | |
virtual void | getColumn (const tLVectorIndex &j, SP::LAP_DoubleVector v) const |
get the j-th column in a vector More... | |
virtual void | getRow (const tLVectorIndex &i, LAP_DoubleVector &v) const =0 |
get the i-th row in a vector More... | |
virtual void | getRow (const tLVectorIndex &i, SP::LAP_DoubleVector v) const |
get the j-th column in a vector More... | |
virtual tReal | sum (const tFlag &d, LAP_DoubleVector &s) const =0 |
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 =0 |
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 | norm2 () const =0 |
return norm2 sqrt(sum_ij(aij^2))=sqrt(tr(AtA)); More... | |
virtual tReal | norm2 (LAP_DoubleVector &v) const =0 |
return norm2 of the matrix and for each row; 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 (const LAP_DoubleVector &X, LAP_DoubleVector &Y) const |
compute Y= 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 SP::LAP_DoubleMatrix | matrixProduct (const LAP_DoubleMatrix &B) const =0 |
return C= This.B More... | |
virtual tBoolean | computeEigenValues (LAP_DoubleVector &U) const =0 |
compute the eigen values of This: A is copied More... | |
virtual tString | toString () const |
print the matrix taking into account the view More... | |
virtual tBoolean | copy (const LAP_Matrix &matrix) |
copy operator More... | |
virtual void | setSize (const tLVectorIndex &n, const tLVectorIndex &p) |
set the dimension of the matrix n x p More... | |
virtual void | setSize (const tLVectorIndex &n) |
set the dimension of the matrix n x p More... | |
const tLVectorIndex & | getSize (const tFlag &direction) const |
get the size in direction 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... | |
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 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 | 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... | |
LAP_DoubleMatrix::LAP_DoubleMatrix | ( | ) |
build a matrix
LAP_DoubleMatrix::LAP_DoubleMatrix | ( | const tLVectorIndex & | n, |
const tLVectorIndex & | p | ||
) |
|
virtual |
destroy a matrix
|
inline |
add v to the view term (i,j) of the matrix
i | : row of the element |
j | column of the element |
v | value to add |
|
inline |
This +=alpha.I.
Referenced by MATH_StiefelOptimizer::minimize().
|
inline |
|
pure virtual |
compute the eigen values of This: A is copied
U | is the result eigen values |
Implemented in LAP_DoubleFullSymmetricMatrix, LAP_DoublePackedSymmetricMatrix, LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoublePackedUpperMatrix, LAP_DoubleBandedSymmetricMatrix, and LAP_DoubleUpperMatrix.
|
inlinevirtualinherited |
copy operator
m | matrix to copy |
References LAP_Matrix::COL, LAP_Matrix::getSize(), and LAP_Matrix::ROW.
Referenced by copy().
|
virtual |
copy a matrix
x | the matrix to copy |
References LAP_Matrix::copy(), LAP_DoubleMatrixStorage::copy(), getStorage(), isSymmetric(), LAP_DoubleFullGeneralMatrix::isTransposed(), isUpper(), null, and tBoolean.
Referenced by LAP_DoubleBandedSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleFullUpperMatrix::computeEigenValueDecomposition(), LAP_DoubleFullGeneralMatrix::computeEigenValueDecomposition(), LAP_DoublePackedSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleFullSymmetricMatrix::computeEigenValueDecomposition(), copy(), MMSD_DoubleSymmetricMatrix::copy(), LAP_DoubleBandedSymmetricMatrix::LAP_DoubleBandedSymmetricMatrix(), LAP_DoubleBandedUpperMatrix::LAP_DoubleBandedUpperMatrix(), LAP_DoubleFullGeneralMatrix::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(), LAP_DoubleFullGeneralMatrix::matrixProduct(), MATH_StiefelOptimizer::minimize(), LAP_DoubleBandedUpperMatrix::operator=(), LAP_DoubleBandedSymmetricMatrix::operator=(), LAP_DoublePackedSymmetricMatrix::operator=(), LAP_DoubleFullUpperMatrix::operator=(), LAP_DoubleFullSymmetricMatrix::operator=(), LAP_DoubleFullGeneralMatrix::operator=(), LAP_DoublePackedUpperMatrix::operator=(), and LAP_DoubleFullGeneralMatrix::solve().
|
inline |
|
inline |
|
inline |
get the value taking into account the view
Referenced by MMSD_DataSet::getProperties(), LAP_DoubleBandedSymmetricMatrix::matrixProduct(), LAP_DoublePackedUpperMatrix::matrixProduct(), LAP_DoublePackedSymmetricMatrix::matrixProduct(), LAP_DoubleBandedUpperMatrix::matrixProduct(), LAP_DoubleFullSymmetricMatrix::matrixProduct(), LAP_DoubleFullUpperMatrix::matrixProduct(), LAP_DoubleFullGeneralMatrix::matrixProduct(), testEigenFunction(), testOptimize(), testOptimizerGProject1(), testOptimizerGProject2(), and testOptimizerHInverse().
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().
|
inherited |
return the class name of the object
References tString.
Referenced by CORE_Object::getIdentityString().
|
pure virtual |
get the j-th column in a vector
Implemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleBandedSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoublePackedSymmetricMatrix, and LAP_DoublePackedUpperMatrix.
Referenced by getColumn().
|
inlinevirtual |
get the j-th column in a vector
Reimplemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleBandedSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoublePackedSymmetricMatrix, and LAP_DoublePackedUpperMatrix.
References getColumn(), and null.
|
inlinevirtualinherited |
get the columns number of the matrix from view
Reimplemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, and LAP_DoubleFullSymmetricMatrix.
References LAP_Matrix::getSize().
Referenced by LAP_DoubleBandedSymmetricMatrix::computeEigenValues(), LAP_DoublePackedSymmetricMatrix::computeEigenValues(), LAP_DoublePackedUpperMatrix::getColumn(), LAP_DoublePackedSymmetricMatrix::getColumn(), LAP_DoubleBandedUpperMatrix::getColumn(), LAP_DoubleBandedSymmetricMatrix::getColumn(), LAP_DoublePackedUpperMatrix::getRow(), LAP_DoublePackedSymmetricMatrix::getRow(), LAP_DoubleBandedUpperMatrix::getRow(), LAP_DoubleBandedSymmetricMatrix::getRow(), LAP_DoublePackedSymmetricMatrix::matrixProduct(), LAP_DoublePackedUpperMatrix::matrixProduct(), LAP_DoubleBandedUpperMatrix::matrixProduct(), LAP_DoubleBandedUpperMatrix::norm2(), LAP_DoubleBandedSymmetricMatrix::norm2(), MMSD_DoubleSymmetricMatrix::product(), LAP_DoublePackedUpperMatrix::rankProduct(), LAP_DoubleBandedUpperMatrix::rankProduct(), LAP_DoublePackedUpperMatrix::solve(), LAP_DoubleBandedUpperMatrix::solve(), LAP_DoublePackedUpperMatrix::sum(), LAP_DoublePackedSymmetricMatrix::sum(), LAP_DoubleBandedUpperMatrix::sum(), LAP_DoubleBandedSymmetricMatrix::sum(), toString(), vectorProduct(), LAP_DoublePackedUpperMatrix::vectorProduct(), and LAP_DoubleBandedUpperMatrix::vectorProduct().
|
inline |
get the fill rate of the matrix
|
inlineinherited |
return the identity string of the object of the form className_at_address
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().
|
inlineinherited |
get a null value
Referenced by LAP_DoubleBandedStorage::operator()(), LAP_DoubleBandedUpperMatrix::operator()(), LAP_DoublePackedUpperMatrix::operator()(), and LAP_DoubleFullUpperMatrix::operator()().
|
inlineinherited |
get a const null value
|
inline |
get the number of null values
|
inlinestaticinherited |
get output
|
inlineinherited |
return the identity string of the object
References CORE_Object::pointer2String().
|
pure virtual |
get the i-th row in a vector
Implemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleBandedSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoublePackedSymmetricMatrix, and LAP_DoublePackedUpperMatrix.
Referenced by getRow().
|
inlinevirtual |
get the j-th column in a vector
Reimplemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleBandedSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoublePackedSymmetricMatrix, and LAP_DoublePackedUpperMatrix.
References getRow(), and null.
|
inlinevirtualinherited |
get the lines number of the matrix from view
Reimplemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, and LAP_DoubleFullSymmetricMatrix.
References LAP_Matrix::getSize().
Referenced by LAP_DoubleBandedSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoublePackedSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleBandedSymmetricMatrix::computeEigenValues(), LAP_DoublePackedUpperMatrix::computeEigenValues(), LAP_DoubleBandedUpperMatrix::computeEigenValues(), LAP_DoublePackedSymmetricMatrix::computeEigenValues(), LAP_DoublePackedUpperMatrix::getColumn(), LAP_DoublePackedSymmetricMatrix::getColumn(), LAP_DoubleBandedUpperMatrix::getColumn(), LAP_DoublePackedUpperMatrix::getRow(), LAP_DoublePackedSymmetricMatrix::getRow(), LAP_DoubleBandedUpperMatrix::getRow(), LAP_DoubleBandedSymmetricMatrix::getRow(), LAP_DoublePackedUpperMatrix::inverse(), LAP_DoublePackedSymmetricMatrix::inverse(), LAP_DoubleBandedSymmetricMatrix::matrixProduct(), LAP_DoublePackedUpperMatrix::matrixProduct(), LAP_DoubleBandedUpperMatrix::matrixProduct(), LAP_DoublePackedSymmetricMatrix::matrixProduct(), LAP_DoublePackedUpperMatrix::norm2(), LAP_DoublePackedSymmetricMatrix::norm2(), LAP_DoubleBandedUpperMatrix::norm2(), LAP_DoubleBandedSymmetricMatrix::norm2(), MMSD_IntegerFullMatrix::operator()(), MMSD_IntegerFullMatrix::randomizeColumns(), LAP_DoublePackedUpperMatrix::rankProduct(), LAP_DoubleBandedUpperMatrix::rankProduct(), LAP_DoublePackedSymmetricMatrix::rankSymmetricProduct(), LAP_DoublePackedUpperMatrix::solve(), LAP_DoubleBandedUpperMatrix::solve(), LAP_DoublePackedUpperMatrix::sum(), LAP_DoublePackedSymmetricMatrix::sum(), LAP_DoubleBandedUpperMatrix::sum(), LAP_DoubleBandedSymmetricMatrix::sum(), toString(), LAP_DoublePackedSymmetricMatrix::vectorProduct(), vectorProduct(), LAP_DoubleBandedSymmetricMatrix::vectorProduct(), LAP_DoublePackedUpperMatrix::vectorProduct(), and LAP_DoubleBandedUpperMatrix::vectorProduct().
|
inlineinherited |
get the shared pointer of this class into p
Referenced by CORE_Map< Key, Value >::getSharedPointer(), CORE_Array< tFlag >::getSharedPointer(), LAP_ConstVector< lapack_real >::getSharedPointer(), STAT_Combinatorial< T >::getSharedPointer(), LAP_Vector< lapack_int >::getSharedPointer(), CORE_Vector< T >::getSharedPointer(), CORE_Matrix< T >::getSharedPointer(), and CORE_Object::printObjectsInMemory().
|
inlineinherited |
get the shared pointer of this class into p
|
inlineinherited |
get the size in direction
Referenced by LAP_DoubleFullGeneralMatrix::concat(), LAP_Matrix::copy(), LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), MMSD_DoubleSymmetricMatrix::getSize(), LAP_DoubleFullSymmetricMatrix::indexMin(), LAP_DoubleFullUpperMatrix::indexMin(), LAP_DoubleFullGeneralMatrix::indexMin(), LAP_DoubleFullGeneralMatrix::removeColumn(), and LAP_DoubleFullGeneralMatrix::solve().
|
inline |
set the storage
References null.
Referenced by LAP_DoubleFullSymmetricMatrix::computeEigenValueDecomposition(), copy(), LAP_DoubleBandedUpperMatrix::getBandedStorage(), LAP_DoubleBandedSymmetricMatrix::getBandedStorage(), LAP_DoubleFullSymmetricMatrix::getFullStorage(), LAP_DoublePackedSymmetricMatrix::getPackedStorage(), MMSD_DoubleSymmetricMatrix::getValues(), init(), MMSD_Cluster::initialize(), MATH_StiefelOptimizer::minimize(), LAP_DoubleBandedUpperMatrix::operator=(), LAP_DoubleBandedSymmetricMatrix::operator=(), LAP_DoublePackedSymmetricMatrix::operator=(), LAP_DoubleFullUpperMatrix::operator=(), LAP_DoubleFullSymmetricMatrix::operator=(), LAP_DoubleFullGeneralMatrix::operator=(), LAP_DoublePackedUpperMatrix::operator=(), operator[](), MMSD_Law::saveToUIClass(), MMSD_Cluster::saveToUIClass(), MMSD_Model::saveToUIClass(), LAP_DoubleBandedSymmetricMatrix::setSize(), LAP_DoubleBandedUpperMatrix::setSize(), LAP_DoublePackedUpperMatrix::setSize(), LAP_DoublePackedSymmetricMatrix::setSize(), LAP_DoublePackedUpperMatrix::setValues(), LAP_DoublePackedSymmetricMatrix::setValues(), LAP_DoubleBandedSymmetricMatrix::setValues(), LAP_DoubleBandedUpperMatrix::setValues(), testGaussianLaw11N(), testGaussianLaw1PN(), testStiefelGaussianLawFunction(), trace(), MMSD_ConstraintGaussianCluster::updateFreedomDegrees(), and MMSD_GaussianCluster::updateFreedomDegrees().
|
inline |
set the storage
References null.
|
inlinestaticinherited |
get type name
References tString.
|
inline |
get the number of values
Referenced by MMSD_DoubleSymmetricMatrix::getValuesNumber(), and MMSD_Model::saveToUIClass().
|
inline |
init the values to v
v | init value |
References getStorage(), and LAP_DoubleMatrixStorage::init().
Referenced by MMSD_DoubleFullMatrix::operator=().
|
inlinestaticinherited |
return true if the machine is a 32 bits machine
References CORE_Object::is64Architecture().
|
staticinherited |
return true if the machine is a 64 bits machine
Referenced by CORE_Object::is32Architecture().
|
inlineinherited |
return true if the object is an instance of T
References null.
|
inlineinherited |
return true if the value is a null
|
pure virtual |
return true if the matrix is symmetric
Implemented in LAP_DoubleUpperMatrix, LAP_DoubleSymmetricMatrix, and LAP_DoubleGeneralMatrix.
Referenced by copy().
|
pure virtual |
return true if the matrix is upper
Implemented in LAP_DoubleUpperMatrix, LAP_DoubleSymmetricMatrix, and LAP_DoubleGeneralMatrix.
Referenced by copy().
|
pure virtual |
return C= This.B
B | the right multiplied matrix |
Implemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoublePackedSymmetricMatrix, LAP_DoublePackedUpperMatrix, and LAP_DoubleBandedSymmetricMatrix.
|
pure virtual |
create a New instance of this
Implemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleFullUpperMatrix, LAP_DoublePackedSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoubleBandedSymmetricMatrix, and LAP_DoublePackedUpperMatrix.
|
pure virtual |
return norm2 sqrt(sum_ij(aij^2))=sqrt(tr(AtA));
Implemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleBandedSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoublePackedSymmetricMatrix, and LAP_DoublePackedUpperMatrix.
|
pure virtual |
return norm2 of the matrix and for each row;
Implemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleBandedSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoublePackedSymmetricMatrix, and LAP_DoublePackedUpperMatrix.
|
pure virtual |
get the element at row i & column j
i | index of the row in [0,getRowsNumber()[ |
j | index of the column in [0,getColumnsNumber()[ return the value of the element (i,j). |
Implemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleFullUpperMatrix, LAP_DoublePackedSymmetricMatrix, LAP_DoubleBandedSymmetricMatrix, LAP_DoublePackedUpperMatrix, and LAP_DoubleBandedUpperMatrix.
|
pure virtual |
get the element at row i & column j
i | index of the row in [0,getRowsNumber()[ |
j | index of the column in [0,getColumnsNumber()[ return the value of the element (i,j). If the block matrix is null return a null value |
Implemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleFullUpperMatrix, LAP_DoublePackedSymmetricMatrix, LAP_DoubleBandedSymmetricMatrix, LAP_DoublePackedUpperMatrix, and LAP_DoubleBandedUpperMatrix.
|
inline |
get the element at index
index | index of the element in [0,getStorage().getValuesNumber()[ return the value of the element at index for reading |
References getStorage().
|
inline |
get the element at index
index | index of the element in [0,getValuesNumber()[ return the value of the element at index for writing |
References getStorage().
|
staticinherited |
print on output
References null, and CORE_Object::print().
Referenced by CORE_Exception::CORE_Exception().
|
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().
|
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().
|
inlinevirtualinherited |
print the class
References CORE_Object::print(), and CORE_Object::toString().
|
virtualinherited |
print the class
Reimplemented in CORE_Out.
References null, and CORE_Object::print().
|
virtualinherited |
References null.
|
virtualinherited |
References null.
|
inlinestaticinherited |
print the class
|
staticinherited |
print object in memory
References CORE_Object::getClassName(), CORE_Object::getSharedPointer(), and CORE_Object::mIsMemoryTesting.
Referenced by main().
|
inline |
set the value of the element at row i and column j
i | : row of the element |
j | column of the element |
v | value to set |
|
inlinestaticinherited |
set output
|
inlinevirtualinherited |
set the dimension of the matrix n x p
Reimplemented in LAP_DoubleFullSymmetricMatrix, LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoublePackedSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoublePackedUpperMatrix, and LAP_DoubleBandedSymmetricMatrix.
References LAP_Matrix::COL, and LAP_Matrix::ROW.
Referenced by MMSD_IntegerFullMatrix::computeCombinations(), LAP_DoubleBandedSymmetricMatrix::setSize(), LAP_DoubleBandedUpperMatrix::setSize(), LAP_DoublePackedUpperMatrix::setSize(), LAP_DoublePackedSymmetricMatrix::setSize(), LAP_DoubleFullUpperMatrix::setSize(), LAP_DoubleFullGeneralMatrix::setSize(), LAP_DoubleFullSymmetricMatrix::setSize(), LAP_DoublePackedUpperMatrix::setValues(), LAP_DoublePackedSymmetricMatrix::setValues(), LAP_DoubleBandedSymmetricMatrix::setValues(), LAP_DoubleBandedUpperMatrix::setValues(), LAP_DoubleFullUpperMatrix::setValues(), LAP_DoubleFullGeneralMatrix::setValues(), and LAP_DoubleFullSymmetricMatrix::setValues().
|
inlinevirtualinherited |
set the dimension of the matrix n x p
Reimplemented in LAP_DoubleFullSymmetricMatrix, LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoublePackedSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoubleBandedSymmetricMatrix, and LAP_DoublePackedUpperMatrix.
References LAP_Matrix::COL, and LAP_Matrix::ROW.
|
inline |
set the storage
Referenced by LAP_DoubleBandedSymmetricMatrix::LAP_DoubleBandedSymmetricMatrix(), LAP_DoubleBandedUpperMatrix::LAP_DoubleBandedUpperMatrix(), LAP_DoubleFullGeneralMatrix::LAP_DoubleFullGeneralMatrix(), LAP_DoubleFullSymmetricMatrix::LAP_DoubleFullSymmetricMatrix(), LAP_DoubleFullUpperMatrix::LAP_DoubleFullUpperMatrix(), LAP_DoublePackedSymmetricMatrix::LAP_DoublePackedSymmetricMatrix(), and LAP_DoublePackedUpperMatrix::LAP_DoublePackedUpperMatrix().
|
inlineprotectedinherited |
set this weak shared pointer called toDoAfterThis setting method
References CORE_Object::toDoAfterThisSetting().
|
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().
|
inlinevirtual |
set the values of the matrix
Reimplemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoubleBandedSymmetricMatrix, LAP_DoublePackedSymmetricMatrix, and LAP_DoublePackedUpperMatrix.
Referenced by MMSD_DoubleSymmetricMatrix::setValues().
|
inlinevirtual |
|
pure 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
Implemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleBandedSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoublePackedSymmetricMatrix, and LAP_DoublePackedUpperMatrix.
|
pure 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
Implemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, LAP_DoubleFullSymmetricMatrix, LAP_DoubleBandedSymmetricMatrix, LAP_DoubleBandedUpperMatrix, LAP_DoublePackedSymmetricMatrix, and LAP_DoublePackedUpperMatrix.
|
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().
|
virtual |
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.
|
inline |
return trace
References getStorage(), and LAP_DoubleMatrixStorage::trace().
|
inlinevirtual |
compute This. X
X | input vector |
References LAP_Vector< T >::get(), and LAP_DoubleVector::New().
Referenced by vectorProduct(), LAP_DoublePackedSymmetricMatrix::vectorProduct(), LAP_DoubleBandedSymmetricMatrix::vectorProduct(), LAP_DoubleFullSymmetricMatrix::vectorProduct(), and LAP_DoubleFullGeneralMatrix::vectorProduct().
|
inlinevirtual |
compute Y= This. X
X | input vector |
Y | output vector |
Reimplemented in LAP_DoubleFullGeneralMatrix, and LAP_DoubleFullUpperMatrix.
References vectorProduct().
|
inlinevirtual |
rcompute Y= This X
X | input vector |
Y | output vector |
References null, and vectorProduct().
|
inlinevirtual |
compute Y= op(This). X
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 vectorProduct().
|
pure virtual |
compute Y= beta Y + alpha op(This). X with op(A)=A or tA depending on isTrans value
isTrans | : if (isTrans) op(A)=A else pop(A)=tA |
nX | size of X |
incX | increment of X (memory distance between X(i) & X(i+1) |
X | X values of minimum size nX*incX |
nY | size of Y |
incY | increment of Y (memory distance between Y(i) & Y(i+1) |
Y | Y values of minimum size nY*incY |
Implemented in LAP_DoubleFullUpperMatrix, LAP_DoubleBandedUpperMatrix, and LAP_DoublePackedUpperMatrix.
|
inlinestatic |
compute the value of pow(f,n)=f^n
f | real value |
n | exponent relative value |
return
|
staticinherited |
Referenced by LAP_DoubleFullGeneralMatrix::concat(), LAP_Matrix::copy(), LAP_DoubleFullStorage::getColumnByReference(), LAP_DoubleFullStorage::getLeadingDimension(), LAP_DoubleFullStorage::getRowByReference(), LAP_DoubleFullStorage::getViewedColumnsNumber(), LAP_DoubleFullStorage::isSubmatrixView(), LAP_Matrix::LAP_Matrix(), LAP_DoublePackedStorage::max(), LAP_DoubleBandedStorage::max(), LAP_DoubleFullStorage::operator()(), LAP_DoubleFullGeneralMatrix::removeColumn(), LAP_DoubleFullStorage::resetView(), LAP_Matrix::setSize(), LAP_DoubleFullGeneralMatrix::solve(), LAP_DoublePackedUpperMatrix::sum(), and LAP_DoubleBandedUpperMatrix::sum().
|
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().
|
staticinherited |
Referenced by LAP_DoubleFullGeneralMatrix::concat(), LAP_Matrix::copy(), LAP_DoubleFullStorage::getColumnByReference(), LAP_DoubleFullStorage::getRowByReference(), LAP_DoubleFullStorage::getRowIncrement(), MMSD_DoubleSymmetricMatrix::getSize(), LAP_DoubleFullStorage::getViewedRowsNumber(), LAP_DoubleFullSymmetricMatrix::indexMin(), LAP_DoubleFullUpperMatrix::indexMin(), LAP_DoubleFullGeneralMatrix::indexMin(), LAP_DoubleFullStorage::isSubmatrixView(), LAP_Matrix::LAP_Matrix(), LAP_DoublePackedStorage::max(), LAP_DoubleFullUpperMatrix::max(), LAP_DoubleFullGeneralMatrix::max(), LAP_DoubleFullStorage::operator()(), LAP_DoubleFullGeneralMatrix::removeColumn(), LAP_DoubleFullStorage::resetView(), LAP_Matrix::setSize(), LAP_DoubleFullGeneralMatrix::solve(), LAP_DoublePackedUpperMatrix::sum(), LAP_DoubleFullUpperMatrix::sum(), and LAP_DoubleFullGeneralMatrix::sum().
|
staticinherited |
Referenced by LAP_DoublePackedStorage::computeBandsNumber(), LAP_DoubleBandedStorage::computeBandsNumber(), LAP_DoubleFullStorage::computeBandsNumber(), LAP_DoubleBandedStorage::copyFullStorage(), LAP_DoubleBandedStorage::copyPackStorage(), LAP_DoubleMatrixStorage::getNullValuesNumber(), LAP_DoubleFullGeneralMatrix::lowerTest(), LAP_DoubleFullGeneralMatrix::symmetricTest(), and LAP_DoubleFullGeneralMatrix::upperTest().