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

this class describes a packed upper 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 More...

#include <LAP_DoublePackedUpperMatrix.h>

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

Public Member Functions

 LAP_DoublePackedUpperMatrix ()
 build a matrix More...
 
 LAP_DoublePackedUpperMatrix (const LAP_DoublePackedUpperMatrix &mat)
 build a matrix for equality operator in construction More...
 
virtual ~LAP_DoublePackedUpperMatrix ()
 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_DoublePackedUpperMatrixoperator^= (const lapack_real &s)
 power by s the matrix v More...
 
LAP_DoublePackedUpperMatrixoperator*= (const lapack_real &s)
 multiply by s the matrix More...
 
LAP_DoublePackedUpperMatrixoperator/= (const lapack_real &s)
 divide by s the matrix v More...
 
LAP_DoublePackedUpperMatrixoperator+= (const lapack_real &s)
 add s to the upper matrix More...
 
LAP_DoublePackedUpperMatrixoperator-= (const lapack_real &s)
 sub s to the upper matrix More...
 
LAP_DoublePackedUpperMatrixoperator*= (const LAP_DoublePackedUpperMatrix &s)
 multiply the viewed matrices term by term More...
 
LAP_DoublePackedUpperMatrixoperator/= (const LAP_DoublePackedUpperMatrix &s)
 divide the viewed matrices term by term More...
 
LAP_DoublePackedUpperMatrixoperator-= (const LAP_DoublePackedUpperMatrix &s)
 sub the viewed matrix More...
 
LAP_DoublePackedUpperMatrixoperator+= (const LAP_DoublePackedUpperMatrix &s)
 add the viewed matrix More...
 
LAP_DoublePackedUpperMatrixoperator= (const double &s)
 init all the matrix to s More...
 
LAP_DoublePackedUpperMatrixoperator= (const LAP_DoubleMatrix &s)
 init all the matrix to s More...
 
virtual tBoolean copyLower (const LAP_DoubleFullGeneralMatrix &f)
 copy the transposed of the full 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...
 
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...
 
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 tBoolean &isTrans, LAP_DoubleVector &X) const
 compute X:=op(This).X More...
 
void vectorProduct (const tBoolean &isTrans, const double &alpha, LAP_DoubleVector &X) const
 
virtual void vectorProduct (const tBoolean &isTrans, const LAP_DoubleVector &X, LAP_DoubleVector &Y) const
 return Y=op(This).X More...
 
void vectorProduct (const tBoolean &isTrans, const LAP_DoubleVector &X, const lapack_real &alpha, const lapack_real &beta, LAP_DoubleVector &Y) const
 return Y=betaY+alpha.op(This).X More...
 
void vectorProduct (const tBoolean &isTrans, const LAP_ConstDoubleVector &X, const lapack_real &alpha, const lapack_real &beta, LAP_DoubleVector &Y) const
 return Y=betaY+alpha.op(This).X More...
 
void vectorProduct (const tBoolean &isTrans, const tLVectorIndex &nX, const tLVectorIncrement &incX, double *X) const
 compute X:=op(A). X More...
 
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
 compute Y= beta. Y + alpha. op(A). X More...
 
virtual void rankProduct (const tBoolean &isTransU, const LAP_DoubleVector &Diag, LAP_DoubleVector &X) const
 compute product $ X:=op(U)^t \cdot Diag \cdot op(U) \cdot X $ More...
 
virtual void rankProduct (const tBoolean &isTransU, LAP_DoubleVector &X) const
 compute product $ X:=op(U)^t \cdot op(U) \cdot X $ More...
 
virtual SP::LAP_DoubleMatrix matrixProduct (const LAP_DoubleMatrix &B) const
 general return C=(This) . B Create a general full matrix and return it More...
 
tBoolean matrixProduct (const LAP_DoubleMatrix &B, LAP_DoubleFullGeneralMatrix &C) const
 fill C such that C:=(This) . B More...
 
void matrixProduct (const LAP_DoubleFullGeneralMatrix &B, LAP_DoubleFullGeneralMatrix &C) const
 return C=(This) . B More...
 
void matrixProduct (const LAP_DoublePackedUpperMatrix &B, LAP_DoubleFullGeneralMatrix &C) const
 return C=(This) . B More...
 
