C++ main module for mmsd Package
1.0
|
this class describes a packed symmetric matrix for lapack used where values are stored in vector: {A(0,0) A(0,1) A(1,1) A(2,0),A(2,1) A(2,2) ....A(n,n)} More...
#include <LAP_DoubleBandedSymmetricMatrix.h>
Public Member Functions | |
LAP_DoubleBandedSymmetricMatrix () | |
build a matrix More... | |
LAP_DoubleBandedSymmetricMatrix (const LAP_DoubleBandedSymmetricMatrix &mat) | |
build a matrix for equality operator in construction More... | |
virtual | ~LAP_DoubleBandedSymmetricMatrix () |
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 view only use the upper diagonal More... | |
virtual const double & | operator() (const tLVectorIndex &i, const tLVectorIndex &j) const |
accessor of element at row i and column j taking into account the view only use the upper diagonal More... | |
LAP_DoubleBandedSymmetricMatrix & | operator= (const double &s) |
init all the matrix to s More... | |
LAP_DoubleBandedSymmetricMatrix & | operator= (const LAP_DoubleMatrix &s) |
init all the matrix to s More... | |
LAP_DoubleBandedSymmetricMatrix & | operator^= (const lapack_real &s) |
power by s the matrix v More... | |
LAP_DoubleBandedSymmetricMatrix & | operator*= (const lapack_real &s) |
multiply by s the matrix More... | |
LAP_DoubleBandedSymmetricMatrix & | operator/= (const lapack_real &s) |
divide by s the matrix v More... | |
LAP_DoubleBandedSymmetricMatrix & | operator+= (const lapack_real &s) |
add s to the upper matrix More... | |
LAP_DoubleBandedSymmetricMatrix & | operator-= (const lapack_real &s) |
sub s to the upper matrix More... | |
LAP_DoubleBandedSymmetricMatrix & | operator*= (const LAP_DoubleBandedSymmetricMatrix &s) |
multiply the viewed matrices term by term More... | |
LAP_DoubleBandedSymmetricMatrix & | operator/= (const LAP_DoubleBandedSymmetricMatrix &s) |
divide the viewed matrices term by term More... | |
LAP_DoubleBandedSymmetricMatrix & | operator-= (const LAP_DoubleBandedSymmetricMatrix &s) |
sub the viewed matrix More... | |
LAP_DoubleBandedSymmetricMatrix & | operator+= (const LAP_DoubleBandedSymmetricMatrix &s) |
add the viewed matrix More... | |
virtual void | setSize (const tLVectorIndex &nRows, const tLVectorIndex &nCols) |
set the dimension of the matrix More... | |
virtual void | setSize (const tLVectorIndex &n) |
set the dimension of the matrix More... | |
void | setBandsNumber (const tLVectorIndex &n) |
set bands number More... | |
virtual void | setValues (SP::LAP_DoubleVector values) |
set the values set the pointer values of the matrix to values the size of the vector is mBandsNumber*nCols More... | |
virtual void | setValues (const tLVectorIndex &n, const double *values) |
set the values More... | |
tBoolean | compile () |
compile the banded matrix More... | |
LAP_DoubleBandedStorage & | getBandedStorage () |
GET. More... | |
const LAP_DoubleBandedStorage & | getBandedStorage () const |
get the banded storage More... | |
const tLVectorIndex & | getBandsNumber () const |
get bands number More... | |
const tLVectorIndex & | getUpperBandsNumber () const |
get upper bands number More... | |
virtual void | getColumn (const tLVectorIndex &j, LAP_DoubleVector &v) const |
get the j-th column of this symmetric matrix in a vector More... | |
virtual void | getColumn (const tLVectorIndex &j, SP::LAP_DoubleVector v) const |
get the j-th column of this symmetric matrix in a vector More... | |
virtual void | getRow (const tLVectorIndex &i, LAP_DoubleVector &v) const |
get the i-th row in a vector More... | |
virtual void | getRow (const tLVectorIndex &i, SP::LAP_DoubleVector v) const |
get the i-th row in a vector 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 void | vectorProduct (const LAP_DoubleVector &X, LAP_DoubleVector &Y) |
compute Y=A.X More... | |
virtual void | vectorProduct (const LAP_DoubleVector &X, const lapack_real &alpha, const lapack_real &beta, LAP_DoubleVector &Y) const |
compute Y:=betaY+alpha.This.X More... | |
virtual void | vectorProduct (const LAP_ConstDoubleVector &X, const lapack_real &alpha, const lapack_real &beta, LAP_DoubleVector &Y) const |
compute Y:=betaY+alpha.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= op(This). X with op(A)=A or tA depending on isTrans value More... | |
virtual void | vectorProduct (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. This. X More... | |
void | rankSymmetricProduct (const LAP_DoubleFullGeneralMatrix &A) |
compute the symmetric matrix This:=A. tA More... | |
void | rankSymmetricProduct (const double alpha, const tBoolean &isTransA, const LAP_DoubleFullGeneralMatrix &A) |
compute the symmetric matrix This:=alpha. op(A).t(op(A)) More... | |
virtual void | rankSymmetricProduct (const double &alpha, const double &beta, const tLVectorIndex &nARows, const tLVectorIndex &nACols, const tLVectorIncrement &incA, const tLVectorIndex &ldA, const tBoolean &isTransA, const double *A) |
compute the symmetric matrix This:=beta.This+alpha op(A).t(op(A)) More... | |
virtual SP::LAP_DoubleMatrix | matrixProduct (const LAP_DoubleMatrix &B) const |
return C=(This) . B More... | |
void | matrixProduct (const LAP_DoubleFullGeneralMatrix &B, LAP_DoubleFullGeneralMatrix &C) const |
return C=(This) . B More... | |
virtual void | matrixProduct (const tBoolean &leftSide, const LAP_DoubleFullGeneralMatrix &B, const lapack_real &alpha, const lapack_real &beta, LAP_DoubleFullGeneralMatrix &C) const |
make the product if (leftSide) C = alpha. This . B +beta C if (!leftSide) C = alpha. B . This +beta C More... | |
virtual void | matrixProduct (const tBoolean &leftSide, const tLVectorIndex &nBRows, const tLVectorIndex &nBCols, const tLVectorIncrement &incB, const tLVectorIndex &ldB, const double *B, const lapack_real &alpha, const lapack_real &beta, LAP_DoubleFullGeneralMatrix &C) const |
make the product: More... | |
virtual tBoolean | computeEigenValues (LAP_DoubleVector &U) const |
compute the eigen values of This: A is copied in ascending order More... | |
tBoolean | computeEigenValueDecomposition (LAP_DoubleVector &U, LAP_DoubleFullGeneralMatrix &W) const |
compute the eigen elements in ascending order of This the eigen vectors are set in This: This is destroyed More... | |
tBoolean | computeEigenValueDecomposition (LAP_DoubleVector &U, LAP_DoubleFullGeneralMatrix &VR, const int &il, const int &iu) const |
compute the eigen elements in ascending order of This supposed to be symmetric, the eigen vectors are set in Z, A must be symmetric and is copied only the eigen values & vectors are computed in index il and iu when the iegen values are ordering in an ascent order. More... | |
virtual SP::LAP_DoubleUpperMatrix | choleskyFactorization () |
compute the choleskey factorization of the full symmetric matrix A is modified such that the upper matrix of A is the matrix upper triangular matrix U : A = tU. U 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_DoubleMatrixStorage & | getStorage () |
set the storage More... | |
const LAP_DoubleMatrixStorage & | getStorage () 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 (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 tString | toString () const |
print the matrix taking into account the view 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 SP::LAP_DoubleBandedSymmetricMatrix | New () |
static SP::LAP_DoubleBandedSymmetricMatrix | New (const tLVectorIndex &n) |
static void | matrixProduct (const tBoolean &leftSide, const LAP_DoubleBandedSymmetricMatrix &S, const LAP_DoubleFullGeneralMatrix &B, const lapack_real &alpha, const lapack_real &beta, LAP_DoubleFullGeneralMatrix &C) |
compute : More... | |
static tBoolean | computeEigenValues (LAP_DoubleBandedSymmetricMatrix &A, LAP_DoubleVector &U) |
compute the eigen values of A in ascending order and A is destroyed after method lapack method dsyev called More... | |
static tBoolean | computeEigenValueDecomposition (LAP_DoubleBandedSymmetricMatrix &A, LAP_DoubleVector &U, LAP_DoubleFullGeneralMatrix &Z, LAP_DoubleFullGeneralMatrix &Q, const lapack_int &il, const lapack_int &ul) |
compute the eigen elements of A in ascending order . A is supposed to be symmetric, the eigen vectors are set in Z, A must be symmetric. only the eigen values & vectors are computed in index il and iu when the iegen values are ordering in an ascent order. 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 | 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... | |
this class describes a packed symmetric matrix for lapack used where values are stored in vector: {A(0,0) A(0,1) A(1,1) A(2,0),A(2,1) A(2,2) ....A(n,n)}
This class describes a matrix
LAP_DoubleBandedSymmetricMatrix::LAP_DoubleBandedSymmetricMatrix | ( | ) |
build a matrix
References LAP_DoubleBandedStorage::New(), and LAP_DoubleMatrix::setStorage().
Referenced by New().
LAP_DoubleBandedSymmetricMatrix::LAP_DoubleBandedSymmetricMatrix | ( | const LAP_DoubleBandedSymmetricMatrix & | mat | ) |
build a matrix for equality operator in construction
References LAP_DoubleMatrix::copy(), LAP_DoubleBandedStorage::New(), and LAP_DoubleMatrix::setStorage().
|
virtual |
destroy a matrix
|
inlineinherited |
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 |
|
inlineinherited |
This +=alpha.I.
Referenced by MATH_StiefelOptimizer::minimize().
|
inlinevirtual |
compute the choleskey factorization of the full symmetric matrix A is modified such that the upper matrix of A is the matrix upper triangular matrix U : A = tU. U
Implements LAP_DoubleSymmetricMatrix.
|
inline |
compile the banded matrix
References LAP_DoubleBandedStorage::compile(), and getBandedStorage().
|
inlineinherited |
|
inline |
compute the eigen elements in ascending order of This the eigen vectors are set in This: This is destroyed
References LAP_DoubleMatrix::copy().
Referenced by computeEigenValueDecomposition().
|
inline |
compute the eigen elements in ascending order of This supposed to be symmetric, the eigen vectors are set in Z, A must be symmetric and is copied only the eigen values & vectors are computed in index il and iu when the iegen values are ordering in an ascent order.
References computeEigenValueDecomposition().
|
inlinestatic |
compute the eigen elements of A in ascending order . A is supposed to be symmetric, the eigen vectors are set in Z, A must be symmetric. only the eigen values & vectors are computed in index il and iu when the iegen values are ordering in an ascent order.
A | (IN/OUT) symmetric Matrix |
U | eigen values (OUT) |
Z | eigen vectors (OUT) |
il | min eigen values index >= 1 |
ul | : max eigen values index <= A.getSize(ROW) dsyevx lapack method called |
References DoubleBandedSymmetricMatrixBoundedEigenValues(), getBandsNumber(), LAP_DoubleFullGeneralMatrix::getLeadingDimension(), LAP_Matrix::getRowsNumber(), LAP_Vector< T >::resetView(), LAP_DoubleFullGeneralMatrix::setSize(), LAP_Vector< T >::setSize(), and tLVectorIndex.
|
inlinevirtual |
compute the eigen values of This: A is copied in ascending order
Implements LAP_DoubleMatrix.
|
inlinestatic |
compute the eigen values of A in ascending order and A is destroyed after method lapack method dsyev called
References DoubleBandedSymmetricMatrixEigenValues(), getBandsNumber(), LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), null, LAP_Vector< T >::resetView(), LAP_Vector< T >::setSize(), and tLVectorIndex.
|
inlinevirtualinherited |
copy operator
m | matrix to copy |
References LAP_Matrix::COL, LAP_Matrix::getSize(), and LAP_Matrix::ROW.
Referenced by LAP_DoubleMatrix::copy().
|
virtualinherited |
copy a matrix
x | the matrix to copy |
References LAP_Matrix::copy(), LAP_DoubleMatrixStorage::copy(), LAP_DoubleMatrix::getStorage(), LAP_DoubleMatrix::isSymmetric(), LAP_DoubleFullGeneralMatrix::isTransposed(), LAP_DoubleMatrix::isUpper(), null, and tBoolean.
Referenced by computeEigenValueDecomposition(), LAP_DoubleFullUpperMatrix::computeEigenValueDecomposition(), LAP_DoubleFullGeneralMatrix::computeEigenValueDecomposition(), LAP_DoublePackedSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleFullSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleMatrix::copy(), MMSD_DoubleSymmetricMatrix::copy(), 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=(), operator=(), LAP_DoublePackedSymmetricMatrix::operator=(), LAP_DoubleFullUpperMatrix::operator=(), LAP_DoubleFullSymmetricMatrix::operator=(), LAP_DoubleFullGeneralMatrix::operator=(), LAP_DoublePackedUpperMatrix::operator=(), and LAP_DoubleFullGeneralMatrix::solve().
|
inlineinherited |
copy a matrix
x | the matrix to copy |
References LAP_DoubleMatrix::copy(), and null.
|
inlineinherited |
copy a matrix
x | the matrix to copy |
References LAP_DoubleMatrix::copy(), and null.
|
inlineinherited |
get the value taking into account the view
Referenced by MMSD_DataSet::getProperties(), 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().
|
inline |
GET.
get the banded storage
References LAP_DoubleMatrix::getStorage().
Referenced by compile(), getBandsNumber(), getUpperBandsNumber(), operator()(), operator*=(), operator+=(), operator-=(), operator/=(), operator^=(), rankSymmetricProduct(), setBandsNumber(), and setSize().
|
inline |
get the banded storage
References LAP_DoubleMatrix::getStorage().
|
inline |
get bands number
References getBandedStorage(), and LAP_DoubleBandedStorage::getBandsNumber().
Referenced by computeEigenValueDecomposition(), computeEigenValues(), getRow(), matrixProduct(), norm2(), setValues(), sum(), and vectorProduct().
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().
|
virtual |
get the j-th column of this symmetric matrix in a vector
Implements LAP_DoubleMatrix.
References LAP_Matrix::getColumnsNumber(), and getRow().
Referenced by getColumn().
|
inlinevirtual |
get the j-th column of this symmetric matrix in a vector
Reimplemented from LAP_DoubleMatrix.
References ASSERT_IN, 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 computeEigenValues(), LAP_DoublePackedSymmetricMatrix::computeEigenValues(), LAP_DoublePackedUpperMatrix::getColumn(), LAP_DoublePackedSymmetricMatrix::getColumn(), LAP_DoubleBandedUpperMatrix::getColumn(), getColumn(), LAP_DoublePackedUpperMatrix::getRow(), LAP_DoublePackedSymmetricMatrix::getRow(), LAP_DoubleBandedUpperMatrix::getRow(), getRow(), LAP_DoublePackedSymmetricMatrix::matrixProduct(), LAP_DoublePackedUpperMatrix::matrixProduct(), LAP_DoubleBandedUpperMatrix::matrixProduct(), LAP_DoubleBandedUpperMatrix::norm2(), 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(), sum(), LAP_DoubleMatrix::toString(), LAP_DoubleMatrix::vectorProduct(), LAP_DoublePackedUpperMatrix::vectorProduct(), and LAP_DoubleBandedUpperMatrix::vectorProduct().
|
inlineinherited |
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
|
inlineinherited |
get the number of null values
|
inlinestaticinherited |
get output
|
inlineinherited |
return the identity string of the object
References CORE_Object::pointer2String().
|
virtual |
get the i-th row in a vector
Implements LAP_DoubleMatrix.
References getBandsNumber(), LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), LAP_Vector< T >::resetView(), LAP_Vector< T >::setSize(), and tLVectorIndex.
Referenced by getColumn(), and getRow().
|
inlinevirtual |
get the i-th row in a vector
Reimplemented from LAP_DoubleMatrix.
References ASSERT_IN, 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 computeEigenValueDecomposition(), LAP_DoublePackedSymmetricMatrix::computeEigenValueDecomposition(), 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(), getRow(), LAP_DoublePackedUpperMatrix::inverse(), LAP_DoublePackedSymmetricMatrix::inverse(), matrixProduct(), LAP_DoublePackedUpperMatrix::matrixProduct(), LAP_DoubleBandedUpperMatrix::matrixProduct(), LAP_DoublePackedSymmetricMatrix::matrixProduct(), LAP_DoublePackedUpperMatrix::norm2(), LAP_DoublePackedSymmetricMatrix::norm2(), LAP_DoubleBandedUpperMatrix::norm2(), 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(), sum(), LAP_DoubleMatrix::toString(), LAP_DoublePackedSymmetricMatrix::vectorProduct(), LAP_DoubleMatrix::vectorProduct(), 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().
|
inlineinherited |
set the storage
References null.
Referenced by LAP_DoubleFullSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleMatrix::copy(), LAP_DoubleBandedUpperMatrix::getBandedStorage(), getBandedStorage(), LAP_DoubleFullSymmetricMatrix::getFullStorage(), LAP_DoublePackedSymmetricMatrix::getPackedStorage(), MMSD_DoubleSymmetricMatrix::getValues(), LAP_DoubleMatrix::init(), MMSD_Cluster::initialize(), MATH_StiefelOptimizer::minimize(), LAP_DoubleBandedUpperMatrix::operator=(), operator=(), LAP_DoublePackedSymmetricMatrix::operator=(), LAP_DoubleFullUpperMatrix::operator=(), LAP_DoubleFullSymmetricMatrix::operator=(), LAP_DoubleFullGeneralMatrix::operator=(), LAP_DoublePackedUpperMatrix::operator=(), LAP_DoubleMatrix::operator[](), MMSD_Law::saveToUIClass(), MMSD_Cluster::saveToUIClass(), MMSD_Model::saveToUIClass(), setSize(), LAP_DoubleBandedUpperMatrix::setSize(), LAP_DoublePackedUpperMatrix::setSize(), LAP_DoublePackedSymmetricMatrix::setSize(), LAP_DoublePackedUpperMatrix::setValues(), LAP_DoublePackedSymmetricMatrix::setValues(), setValues(), LAP_DoubleBandedUpperMatrix::setValues(), testGaussianLaw11N(), testGaussianLaw1PN(), testStiefelGaussianLawFunction(), LAP_DoubleMatrix::trace(), MMSD_ConstraintGaussianCluster::updateFreedomDegrees(), and MMSD_GaussianCluster::updateFreedomDegrees().
|
inlineinherited |
set the storage
References null.
|
inlinestaticinherited |
get type name
References tString.
|
inline |
get upper bands number
References getBandedStorage(), and LAP_DoubleBandedStorage::getUpperBandsNumber().
|
inlineinherited |
get the number of values
Referenced by MMSD_DoubleSymmetricMatrix::getValuesNumber(), and MMSD_Model::saveToUIClass().
|
inlineinherited |
init the values to v
v | init value |
References LAP_DoubleMatrix::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
|
inlinevirtualinherited |
return true if the matrix is symmetric
Implements LAP_DoubleMatrix.
|
inlinevirtualinherited |
return true if the matrix is upper
Implements LAP_DoubleMatrix.
|
inlinevirtual |
return C=(This) . B
Implements LAP_DoubleMatrix.
References LAP_DoubleMatrix::get(), LAP_DoubleFullGeneralMatrix::New(), and null.
Referenced by matrixProduct().
|
inline |
return C=(This) . B
References LAP_DoubleFullGeneralMatrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), matrixProduct(), and LAP_DoubleFullGeneralMatrix::setSize().
|
inlinevirtual |
make the product if (leftSide) C = alpha. This . B +beta C if (!leftSide) C = alpha. B . This +beta C
Implements LAP_DoubleSymmetricMatrix.
References matrixProduct().
|
inlinevirtual |
make the product:
leftside | : the side of product |
nBRows | number of rows of B |
nBcols | number of columns of B |
incB | memory distance between B(i,j) && B(i+1,j) |
ldB | memory distance between B(i,j) && B(i,j+1) |
alpha | the alpha value |
beta | the beta value |
C | the output full matrix |
Implements LAP_DoubleSymmetricMatrix.
References ASSERT_IN, DoubleBandedSymmetricMatrixMatrixProduct(), getBandsNumber(), LAP_DoubleFullGeneralMatrix::getColumnsNumber(), LAP_DoubleFullGeneralMatrix::getLeadingDimension(), LAP_DoubleFullGeneralMatrix::getRowIncrement(), LAP_Matrix::getRowsNumber(), LAP_DoubleFullGeneralMatrix::getRowsNumber(), LAP_DoubleFullGeneralMatrix::setSize(), and tLVectorIndex.
|
inlinestatic |
compute :
S is banded symmetric matrix
leftside | if true C:=beta C+ alpha S. B else C:=beta C+ alpha B. S |
S | the packed symmetric matrix |
B | : the general full matrix |
alpha | : the alpha value |
beta | the beta value |
C | the result general full matrix |
References ASSERT_IN, DoubleBandedSymmetricMatrixMatrixProduct(), getBandsNumber(), LAP_DoubleFullGeneralMatrix::getColumnsNumber(), LAP_DoubleFullGeneralMatrix::getLeadingDimension(), LAP_DoubleFullGeneralMatrix::getRowIncrement(), LAP_Matrix::getRowsNumber(), LAP_DoubleFullGeneralMatrix::getRowsNumber(), LAP_DoubleFullGeneralMatrix::setSize(), and tLVectorIndex.
|
inlinestatic |
References LAP_DoubleBandedSymmetricMatrix().
Referenced by New(), and NewInstance().
|
inlinestatic |
|
inlinevirtual |
create a New instance of this
Implements LAP_DoubleMatrix.
References New().
|
virtual |
return norm2 sqrt(sum_ij(aij^2))=sqrt(tr(AtA));
Implements LAP_DoubleMatrix.
References getBandsNumber(), LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), sum(), and tLVectorIndex.
|
virtual |
return norm2 of the matrix and for each row;
Implements LAP_DoubleMatrix.
References getBandsNumber(), LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), LAP_Vector< T >::resetView(), LAP_Vector< T >::setSize(), sum(), and tLVectorIndex.
|
inlinevirtual |
accessor of element at row i and column j taking into account the view only use the upper diagonal
Implements LAP_DoubleMatrix.
References getBandedStorage().
|
inlinevirtual |
accessor of element at row i and column j taking into account the view only use the upper diagonal
Implements LAP_DoubleMatrix.
References getBandedStorage().
|
inline |
|
inline |
multiply the viewed matrices term by term
References getBandedStorage().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
divide the viewed matrices term by term
References getBandedStorage().
|
inline |
init all the matrix to s
References LAP_DoubleMatrix::getStorage(), and LAP_DoubleMatrixStorage::init().
|
inline |
init all the matrix to s
References LAP_DoubleMatrix::copy().
|
inlineinherited |
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 LAP_DoubleMatrix::getStorage().
|
inlineinherited |
get the element at index
index | index of the element in [0,getValuesNumber()[ return the value of the element at index for writing |
References LAP_DoubleMatrix::getStorage().
|
inline |
|
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 |
compute the symmetric matrix This:=A. tA
References LAP_DoubleFullGeneralMatrix::getColumnsNumber(), LAP_DoubleFullGeneralMatrix::getLeadingDimension(), LAP_DoubleFullGeneralMatrix::getRowIncrement(), and LAP_DoubleFullGeneralMatrix::getRowsNumber().
Referenced by rankSymmetricProduct().
|
inline |
compute the symmetric matrix This:=alpha. op(A).t(op(A))
References LAP_DoubleFullGeneralMatrix::getColumnsNumber(), LAP_DoubleFullGeneralMatrix::getLeadingDimension(), LAP_DoubleFullGeneralMatrix::getRowIncrement(), LAP_DoubleFullGeneralMatrix::getRowsNumber(), and rankSymmetricProduct().
|
virtual |
compute the symmetric matrix This:=beta.This+alpha op(A).t(op(A))
alpha | alpha value |
beta | beta value |
nARows | number of rows of full A matrix |
nACols | number of columns of full A matrix |
lda | memory distance between A(i,j) & A(i,j+1) |
isTransA | if (isTransA) op(A)=tA else op(A)=A |
A | values of full matrix A |
Implements LAP_DoubleSymmetricMatrix.
References LAP_DoubleBandedStorage::compile(), getBandedStorage(), setSize(), tLVectorIndex, and LAP_DoubleBandedStorage::updateBandsNumber().
|
inlineinherited |
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 |
|
inline |
set bands number
References getBandedStorage(), and LAP_DoubleBandedStorage::setBandsNumber().
|
inlinestaticinherited |
set output
|
inlinevirtual |
set the dimension of the matrix
Reimplemented from LAP_Matrix.
References getBandedStorage(), LAP_DoubleBandedStorage::getBandsNumber(), LAP_DoubleMatrix::getStorage(), LAP_DoubleBandedStorage::setBandsNumber(), LAP_Matrix::setSize(), LAP_DoubleMatrixStorage::setValuesNumber(), and tLVectorIndex.
Referenced by rankSymmetricProduct().
|
inlinevirtual |
set the dimension of the matrix
n | is the number of cols |
Reimplemented from LAP_Matrix.
References getBandedStorage(), LAP_DoubleBandedStorage::getBandsNumber(), LAP_DoubleMatrix::getStorage(), LAP_DoubleBandedStorage::setBandsNumber(), LAP_Matrix::setSize(), LAP_DoubleMatrixStorage::setValuesNumber(), and tLVectorIndex.
|
inlineinherited |
set the storage
Referenced by 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 set the pointer values of the matrix to values the size of the vector is mBandsNumber*nCols
Reimplemented from LAP_DoubleMatrix.
References ASSERT_IN, getBandsNumber(), LAP_DoubleMatrix::getStorage(), null, LAP_Matrix::setSize(), LAP_DoubleMatrixStorage::setValuesPointer(), and tLVectorIndex.
|
inlinevirtual |
set the values
Reimplemented from LAP_DoubleMatrix.
References getBandsNumber(), LAP_DoubleMatrix::getStorage(), LAP_Matrix::setSize(), LAP_DoubleMatrixStorage::setValues(), and tLVectorIndex.
|
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 getBandsNumber(), LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), LAP_Vector< T >::resetView(), LAP_Vector< T >::setSize(), and tLVectorIndex.
Referenced by norm2(), and sum().
|
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 getBandsNumber(), LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), sum(), tLVectorIndex, and tReal.
|
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 |
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.
|
inlineinherited |
return trace
References LAP_DoubleMatrix::getStorage(), and LAP_DoubleMatrixStorage::trace().
|
inlinevirtualinherited |
compute This. X
X | input vector |
References LAP_Vector< T >::get(), and LAP_DoubleVector::New().
Referenced by LAP_DoubleMatrix::vectorProduct(), LAP_DoublePackedSymmetricMatrix::vectorProduct(), vectorProduct(), LAP_DoubleFullSymmetricMatrix::vectorProduct(), and LAP_DoubleFullGeneralMatrix::vectorProduct().
|
inlinevirtualinherited |
compute Y= This. X
X | input vector |
Y | output vector |
Reimplemented in LAP_DoubleFullGeneralMatrix, and LAP_DoubleFullUpperMatrix.
References LAP_DoubleMatrix::vectorProduct().
|
inlinevirtualinherited |
rcompute Y= This X
X | input vector |
Y | output vector |
References null, and LAP_DoubleMatrix::vectorProduct().
|
inlinevirtualinherited |
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 LAP_DoubleMatrix::vectorProduct().
|
inlinevirtual |
compute Y=A.X
X | the input vector |
Y | : the output vector |
References LAP_DoubleMatrix::vectorProduct().
Referenced by vectorProduct().
|
inlinevirtual |
compute Y:=betaY+alpha.This.X
X | vector X of size number of cols of this |
alpha | value of alpha |
beta | : value of beta |
Y | : vector Y of size number of rows of this |
References LAP_Vector< T >::getIncrement(), LAP_Matrix::getRowsNumber(), LAP_Vector< T >::getSize(), LAP_Vector< T >::setSize(), tLVectorIndex, and vectorProduct().
|
pure virtualinherited |
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.
|
inlinevirtual |
compute Y:=betaY+alpha.This.X
X | vector X of size number of cols of this |
alpha | value of alpha |
beta | : value of beta |
Y | : vector Y of size number of rows of this |
References LAP_ConstVector< T >::getIncrement(), LAP_Vector< T >::getIncrement(), LAP_Matrix::getRowsNumber(), LAP_ConstVector< T >::getSize(), LAP_Vector< T >::getSize(), LAP_Vector< T >::setSize(), tLVectorIndex, and vectorProduct().
|
inlinevirtual |
compute Y= 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 |
References vectorProduct().
|
inlinevirtual |
compute Y= betaY + alpha. This. X
nX | size of X |
incX | increment of X (memory distance between X(i) & X(i+1) |
X | X values of minimum size nX*incX |
alpha | alpha value |
beta:beta | value |
nY | size of Y |
incY | increment of Y (memory distance between Y(i) & Y(i+1) |
Y | Y values of minimum size nY*incY |
References DoubleBandedSymmetricMatrixVectorProduct(), getBandsNumber(), LAP_Matrix::getRowsNumber(), and tLVectorIndex.
|
inlinestaticinherited |
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().