|
C++ main module for mmsd Package
1.0
|
this class describes a general matrix for lapack used : the matrix is stored in column mValues={T_{0,0},T{1,0},...,T_{N-1,0}, T_{1,0},....T_{1,N-1}, ..., T_{M-1,0},...T{M-1,N-1}} where More...
#include <LAP_Matrix.h>


Public Member Functions | |
| 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 tString | toString () const |
| return the string representation of the object node 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 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 | |
| LAP_Matrix () | |
| build a matrix More... | |
| LAP_Matrix (const tLVectorIndex &n, const tLVectorIndex &m) | |
| virtual | ~LAP_Matrix () |
| destroy a matrix More... | |
| 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... | |
this class describes a general matrix for lapack used : the matrix is stored in column mValues={T_{0,0},T{1,0},...,T_{N-1,0}, T_{1,0},....T_{1,N-1}, ..., T_{M-1,0},...T{M-1,N-1}} where
this class describes a general matrix for lapack used
this class describes a general matrix
this class describes a full storage for lapack used : the matrix is stored in column mValues={T_{0,0},T{1,0},...,T_{N-1,0}, T_{1,0},....T_{1,N-1}, ..., T_{M-1,0},...T{M-1,N-1}} where
This class describes a matrix
This class describes a matrix
|
protected |
|
protectedvirtual |
destroy a matrix
|
inlinevirtual |
copy operator
| m | matrix to copy |
References COL, getSize(), and ROW.
Referenced by LAP_DoubleMatrix::copy().


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().

|
inlinevirtual |
get the columns number of the matrix from view
Reimplemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, and LAP_DoubleFullSymmetricMatrix.
References 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(), LAP_DoubleMatrix::toString(), LAP_DoubleMatrix::vectorProduct(), LAP_DoublePackedUpperMatrix::vectorProduct(), and LAP_DoubleBandedUpperMatrix::vectorProduct().


|
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
|
inlinestaticinherited |
get output
|
inlineinherited |
return the identity string of the object
References CORE_Object::pointer2String().

|
inlinevirtual |
get the lines number of the matrix from view
Reimplemented in LAP_DoubleFullGeneralMatrix, LAP_DoubleFullUpperMatrix, and LAP_DoubleFullSymmetricMatrix.
References 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(), LAP_DoubleMatrix::toString(), LAP_DoublePackedSymmetricMatrix::vectorProduct(), LAP_DoubleMatrix::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
|
inline |
get the size in direction
Referenced by LAP_DoubleFullGeneralMatrix::concat(), copy(), getColumnsNumber(), getRowsNumber(), MMSD_DoubleSymmetricMatrix::getSize(), LAP_DoubleFullSymmetricMatrix::indexMin(), LAP_DoubleFullUpperMatrix::indexMin(), LAP_DoubleFullGeneralMatrix::indexMin(), LAP_DoubleFullGeneralMatrix::removeColumn(), and LAP_DoubleFullGeneralMatrix::solve().

|
inlinestaticinherited |
get type name
References tString.
|
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
|
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().


|
inlinestaticinherited |
set output
|
inlinevirtual |
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.
Referenced by MMSD_IntegerFullMatrix::computeCombinations(), LAP_DoubleBandedSymmetricMatrix::setSize(), LAP_DoublePackedUpperMatrix::setSize(), LAP_DoubleBandedUpperMatrix::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().

|
inlinevirtual |
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.
|
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().

|
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().

|
virtualinherited |
return the string representation of the object node
Reimplemented in MM_Attribute, MM_Structure, MMSD_DoubleSymmetricMatrix, CORE_Time, CORE_Vector< T >, CORE_Array< T >, CORE_Array< tString >, CORE_Array< int >, CORE_Array< tFlag >, MM_Class, MMSD_Model, LAP_DoubleMatrix, LAP_DoubleVector, CORE_Array2D< T >, MMSD_Cluster, MMSD_FluryGautschiGaussianLaw, CORE_Color, CORE_Matrix< T >, MMSD_DataSet, CORE_SharedPointersVMap< Key, Value >, CORE_SharedPointersVMap< tString, const CORE_Object >, CORE_SharedPointersVMap< tString, CORE_Object >, MATH_StiefelOptimizer, MMSD_Law, CORE_SharedPointersListVMap< Key, Value >, MATH_Equation, CORE_SharedPointersKVMap< Key, Value >, MATH_TranscendentEquation, MMSD_GaussianLaw, MMSD_GaussianCluster, MMSD_StiefelGaussianLaw, MATH_NewtonEquation, CORE_String, LAP_View, CORE_Integer, LAP_2DView, MMSD_StiefelFunction, CORE_Array3D< T >, MATH_CubicPolynom, MATH_QuadraticPolynom, MATH_ZeroEquation, MMSD_ConstraintGaussianCluster, CORE_Complex, CORE_Real, MATH_EigenFunction, and MATH_StiefelFunction.
References CORE_Object::getIdentityString().
Referenced by CORE_Object::print(), MM_ClassFactory::saveIntoFile(), CORE_SharedPointersKVMap< Key, Value >::toString(), CORE_SharedPointersListVMap< Key, Value >::toString(), MMSD_Law::toString(), CORE_SharedPointersVMap< Key, Value >::toString(), MMSD_Cluster::toString(), and MMSD_Model::toString().


|
static |
Referenced by LAP_DoubleFullGeneralMatrix::concat(), copy(), LAP_DoubleFullStorage::getColumnByReference(), LAP_DoubleFullStorage::getLeadingDimension(), LAP_DoubleFullStorage::getRowByReference(), LAP_DoubleFullStorage::getViewedColumnsNumber(), LAP_DoubleFullStorage::isSubmatrixView(), LAP_Matrix(), LAP_DoublePackedStorage::max(), LAP_DoubleBandedStorage::max(), LAP_DoubleFullStorage::operator()(), LAP_DoubleFullGeneralMatrix::removeColumn(), LAP_DoubleFullStorage::resetView(), 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().
|
static |
Referenced by LAP_DoubleFullGeneralMatrix::concat(), 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_DoublePackedStorage::max(), LAP_DoubleFullUpperMatrix::max(), LAP_DoubleFullGeneralMatrix::max(), LAP_DoubleFullStorage::operator()(), LAP_DoubleFullGeneralMatrix::removeColumn(), LAP_DoubleFullStorage::resetView(), 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().
1.8.8