void matrixProduct (const tBoolean &isLeft, const tBoolean &isTrans, const LAP_DoubleFullGeneralMatrix &B, const double &alpha, LAP_DoubleFullGeneralMatrix &C) const
 return C=alpha. op(This) . B or C=alpha B. op(this); More...
 
virtual void matrixProduct (const tBoolean &isLeft, const tBoolean &isTrans, const double &alpha, LAP_DoubleFullGeneralMatrix &A) const
 compute A:=alpha op(This).A or A:=alpha A. op(This) More...
 
virtual void matrixProduct (const tBoolean &isTrans, const double &alpha, LAP_DoubleFullGeneralMatrix &A) const
 compute A:=alpha op(This).A or A:=alpha A. op(This) More...
 
virtual tBoolean computeEigenValues (LAP_DoubleVector &U) const
 compute the eigen values of This More...
 
virtual void solve (const tBoolean &isTrans, LAP_DoubleVector &B) const
 solve: More...
 
virtual void solve (const tBoolean &isTrans, const tLVectorIndex &nB, const tLVectorIncrement &incB, double *B) const
 solve: More...
 
virtual tBoolean solve (const tBoolean &isTrans, LAP_DoubleFullGeneralMatrix &X) const
 solve: More...
 
tBoolean inverse ()
 inverse the matrix 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...
 
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...
 
const double & operator[] (const tLVectorIndex &index) const
 get the element at index More...
 
double & operator[] (const tLVectorIndex &index)
 get the element at index More...
 
virtual tBoolean copy (const LAP_DoubleMatrix &x)
 copy a matrix More...
 
tBoolean copy (SPC::LAP_DoubleMatrix x)
 copy a matrix More...
 
tBoolean copy (LAP_DoubleMatrix *x)
 copy a matrix More...
 
virtual tBoolean copy (const LAP_Matrix &matrix)
 copy operator More...
 
void init (const double v)
 init the values to v More...
 
void set (const tLVectorIndex &i, const tLVectorIndex &j, const double &v)
 set the value of the element at row i and column j More...
 
void add (const tLVectorIndex &i, const tLVectorIndex &j, const double &v)
 add v to the view term (i,j) of the matrix More...
 
void setStorage (SP::LAP_DoubleMatrixStorage s)
 set the storage More...
 
double get (const tLVectorIndex &i, const tLVectorIndex &j) const
 get the value taking into account the view More...
 
LAP_DoubleMatrixStoragegetStorage ()
 set the storage More...
 
const LAP_DoubleMatrixStoragegetStorage () const
 set the storage More...
 
double trace () const
 return trace More...
 
void addDiagonal (const double &alpha)
 This +=alpha.I. More...
 
pair< tLVectorIndex,
tLVectorIndex
computeBandsNumber () const
 
double getFillRate () const
 get the fill rate of the matrix More...
 
tLVectorIndex getNullValuesNumber () const
 get the number of null values More...
 
tLVectorIndex getValuesNumber () const
 get the number of values More...
 
virtual tString toString () const
 print the matrix taking into account the view More...
 
const tLVectorIndexgetSize (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_DoublePackedUpperMatrix 
New ()
 
static
SP::LAP_DoublePackedUpperMatrix 
New (const tLVectorIndex &n)
 
static void matrixProduct (const tBoolean &isLeft, const tBoolean &isTransA, const LAP_DoublePackedUpperMatrix &A, const lapack_real &alpha, LAP_DoubleFullGeneralMatrix &B)
 make the product B := alpha. op(A).B or B:= alpha. B . op(A) More...
 
static tBoolean computeEigenValues (const LAP_DoublePackedUpperMatrix &A, LAP_DoubleVector &U)
 compute the eigen values of A and A is destroyed after method More...
 
static tBoolean solve (const tBoolean &isTransA, const LAP_DoublePackedUpperMatrix &A, LAP_DoubleFullGeneralMatrix &B)
 solve: More...
 
static tBoolean inverse (LAP_DoublePackedUpperMatrix &A)
 inverse a symmetric matrix dsytrf & dsytri lapack methods called 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...
 

Detailed Description

this class describes a packed upper 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

Constructor & Destructor Documentation

LAP_DoublePackedUpperMatrix::LAP_DoublePackedUpperMatrix ( )

build a matrix

References LAP_DoublePackedStorage::New(), and LAP_DoubleMatrix::setStorage().

Referenced by New().

Here is the call graph for this function:

Here is the caller graph for this function:

LAP_DoublePackedUpperMatrix::LAP_DoublePackedUpperMatrix ( const LAP_DoublePackedUpperMatrix mat)

build a matrix for equality operator in construction

References LAP_DoubleMatrix::copy(), LAP_DoublePackedStorage::New(), and LAP_DoubleMatrix::setStorage().

Here is the call graph for this function:

LAP_DoublePackedUpperMatrix::~LAP_DoublePackedUpperMatrix ( )
virtual

destroy a matrix

Member Function Documentation

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

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

Parameters
i: row of the element
jcolumn of the element
vvalue to add
void LAP_DoubleMatrix::addDiagonal ( const double &  alpha)
inlineinherited

This +=alpha.I.

Referenced by MATH_StiefelOptimizer::minimize().

Here is the caller graph for this function:

pair<tLVectorIndex,tLVectorIndex> LAP_DoubleMatrix::computeBandsNumber ( ) const
inlineinherited
static tBoolean LAP_DoublePackedUpperMatrix::computeEigenValues ( const LAP_DoublePackedUpperMatrix A,
LAP_DoubleVector U 
)
inlinestatic

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

References LAP_Vector< T >::getIncrement(), LAP_Matrix::getRowsNumber(), LAP_Vector< T >::setSize(), tLVectorIncrement, and tLVectorIndex.

Referenced by computeEigenValues().

Here is the call graph for this function:

Here is the caller graph for this function:

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

compute the eigen values of This

Implements LAP_DoubleUpperMatrix.

References computeEigenValues().

Here is the call graph for this function:

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

copy operator

Parameters
mmatrix to copy
Returns
false if the allocation failed

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

Referenced by LAP_DoubleMatrix::copy().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean LAP_DoubleMatrix::copy ( const LAP_DoubleMatrix x)
virtualinherited

copy a matrix

Parameters
xthe matrix to copy

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

Referenced by LAP_DoubleBandedSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleFullUpperMatrix::computeEigenValueDecomposition(), LAP_DoubleFullGeneralMatrix::computeEigenValueDecomposition(), LAP_DoublePackedSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleFullSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleMatrix::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(), 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=(), operator=(), and LAP_DoubleFullGeneralMatrix::solve().

Here is the call graph for this function:

Here is the caller graph for this function:

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

copy a matrix

Parameters
xthe matrix to copy

References LAP_DoubleMatrix::copy(), and null.

Here is the call graph for this function:

tBoolean LAP_DoubleMatrix::copy ( LAP_DoubleMatrix x)
inlineinherited

copy a matrix

Parameters
xthe matrix to copy

References LAP_DoubleMatrix::copy(), and null.

Here is the call graph for this function:

tBoolean LAP_DoublePackedUpperMatrix::copyLower ( const LAP_DoubleFullGeneralMatrix f)
virtual

copy the transposed of the full matrix

Parameters
fthe full matrix to copy the mower part in the upper part of This by transposition
Returns
false if the matrix allocation needs too much memory

Implements LAP_DoubleUpperMatrix.

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

Here is the call graph for this function:

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

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

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

Here is the caller graph for this function:

tString CORE_Object::getClassName ( ) const
inherited

return the class name of the object

Returns
the class name of the object

References tString.

Referenced by CORE_Object::getIdentityString().

Here is the caller graph for this function:

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

get the j-th column of this symmetric matrix in a vector

Implements LAP_DoubleMatrix.

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

Referenced by getColumn().

Here is the call graph for this function:

Here is the caller graph for this function:

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

get the j-th column of this symmetric matrix in a vector

Reimplemented from LAP_DoubleMatrix.

References ASSERT_IN, getColumn(), and null.

Here is the call graph for this function:

virtual tLVectorIndex LAP_Matrix::getColumnsNumber ( ) const
inlinevirtualinherited
double LAP_DoubleMatrix::getFillRate ( ) const
inlineinherited

get the fill rate of the matrix

tString CORE_Object::getIdentityString ( ) const
inlineinherited

return the identity string of the object of the form className_at_address

Returns
the identity string of the object

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

double& LAP_Object::getNullValue ( )
inlineinherited

get a null value

Referenced by LAP_DoubleBandedStorage::operator()(), LAP_DoubleBandedUpperMatrix::operator()(), operator()(), and LAP_DoubleFullUpperMatrix::operator()().

Here is the caller graph for this function:

const double& LAP_Object::getNullValue ( ) const
inlineinherited

get a const null value

tLVectorIndex LAP_DoubleMatrix::getNullValuesNumber ( ) const
inlineinherited

get the number of null values

static ostream& CORE_Object::getOutput ( )
inlinestaticinherited

get output

tString CORE_Object::getPointerAddress ( ) const
inlineinherited

return the identity string of the object

Returns
the identity string of the object

References CORE_Object::pointer2String().

Here is the call graph for this function:

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

get the i-th row in a vector

Implements LAP_DoubleMatrix.

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

Referenced by getRow().

Here is the call graph for this function:

Here is the caller graph for this function:

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

get the i-th row in a vector

Reimplemented from LAP_DoubleMatrix.

References ASSERT_IN, getRow(), and null.

Here is the call graph for this function:

virtual tLVectorIndex LAP_Matrix::getRowsNumber ( ) const
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(), computeEigenValues(), LAP_DoubleBandedUpperMatrix::computeEigenValues(), LAP_DoublePackedSymmetricMatrix::computeEigenValues(), getColumn(), LAP_DoublePackedSymmetricMatrix::getColumn(), LAP_DoubleBandedUpperMatrix::getColumn(), getRow(), LAP_DoublePackedSymmetricMatrix::getRow(), LAP_DoubleBandedUpperMatrix::getRow(), LAP_DoubleBandedSymmetricMatrix::getRow(), inverse(), LAP_DoublePackedSymmetricMatrix::inverse(), LAP_DoubleBandedSymmetricMatrix::matrixProduct(), matrixProduct(), LAP_DoubleBandedUpperMatrix::matrixProduct(), LAP_DoublePackedSymmetricMatrix::matrixProduct(), norm2(), LAP_DoublePackedSymmetricMatrix::norm2(), LAP_DoubleBandedUpperMatrix::norm2(), LAP_DoubleBandedSymmetricMatrix::norm2(), MMSD_IntegerFullMatrix::operator()(), MMSD_IntegerFullMatrix::randomizeColumns(), rankProduct(), LAP_DoubleBandedUpperMatrix::rankProduct(), LAP_DoublePackedSymmetricMatrix::rankSymmetricProduct(), solve(), LAP_DoubleBandedUpperMatrix::solve(), sum(), LAP_DoublePackedSymmetricMatrix::sum(), LAP_DoubleBandedUpperMatrix::sum(), LAP_DoubleBandedSymmetricMatrix::sum(), LAP_DoubleMatrix::toString(), LAP_DoublePackedSymmetricMatrix::vectorProduct(), LAP_DoubleMatrix::vectorProduct(), LAP_DoubleBandedSymmetricMatrix::vectorProduct(), vectorProduct(), and LAP_DoubleBandedUpperMatrix::vectorProduct().

Here is the call graph for this function:

Here is the caller graph for this function:

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

get the shared pointer of this class into p

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

set the storage

References null.

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

get type name

References tString.

tLVectorIndex LAP_DoubleMatrix::getValuesNumber ( ) const
inlineinherited

get the number of values

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

Here is the caller graph for this function:

void LAP_DoubleMatrix::init ( const double  v)
inlineinherited

init the values to v

Parameters
vinit value

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

Referenced by MMSD_DoubleFullMatrix::operator=().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean LAP_DoublePackedUpperMatrix::inverse ( )
inline

inverse the matrix

Returns
true if succeeds
static tBoolean LAP_DoublePackedUpperMatrix::inverse ( LAP_DoublePackedUpperMatrix A)
inlinestatic

inverse a symmetric matrix dsytrf & dsytri lapack methods called

References DoublePackedUpperMatrixInverse(), and LAP_Matrix::getRowsNumber().

Here is the call graph for this function:

static tBoolean CORE_Object::is32Architecture ( )
inlinestaticinherited

return true if the machine is a 32 bits machine

References CORE_Object::is64Architecture().

Here is the call graph for this function:

tBoolean CORE_Object::is64Architecture ( )
staticinherited

return true if the machine is a 64 bits machine

Referenced by CORE_Object::is32Architecture().

Here is the caller graph for this function:

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

return true if the object is an instance of T

References null.

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

return true if the value is a null

virtual tBoolean LAP_DoubleUpperMatrix::isSymmetric ( ) const
inlinevirtualinherited

return true if the matrix is symmetric

Implements LAP_DoubleMatrix.

virtual tBoolean LAP_DoubleUpperMatrix::isUpper ( ) const
inlinevirtualinherited

return true if the matrix is upper

Implements LAP_DoubleMatrix.

SP::LAP_DoubleMatrix LAP_DoublePackedUpperMatrix::matrixProduct ( const LAP_DoubleMatrix B) const
virtual

general return C=(This) . B Create a general full matrix and return it

Parameters
Bthe double matrix

Implements LAP_DoubleMatrix.

References LAP_DoubleMatrix::get(), CORE_Object::getClassName(), and LAP_DoubleFullGeneralMatrix::New().

Referenced by matrixProduct().

Here is the call graph for this function:

Here is the caller graph for this function:

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

fill C such that C:=(This) . B

Parameters
Bthe general double matrix
Cthe output matrix
Returns
false if B is not a general full matrix

References matrixProduct(), and null.

Here is the call graph for this function:

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

return C=(This) . B

Parameters
Bthe general full matrix
Cthe output matrix

References matrixProduct().

Here is the call graph for this function:

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

return C=(This) . B

Parameters
Bthe full upper matric

References LAP_DoubleMatrix::copy(), and matrixProduct().

Here is the call graph for this function:

void LAP_DoublePackedUpperMatrix::matrixProduct ( const tBoolean isLeft,
const tBoolean isTrans,
const LAP_DoubleFullGeneralMatrix B,
const double &  alpha,
LAP_DoubleFullGeneralMatrix C 
) const

return C=alpha. op(This) . B or C=alpha B. op(this);

Parameters
isLeftif (isLeft) compute C:=alpha op(This).B else compute C:=alpha B. op(this)
isTransif (isTransA) op(A)=tA else op(A)=A
alphaalpha value
Bthe inout matrix
C: the IN/OUT full matrix

C=B C:=alpha. op(This) . C or C:=alpha. C. op(This) depening on isLeft value

References LAP_DoubleMatrix::copy(), and matrixProduct().

Here is the call graph for this function:

virtual void LAP_DoublePackedUpperMatrix::matrixProduct ( const tBoolean isLeft,
const tBoolean isTrans,
const double &  alpha,
LAP_DoubleFullGeneralMatrix A 
) const
inlinevirtual

compute A:=alpha op(This).A or A:=alpha A. op(This)

Parameters
isLeftif (isLeft) compute A:=alpha op(This).A else compute A:=alpha A. op(this)
isTransif (isTrans) op(A)=tA else op(A)=A
alphaalpha value
Athe A matrix

Implements LAP_DoubleUpperMatrix.

References matrixProduct().

Here is the call graph for this function:

virtual void LAP_DoublePackedUpperMatrix::matrixProduct ( const tBoolean isTrans,
const double &  alpha,
LAP_DoubleFullGeneralMatrix A 
) const
inlinevirtual

compute A:=alpha op(This).A or A:=alpha A. op(This)

Parameters
isLeftif (isLeft) compute A:=alpha op(This).A else compute A:=alpha A. op(this)
isTransif (isTrans) op(A)=tA else op(A)=A
alphaalpha value
Athe A matrix

References matrixProduct().

Here is the call graph for this function:

void LAP_DoublePackedUpperMatrix::matrixProduct ( const tBoolean isLeft,
const tBoolean isTransA,
const LAP_DoublePackedUpperMatrix A,
const lapack_real alpha,
LAP_DoubleFullGeneralMatrix B 
)
static

make the product B := alpha. op(A).B or B:= alpha. B . op(A)

Parameters
isLeftif (isLeft) compute B:=alpha op(A).B else compute B:=alpha B. op(A)
isTransAif (isTransA) op(A)=tA else op(A)=A
alphaalpha value
Athe upper matrix
B: the IN/OUT full matrix

References DoublePackedUpperMatrixMatrixProduct(), LAP_Matrix::getColumnsNumber(), LAP_DoubleFullGeneralMatrix::getColumnsNumber(), LAP_DoubleFullGeneralMatrix::getLeadingDimension(), LAP_DoubleFullGeneralMatrix::getRowIncrement(), LAP_Matrix::getRowsNumber(), LAP_DoubleFullGeneralMatrix::getRowsNumber(), tLVectorIncrement, and tLVectorIndex.

Here is the call graph for this function:

static SP::LAP_DoublePackedUpperMatrix LAP_DoublePackedUpperMatrix::New ( )
inlinestatic

References LAP_DoublePackedUpperMatrix().

Referenced by New(), and NewInstance().

Here is the call graph for this function:

Here is the caller graph for this function:

static SP::LAP_DoublePackedUpperMatrix LAP_DoublePackedUpperMatrix::New ( const tLVectorIndex n)
inlinestatic

References New().

Here is the call graph for this function:

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

create a New instance of this

Implements LAP_DoubleMatrix.

References New().

Here is the call graph for this function:

tReal LAP_DoublePackedUpperMatrix::norm2 ( ) const
virtual

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

Implements LAP_DoubleMatrix.

References LAP_Matrix::getRowsNumber(), sum(), and tLVectorIndex.

Here is the call graph for this function:

tReal LAP_DoublePackedUpperMatrix::norm2 ( LAP_DoubleVector v) const
virtual

return norm2 of the matrix and for each row;

Implements LAP_DoubleMatrix.

References LAP_Matrix::getRowsNumber(), LAP_Vector< T >::resetView(), LAP_Vector< T >::setSize(), sum(), and tLVectorIndex.

Here is the call graph for this function:

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

accessor of element at row i and column j taking into account the view only use the upper diagonal

Implements LAP_DoubleMatrix.

References LAP_Object::getNullValue().

Here is the call graph for this function:

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

accessor of element at row i and column j taking into account the view only use the upper diagonal

Implements LAP_DoubleMatrix.

References LAP_Object::getNullValue().

Here is the call graph for this function:

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

multiply by s the matrix

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

multiply the viewed matrices term by term

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

add s to the upper matrix

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

add the viewed matrix

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

sub s to the upper matrix

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

sub the viewed matrix

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

divide by s the matrix v

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

divide the viewed matrices term by term

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

init all the matrix to s

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

Here is the call graph for this function:

LAP_DoublePackedUpperMatrix& LAP_DoublePackedUpperMatrix::operator= ( const LAP_DoubleMatrix s)
inline

init all the matrix to s

References LAP_DoubleMatrix::copy().

Here is the call graph for this function:

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

get the element at index

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

References LAP_DoubleMatrix::getStorage().

Here is the call graph for this function:

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

get the element at index

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

References LAP_DoubleMatrix::getStorage().

Here is the call graph for this function:

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

power by s the matrix v

void CORE_Object::outputPrint ( const tString message)
staticinherited

print on output

References null, and CORE_Object::print().

Referenced by CORE_Exception::CORE_Exception().

Here is the call graph for this function:

Here is the caller graph for this function:

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

return the string represantation of a pointer

References tString.

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

Here is the caller graph for this function:

virtual void CORE_Object::print ( )
inlinevirtualinherited

print the class

References CORE_Object::toString().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

print the class

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

Here is the call graph for this function:

void CORE_Object::print ( const tString message)
virtualinherited

print the class

Reimplemented in CORE_Out.

References null, and CORE_Object::print().

Here is the call graph for this function:

void CORE_Object::print ( const tInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tRelativeInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tReal str)
virtualinherited

print

References null.

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

print

References null.

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

print the class

void CORE_Object::printObjectsInMemory ( )
staticinherited

print object in memory

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

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LAP_DoublePackedUpperMatrix::rankProduct ( const tBoolean isTransU,
const LAP_DoubleVector Diag,
LAP_DoubleVector X 
) const
inlinevirtual

compute product $ X:=op(U)^t \cdot Diag \cdot op(U) \cdot X $

Parameters
isTransU: defines the operator $ op(U)=U^t $ if isTrans is true.
Diagdiagonal vector of the same size as This
X: input/output vector

Implements LAP_DoubleUpperMatrix.

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

Here is the call graph for this function:

virtual void LAP_DoublePackedUpperMatrix::rankProduct ( const tBoolean isTransU,
LAP_DoubleVector X 
) const
inlinevirtual

compute product $ X:=op(U)^t \cdot op(U) \cdot X $

Parameters
isTransU: defines the operator $ op(U)=U^t $ if isTrans is true.
Xinput/output vector

Implements LAP_DoubleUpperMatrix.

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

Here is the call graph for this function:

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

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

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

set output

virtual void LAP_DoublePackedUpperMatrix::setSize ( const tLVectorIndex nRows,
const tLVectorIndex nCols 
)
inlinevirtual

set the dimension of the matrix

Reimplemented from LAP_Matrix.

References LAP_DoubleMatrix::getStorage(), LAP_Matrix::setSize(), LAP_DoubleMatrixStorage::setValuesNumber(), and tLVectorIndex.

Referenced by copyLower().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LAP_DoublePackedUpperMatrix::setSize ( const tLVectorIndex n)
inlinevirtual

set the dimension of the matrix

Parameters
nis the number of cols

Reimplemented from LAP_Matrix.

References LAP_DoubleMatrix::getStorage(), LAP_Matrix::setSize(), LAP_DoubleMatrixStorage::setValuesNumber(), and tLVectorIndex.

Here is the call graph for this function:

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

set this weak shared pointer called toDoAfterThis setting method

References CORE_Object::toDoAfterThisSetting().

Here is the call graph for this function:

virtual void CORE_Object::setType ( tString  type)
inlineprotectedvirtualinherited

set the type of the object

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

Here is the caller graph for this function:

virtual void LAP_DoublePackedUpperMatrix::setValues ( SP::LAP_DoubleVector  values)
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, LAP_DoubleMatrix::getStorage(), null, LAP_Matrix::setSize(), LAP_DoubleMatrixStorage::setValuesPointer(), and tLVectorIndex.

Here is the call graph for this function:

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

set the values

Reimplemented from LAP_DoubleMatrix.

References LAP_DoubleMatrix::getStorage(), LAP_Matrix::setSize(), LAP_DoubleMatrixStorage::setValues(), and tLVectorIndex.

Here is the call graph for this function:

virtual void LAP_DoublePackedUpperMatrix::solve ( const tBoolean isTrans,
LAP_DoubleVector B 
) const
inlinevirtual

solve:

  • op(U).X=B and B:=X
  • U is this upper pack matrix
    Parameters
    isTransop(A)=A (isTrans=false) op(A)=tA (isTrans=true)
    Xis a vector of size nRows B contains X at exit

References LAP_Vector< T >::getIncrement(), LAP_Vector< T >::getSize(), and tLVectorIndex.

Referenced by solve().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void LAP_DoublePackedUpperMatrix::solve ( const tBoolean isTrans,
const tLVectorIndex nB,
const tLVectorIncrement incB,
double *  B 
) const
inlinevirtual

solve:

  • op(U).X=B and B:=X
  • U is this upper pack matrix
    Parameters
    isTransop(A)=A (isTrans=false) op(A)=tA (isTrans=true)
    nBsize of B
    incBmemory distance between B[i] & B[i+1]
    Bvalues of B B contains X at exit

Implements LAP_DoubleUpperMatrix.

References DoublePackedUpperMatrixVectorSolve(), LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), and tLVectorIndex.

Here is the call graph for this function:

virtual tBoolean LAP_DoublePackedUpperMatrix::solve ( const tBoolean isTrans,
LAP_DoubleFullGeneralMatrix X 
) const
inlinevirtual

solve:

  • op(U).X=B && B:=X
  • U is this
    Parameters
    isTransop(A)=A (isTrans=false) op(A)=tA (isTrans=true)
    Bis a full matrix of size nxm B contains X at exit

Implements LAP_DoubleUpperMatrix.

References solve().

Here is the call graph for this function:

static tBoolean LAP_DoublePackedUpperMatrix::solve ( const tBoolean isTransA,
const LAP_DoublePackedUpperMatrix A,
LAP_DoubleFullGeneralMatrix B 
)
inlinestatic

solve:

  • op(A).X=B && B:=X
  • A is this
    Parameters
    isTransAop(A)=A (isTrans=false) op(A)=tA (isTrans=true)
    Athe packed upper matrix
    Bis a full matrix of size nxm B contains X at exit

References DoublePackedUpperMatrixSolve(), LAP_DoubleFullGeneralMatrix::getColumnsNumber(), LAP_DoubleFullGeneralMatrix::getLeadingDimension(), LAP_Matrix::getRowsNumber(), LAP_DoubleFullGeneralMatrix::getRowsNumber(), and tLVectorIndex.

Here is the call graph for this function:

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

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

Implements LAP_DoubleMatrix.

References LAP_Matrix::COL, LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), null, LAP_Vector< T >::setSize(), and tLVectorIndex.

Referenced by norm2(), and sum().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Implements LAP_DoubleMatrix.

References LAP_Matrix::COL, LAP_Matrix::getRowsNumber(), LAP_Matrix::ROW, sum(), and tLVectorIndex.

Here is the call graph for this function:

virtual void CORE_Object::toDoAfterThisSetting ( )
inlineprotectedvirtualinherited

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

Reimplemented in STAT_UniformLaplaceTransform.

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

Here is the caller graph for this function:

tString LAP_DoubleMatrix::toString ( ) const
virtualinherited

print the matrix taking into account the view

Reimplemented from CORE_Object.

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

Here is the call graph for this function:

double LAP_DoubleMatrix::trace ( ) const
inlineinherited

return trace

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

Here is the call graph for this function:

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

compute This. X

Parameters
Xinput vector
Returns
This.X

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

compute Y= This. X

Parameters
Xinput vector
Youtput vector

Reimplemented in LAP_DoubleFullGeneralMatrix, and LAP_DoubleFullUpperMatrix.

References LAP_DoubleMatrix::vectorProduct().

Here is the call graph for this function:

virtual void LAP_DoublePackedUpperMatrix::vectorProduct ( const tBoolean isTrans,
LAP_DoubleVector X 
) const
inlinevirtual

compute X:=op(This).X

Parameters
isTrans: if (isTrans) op(A)=A else op(A)=tA
XIn/Output vector X

Implements LAP_DoubleUpperMatrix.

Referenced by vectorProduct().

Here is the caller graph for this function:

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

rcompute Y= This X

Parameters
Xinput vector
Youtput vector

References null, and LAP_DoubleMatrix::vectorProduct().

Here is the call graph for this function:

void LAP_DoublePackedUpperMatrix::vectorProduct ( const tBoolean isTrans,
const double &  alpha,
LAP_DoubleVector X 
) const
inline
virtual void LAP_DoublePackedUpperMatrix::vectorProduct ( const tBoolean isTrans,
const LAP_DoubleVector X,
LAP_DoubleVector Y 
) const
inlinevirtual

return Y=op(This).X

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

Reimplemented from LAP_DoubleMatrix.

References vectorProduct().

Here is the call graph for this function:

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

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

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

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

Here is the call graph for this function:

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

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

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

References LAP_Matrix::getColumnsNumber(), 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().

Here is the call graph for this function:

void LAP_DoublePackedUpperMatrix::vectorProduct ( const tBoolean isTrans,
const tLVectorIndex nX,
const tLVectorIncrement incX,
double *  X 
) const
inlinevirtual

compute X:=op(A). X

Parameters
isTransif (isTrans) op(A)=tA else op(A)=A;
nXsize of X
incXincrement of X (memory distance between X(i) & X(i+1)
XX values of minimum size nX*incX

Implements LAP_DoubleUpperMatrix.

References DoublePackedUpperMatrixVectorProduct(), LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), and tLVectorIndex.

Here is the call graph for this function:

void LAP_DoublePackedUpperMatrix::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
virtual

compute Y= beta. Y + alpha. op(A). X

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

Implements LAP_DoubleMatrix.

References LAP_Matrix::getColumnsNumber(), LAP_Matrix::getRowsNumber(), null, and tLVectorIndex.

Here is the call graph for this function:

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

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

Parameters
freal value
nexponent relative value

return $ \displaystyle f^n $

Member Data Documentation

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

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

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

const tFlag LAP_Matrix::ROW =0
staticinherited
double LAP_Object::ZERO_EPSILON =1.e-18
staticinherited

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