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_Vector< T > Class Template Referenceabstract

this class describes a vector of double More...

#include <LAP_Vector.h>

Inheritance diagram for LAP_Vector< T >:
Inheritance graph
[legend]
Collaboration diagram for LAP_Vector< T >:
Collaboration graph
[legend]

Public Member Functions

void getSharedPointer (boost::shared_ptr< LAP_Vector< T > > &p)
 return the shared pointer corresponding to the class with casting More...
 
void getSharedPointer (boost::shared_ptr< const LAP_Vector< T > > &p) const
 return the shared pointer corresponding to the class whith casting More...
 
const T & operator[] (const tLVectorIndex &i) const
 get the value for reading only More...
 
T & operator[] (const tLVectorIndex &i)
 get the value for reading & writing More...
 
T & operator() (const tLVectorIndex &i)
 get the value for reading & writing More...
 
const T & operator() (const tLVectorIndex &i) const
 get the value for reading only More...
 
void add (const T &s)
 add operator More...
 
void sub (const T &s)
 sub operator More...
 
void power (const T &s)
 power operator More...
 
void multiplyBy (const LAP_Vector< T > &s)
 multiplication element by element vector operator More...
 
LAP_Vector< T > & divideBy (const LAP_Vector< T > &s)
 division elementt by elementt vector operator More...
 
virtual void copy (const vector< T > &s)
 copy the vector More...
 
void setIsValuesReferenced (const tBoolean &isReferenced)
 deferenced the values the values is unreferenced : so it is not destroyed with this class is desctroyed More...
 
void setValues (const tLVectorIndex &n, T *&values, const tBoolean &isReferenced)
 
void setValues (const tLVectorIndex &n, const T *values)
 copy the values More...
 
void setValues (const tLVectorIndex &n, const tLVectorIncrement &incv, const T *values)
 copy the values More...
 
tBoolean setView (SP::LAP_View v)
 set the view More...
 
tBoolean setView (const tLVectorIndex &start, const tLVectorIndex &end, const tLVectorIndex &increment)
 set the view of the vector More...
 
void resetView ()
 set the view of the vector to all the values More...
 
void setSize (const tLVectorIndex &n)
 set the view to [0,n[ by 1 increment if values is too small, re-alocate it More...
 
void fit ()
 fit the vector More...
 
void init (const T &v)
 init the value to v from the view More...
 
void removeValues (const tLVectorIndex &index, const tLVectorIndex &n)
 remove n values of the array from index if values=[0,1,...,index,...index+n,index+n+,....,size[ the values {index,...index+n-1} are removed values becomes values=[0,...index-1,index+n,...,size-n[ More...
 
void set (const tLVectorIndex &i, const T &v)
 set element at index i taking into account the view More...
 
virtual void add (const tLVectorIndex &i, const T &v)
 add v to element at index i taking into account the view More...
 
void merge (const T &alpha, const LAP_Vector< T > &x, const T &beta, const LAP_Vector< T > &y)
 this is the merging of 2 vectors This = [alpha.x,beta.y] More...
 
virtual const T * getValues () const
 get the values for reading More...
 
virtual T * getValues ()
 get the values for writing More...
 
virtual tLVectorIndex getNullValuesNumber (const tReal &eps) const =0
 
virtual const T & get (const tLVectorIndex &i) const
 get element at index i taking into account the view More...
 
tLVectorIndex getSize () const
 get the size of the vector More...
 
tLVectorIndex getCapacity () const
 get the capacity More...
 
const tLVectorIncrementgetIncrement () const
 get the increment of the vector More...
 
const tLVectorIndexgetStart () const
 get the start of the vector More...
 
sum () const
 compute the sum of the elements More...
 
void max (LAP_Vector< T > &y)
 y=max(this,y); More...
 
maxValue (tLVectorIndex &i) const
 return the max value of the vector and the corresponding index More...
 
minValue (tLVectorIndex &i) const
 return the min value of the vector and the corresponding index More...
 
tLVectorIndex indexMin () const
 retun the index min of th evector More...
 
tReal distance2 (const LAP_Vector< T > &a) const
 compute the distance between this and a More...
 
void quickSort ()
 quit sort the vector in an increasing order More...
 
void sort (const tFlag &order)
 sort in order view untaken into account More...
 
void sort ()
 sort in ascent order view untaken into account More...
 
tBoolean compare (const T &a, const T &b, const tFlag &order)
 compare More...
 
void reverse ()
 reverse the vector More...
 
double & getNullValue ()
 get a null value More...
 
const double & getNullValue () const
 get a const null value More...
 
tBoolean isNullValue (const double &v) const
 return true if the value is a null More...
 
void getSharedPointer (SP::CORE_Object &p)
 get the shared pointer of this class into p More...
 
void getSharedPointer (SPC::CORE_Object &p) const
 get the shared pointer of this class into p More...
 
tString getClassName () const
 return the class name of the object More...
 
tString getIdentityString () const
 return the identity string of the object of the form className_at_address More...
 
tString getPointerAddress () const
 return the identity string of the object More...
 
template<class T >
tBoolean isInstanceOf () const
 return true if the object is an instance of T More...
 
virtual tString toString () const
 return the string representation of the object node More...
 
virtual void print ()
 print the class More...
 
virtual ostream & print (ostream &out) const
 print the class More...
 
virtual void print (const tString &message)
 print the class More...
 
virtual void print (const tInteger &str)
 print More...
 
virtual void print (const tRelativeInteger &str)
 print More...
 
virtual void print (const tReal &str)
 print More...
 
virtual void print (const int &str)
 print More...
 

Static Public Member Functions

static void max (const LAP_Vector< T > &x, LAP_Vector< T > &y)
 y=max(x,y); More...
 
static tReal distance2 (const LAP_Vector< T > &a, const LAP_Vector< T > &b)
 compute the distance between 2 vectors a & b 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 ASCENT =1
 
static const tFlag DESCENT =2
 
static double ZERO_EPSILON =1.e-18
 
static tBoolean mIsMemoryTesting =false
 indicator to store all classes created and deleted only for debuging version More...
 

Protected Member Functions

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

Detailed Description

template<class T>
class LAP_Vector< T >

this class describes a vector of double

this class describes a vector of size n & p capacity capacity is at least n+1

this class describes a vector of lapack_int

This class describes a vector

Constructor & Destructor Documentation

template<class T>
LAP_Vector< T >::LAP_Vector ( )
inlineprotected

build a vector

template<class T>
virtual LAP_Vector< T >::~LAP_Vector ( )
inlineprotectedvirtual

destroy a vector

Member Function Documentation

template<class T>
void LAP_Vector< T >::add ( const T &  s)
inline

add operator

Referenced by LAP_IntegerVector::add(), LAP_DoubleVector::add(), LAP_IntegerVector::operator+=(), and LAP_DoubleVector::operator+=().

Here is the caller graph for this function:

template<class T>
virtual void LAP_Vector< T >::add ( const tLVectorIndex i,
const T &  v 
)
inlinevirtual

add v to element at index i taking into account the view

Reimplemented in LAP_DoubleVector, and LAP_IntegerVector.

template<class T>
tBoolean LAP_Vector< T >::compare ( const T &  a,
const T &  b,
const tFlag order 
)
inline

compare

template<class T>
virtual void LAP_Vector< T >::copy ( const vector< T > &  s)
inlinevirtual

copy the vector

Reimplemented in LAP_DoubleVector.

Referenced by LAP_DoubleVector::copy(), LAP_IntegerVector::operator=(), and LAP_DoubleVector::operator=().

Here is the caller graph for this function:

template<class T>
tReal LAP_Vector< T >::distance2 ( const LAP_Vector< T > &  a) const
inline

compute the distance between this and a

Referenced by LAP_DoubleVector::distance2(), and LAP_Vector< lapack_int >::distance2().

Here is the caller graph for this function:

template<class T>
tReal LAP_Vector< T >::distance2 ( const LAP_Vector< T > &  a,
const LAP_Vector< T > &  b 
)
static

compute the distance between 2 vectors a & b

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

Here is the call graph for this function:

template<class T>
LAP_Vector<T>& LAP_Vector< T >::divideBy ( const LAP_Vector< T > &  s)
inline

division elementt by elementt vector operator

template<class T>
void LAP_Vector< T >::fit ( )
inline

fit the vector

template<class T>
virtual const T& LAP_Vector< T >::get ( const tLVectorIndex i) const
inlinevirtual

get element at index i taking into account the view

Referenced by LAP_DoubleMatrixStorage::getValues(), LAP_DoubleMatrixStorage::init(), and LAP_DoubleMatrix::vectorProduct().

Here is the caller graph for this function:

template<class T>
tLVectorIndex LAP_Vector< T >::getCapacity ( ) const
inline

get the capacity

static tString CORE_Object::getClassName ( const tString identityString)
inlinestaticinherited

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

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

Here is the caller graph for this function:

tString CORE_Object::getClassName ( ) const
inherited

return the class name of the object

Returns
the class name of the object

References tString.

Referenced by CORE_Object::getIdentityString().

Here is the caller graph for this function:

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:

template<class T>
const tLVectorIncrement& LAP_Vector< T >::getIncrement ( ) const
inline

get the increment of the vector

Referenced by LAP_Vector< lapack_int >::add(), LAP_IntegerVector::add(), LAP_DoubleVector::add(), LAP_DoublePackedUpperMatrix::computeEigenValues(), LAP_DoubleBandedUpperMatrix::computeEigenValues(), LAP_DoubleFullUpperMatrix::computeEigenValues(), LAP_IntegerVector::copy(), LAP_DoubleVector::copy(), LAP_ConstDoubleVector::distance2(), LAP_Vector< T >::distance2(), LAP_Vector< lapack_int >::divideBy(), LAP_DoublePackedSymmetricMatrix::dotProduct(), LAP_DoubleFullSymmetricMatrix::dotProduct(), LAP_Vector< lapack_int >::max(), LAP_Vector< T >::merge(), LAP_Vector< lapack_int >::multiplyBy(), LAP_Vector< lapack_int >::power(), LAP_ConstDoubleVector::product(), LAP_DoubleVector::product(), MMSD_DoubleSymmetricMatrix::product(), LAP_DoublePackedUpperMatrix::rankProduct(), LAP_DoubleBandedUpperMatrix::rankProduct(), LAP_DoubleFullUpperMatrix::rankProduct(), LAP_DoublePackedSymmetricMatrix::rankSymmetricProduct(), LAP_DoubleFullSymmetricMatrix::rankSymmetricProduct(), LAP_DoublePackedUpperMatrix::solve(), LAP_DoubleBandedUpperMatrix::solve(), LAP_DoubleFullUpperMatrix::solve(), LAP_Vector< lapack_int >::sub(), LAP_DoubleVector::swap(), LAP_DoublePackedUpperMatrix::vectorProduct(), LAP_DoublePackedSymmetricMatrix::vectorProduct(), LAP_DoubleMatrix::vectorProduct(), LAP_DoubleBandedSymmetricMatrix::vectorProduct(), LAP_DoubleBandedUpperMatrix::vectorProduct(), LAP_DoubleFullSymmetricMatrix::vectorProduct(), LAP_DoubleFullUpperMatrix::vectorProduct(), and LAP_DoubleFullGeneralMatrix::vectorProduct().

Here is the caller graph for this function:

double& LAP_Object::getNullValue ( )
inlineinherited
const double& LAP_Object::getNullValue ( ) const
inlineinherited

get a const null value

template<class T>
virtual tLVectorIndex LAP_Vector< T >::getNullValuesNumber ( const tReal eps) const
pure virtual
Returns
the numbe rof non null values

Implemented in LAP_DoubleVector, and LAP_IntegerVector.

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 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

template<class T>
void LAP_Vector< T >::getSharedPointer ( boost::shared_ptr< LAP_Vector< T > > &  p)
inline

return the shared pointer corresponding to the class with casting

template<class T>
void LAP_Vector< T >::getSharedPointer ( boost::shared_ptr< const LAP_Vector< T > > &  p) const
inline

return the shared pointer corresponding to the class whith casting

template<class T>
tLVectorIndex LAP_Vector< T >::getSize ( ) const
inline

get the size of the vector

Referenced by LAP_Vector< lapack_int >::add(), LAP_IntegerVector::add(), LAP_DoubleVector::add(), MMSD_Model::computeSampleClusterProbabilities(), LAP_IntegerVector::copy(), LAP_DoubleVector::copy(), LAP_ConstDoubleVector::distance2(), LAP_Vector< T >::distance2(), LAP_Vector< lapack_int >::divideBy(), LAP_DoublePackedSymmetricMatrix::dotProduct(), LAP_DoubleFullSymmetricMatrix::dotProduct(), MMSD_Law::isOutOfBounds(), LAP_Vector< lapack_int >::max(), LAP_Vector< T >::merge(), LAP_Vector< lapack_int >::multiplyBy(), LAP_Vector< lapack_int >::power(), LAP_ConstDoubleVector::product(), LAP_DoubleVector::product(), LAP_DoublePackedUpperMatrix::rankProduct(), LAP_DoubleBandedUpperMatrix::rankProduct(), LAP_DoubleFullUpperMatrix::rankProduct(), LAP_DoublePackedSymmetricMatrix::rankSymmetricProduct(), LAP_DoubleFullSymmetricMatrix::rankSymmetricProduct(), MMSD_Law::saveToUIClass(), MMSD_Cluster::saveToUIClass(), MMSD_Model::saveToUIClass(), LAP_Vector< lapack_int >::setSize(), LAP_DoublePackedUpperMatrix::solve(), LAP_DoubleBandedUpperMatrix::solve(), LAP_DoubleFullUpperMatrix::solve(), MMSD_Law::sort(), LAP_Vector< lapack_int >::sub(), LAP_DoubleVector::swap(), testGaussianLaw11N(), testGaussianLaw1PN(), testGaussianLaw2PN(), MMSD_ConstraintGaussianCluster::updateFreedomDegrees(), MMSD_GaussianCluster::updateFreedomDegrees(), MMSD_GaussianLaw::updateMean(), MMSD_Cluster::updateRate(), MMSD_GaussianCluster::updateWeights(), LAP_DoublePackedUpperMatrix::vectorProduct(), LAP_DoublePackedSymmetricMatrix::vectorProduct(), LAP_DoubleMatrix::vectorProduct(), LAP_DoubleBandedSymmetricMatrix::vectorProduct(), LAP_DoubleBandedUpperMatrix::vectorProduct(), LAP_DoubleFullSymmetricMatrix::vectorProduct(), LAP_DoubleFullUpperMatrix::vectorProduct(), and LAP_DoubleFullGeneralMatrix::vectorProduct().

Here is the caller graph for this function:

template<class T>
const tLVectorIndex& LAP_Vector< T >::getStart ( ) const
inline

get the start of the vector

Referenced by LAP_IntegerVector::add(), LAP_IntegerVector::copy(), LAP_ConstDoubleVector::distance2(), and LAP_Vector< T >::distance2().

Here is the caller graph for this function:

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

get type name

References tString.

template<class T>
virtual const T* LAP_Vector< T >::getValues ( ) const
inlinevirtual
template<class T>
virtual T* LAP_Vector< T >::getValues ( )
inlinevirtual

get the values for writing

template<class T >
tLVectorIndex LAP_Vector< T >::indexMin ( ) const

retun the index min of th evector

References tLVectorIncrement, and tLVectorIndex.

Referenced by LAP_DoublePackedStorage::indexMin().

Here is the caller graph for this function:

template<class T>
void LAP_Vector< T >::init ( const T &  v)
inline

init the value to v from the view

Referenced by LAP_DoubleMatrixStorage::init().

Here is the caller 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

template<class T>
static void LAP_Vector< T >::max ( const LAP_Vector< T > &  x,
LAP_Vector< T > &  y 
)
inlinestatic

y=max(x,y);

Referenced by LAP_Vector< lapack_int >::max().

Here is the caller graph for this function:

template<class T>
void LAP_Vector< T >::max ( LAP_Vector< T > &  y)
inline

y=max(this,y);

template<class T >
T LAP_Vector< T >::maxValue ( tLVectorIndex i) const

return the max value of the vector and the corresponding index

References tLVectorIncrement, and tLVectorIndex.

Referenced by LAP_DoubleVector::maxValue().

Here is the caller graph for this function:

template<class T>
void LAP_Vector< T >::merge ( const T &  alpha,
const LAP_Vector< T > &  x,
const T &  beta,
const LAP_Vector< T > &  y 
)

this is the merging of 2 vectors This = [alpha.x,beta.y]

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

Referenced by LAP_DoubleFullStorage::concat().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
T LAP_Vector< T >::minValue ( tLVectorIndex i) const

return the min value of the vector and the corresponding index

References tLVectorIncrement, and tLVectorIndex.

Referenced by LAP_DoubleVector::minValue().

Here is the caller graph for this function:

template<class T>
void LAP_Vector< T >::multiplyBy ( const LAP_Vector< T > &  s)
inline

multiplication element by element vector operator

template<class T>
T& LAP_Vector< T >::operator() ( const tLVectorIndex i)
inline

get the value for reading & writing

template<class T>
const T& LAP_Vector< T >::operator() ( const tLVectorIndex i) const
inline

get the value for reading only

template<class T>
const T& LAP_Vector< T >::operator[] ( const tLVectorIndex i) const
inline

get the value for reading only

template<class T>
T& LAP_Vector< T >::operator[] ( const tLVectorIndex i)
inline

get the value for reading & writing

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:

template<class T>
void LAP_Vector< T >::power ( const T &  s)
inline

power operator

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:

template<class T >
void LAP_Vector< T >::quickSort ( )

quit sort the vector in an increasing order

template<class T>
void LAP_Vector< T >::removeValues ( const tLVectorIndex index,
const tLVectorIndex n 
)
inline

remove n values of the array from index if values=[0,1,...,index,...index+n,index+n+,....,size[ the values {index,...index+n-1} are removed values becomes values=[0,...index-1,index+n,...,size-n[

Referenced by LAP_DoubleFullStorage::removeColumn().

Here is the caller graph for this function:

template<class T>
void LAP_Vector< T >::resetView ( )
inline
template<class T >
void LAP_Vector< T >::reverse ( )

reverse the vector

References tLVectorIncrement, and tLVectorIndex.

Referenced by MMSD_Law::initialize().

Here is the caller graph for this function:

template<class T>
void LAP_Vector< T >::set ( const tLVectorIndex i,
const T &  v 
)
inline

set element at index i taking into account the view

template<class T>
void LAP_Vector< T >::setIsValuesReferenced ( const tBoolean isReferenced)
inline

deferenced the values the values is unreferenced : so it is not destroyed with this class is desctroyed

static void CORE_Object::setOutput ( ostream &  out)
inlinestaticinherited

set output

template<class T>
void LAP_Vector< T >::setSize ( const tLVectorIndex n)
inline

set the view to [0,n[ by 1 increment if values is too small, re-alocate it

Parameters
nsize of the vector

Referenced by LAP_DoubleBandedSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleFullGeneralMatrix::computeEigenValueDecomposition(), LAP_DoublePackedSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleFullSymmetricMatrix::computeEigenValueDecomposition(), LAP_DoubleBandedSymmetricMatrix::computeEigenValues(), LAP_DoublePackedUpperMatrix::computeEigenValues(), LAP_DoubleBandedUpperMatrix::computeEigenValues(), LAP_DoubleFullUpperMatrix::computeEigenValues(), LAP_DoubleFullGeneralMatrix::computeEigenValues(), LAP_DoubleFullSymmetricMatrix::computeEigenValues(), LAP_DoublePackedSymmetricMatrix::computeEigenValues(), MMSD_Cluster::computeMultivariateDensity(), MMSD_Model::computeSampleClusterIndices(), MMSD_Model::computeSampleClusterProbabilities(), LAP_Vector< lapack_int >::copy(), MMSD_Model::esperanceEvaluation(), LAP_DoublePackedUpperMatrix::getColumn(), LAP_DoublePackedSymmetricMatrix::getColumn(), LAP_DoubleBandedUpperMatrix::getColumn(), LAP_DoubleFullSymmetricMatrix::getColumn(), LAP_DoubleFullUpperMatrix::getColumn(), LAP_DoubleFullGeneralMatrix::getColumn(), LAP_DoublePackedUpperMatrix::getRow(), LAP_DoublePackedSymmetricMatrix::getRow(), LAP_DoubleBandedUpperMatrix::getRow(), LAP_DoubleBandedSymmetricMatrix::getRow(), LAP_DoubleFullSymmetricMatrix::getRow(), LAP_DoubleFullUpperMatrix::getRow(), LAP_DoubleFullGeneralMatrix::getRow(), MMSD_Law::initialize(), MMSD_Cluster::initialize(), LAP_DoublePackedSymmetricMatrix::inverse(), LAP_DoubleFullSymmetricMatrix::inverse(), LAP_DoublePackedUpperMatrix::norm2(), LAP_DoublePackedSymmetricMatrix::norm2(), LAP_DoubleBandedUpperMatrix::norm2(), LAP_DoubleBandedSymmetricMatrix::norm2(), LAP_DoubleFullSymmetricMatrix::norm2(), LAP_DoubleFullUpperMatrix::norm2(), LAP_DoubleFullGeneralMatrix::norm2(), MMSD_Model::parametersOptimizationByEMMethod(), MMSD_DoubleSymmetricMatrix::product(), LAP_DoubleMatrixStorage::setValuesNumber(), LAP_DoublePackedUpperMatrix::sum(), LAP_DoublePackedSymmetricMatrix::sum(), LAP_DoubleBandedUpperMatrix::sum(), LAP_DoubleBandedSymmetricMatrix::sum(), LAP_DoubleFullSymmetricMatrix::sum(), LAP_DoubleFullUpperMatrix::sum(), LAP_DoubleFullGeneralMatrix::sum(), testStiefelFunction(), LAP_DoublePackedUpperMatrix::vectorProduct(), LAP_DoublePackedSymmetricMatrix::vectorProduct(), LAP_DoubleMatrix::vectorProduct(), LAP_DoubleBandedSymmetricMatrix::vectorProduct(), LAP_DoubleBandedUpperMatrix::vectorProduct(), LAP_DoubleFullSymmetricMatrix::vectorProduct(), LAP_DoubleFullUpperMatrix::vectorProduct(), and LAP_DoubleFullGeneralMatrix::vectorProduct().

Here is the caller graph for this function:

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:

template<class T>
void LAP_Vector< T >::setValues ( const tLVectorIndex n,
T *&  values,
const tBoolean isReferenced 
)
inline
template<class T>
void LAP_Vector< T >::setValues ( const tLVectorIndex n,
const T *  values 
)
inline

copy the values

Parameters
nthe size of the values array
valuesthe values array
template<class T>
void LAP_Vector< T >::setValues ( const tLVectorIndex n,
const tLVectorIncrement incv,
const T *  values 
)
inline

copy the values

Parameters
nthe viewed element number of the array
incvthe distance between values[i] and values[i+1]
valuesthe values array

note the the memory size of values array must be at least n*incv.

template<class T>
tBoolean LAP_Vector< T >::setView ( SP::LAP_View  v)
inline
template<class T>
tBoolean LAP_Vector< T >::setView ( const tLVectorIndex start,
const tLVectorIndex end,
const tLVectorIndex increment 
)
inline

set the view of the vector

Returns
false if the new size or end are greater than the capacity of the vector
template<class T >
void LAP_Vector< T >::sort ( const tFlag order)

sort in order view untaken into account

Sort the objects

References tLVectorIncrement, and tLVectorIndex.

template<class T>
void LAP_Vector< T >::sort ( )
inline

sort in ascent order view untaken into account

Referenced by LAP_Vector< lapack_int >::sort().

Here is the caller graph for this function:

template<class T>
void LAP_Vector< T >::sub ( const T &  s)
inline

sub operator

template<class T >
T LAP_Vector< T >::sum ( ) const

compute the sum of the elements

References tLVectorIncrement, and tLVectorIndex.

Referenced by LAP_DoubleVector::sum().

Here is the caller 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 CORE_Object::toString ( ) const
virtualinherited

return the string representation of the object node

Returns
the string representation of the object node

Reimplemented in MM_Attribute, MM_Structure, MMSD_DoubleSymmetricMatrix, CORE_Time, CORE_Vector< T >, CORE_Array< T >, CORE_Array< tString >, CORE_Array< int >, CORE_Array< tFlag >, MM_Class, MMSD_Model, LAP_DoubleMatrix, LAP_DoubleVector, CORE_Array2D< T >, MMSD_Cluster, MMSD_FluryGautschiGaussianLaw, CORE_Color, CORE_Matrix< T >, MMSD_DataSet, CORE_SharedPointersVMap< Key, Value >, CORE_SharedPointersVMap< tString, const CORE_Object >, CORE_SharedPointersVMap< tString, CORE_Object >, MATH_StiefelOptimizer, MMSD_Law, CORE_SharedPointersListVMap< Key, Value >, MATH_Equation, CORE_SharedPointersKVMap< Key, Value >, MATH_TranscendentEquation, MMSD_GaussianLaw, MMSD_GaussianCluster, MMSD_StiefelGaussianLaw, MATH_NewtonEquation, CORE_String, LAP_View, CORE_Integer, LAP_2DView, MMSD_StiefelFunction, CORE_Array3D< T >, MATH_CubicPolynom, MATH_QuadraticPolynom, MATH_ZeroEquation, MMSD_ConstraintGaussianCluster, CORE_Complex, CORE_Real, MATH_EigenFunction, and MATH_StiefelFunction.

References CORE_Object::getIdentityString().

Referenced by CORE_Object::print(), MM_ClassFactory::saveIntoFile(), CORE_SharedPointersKVMap< Key, Value >::toString(), CORE_SharedPointersListVMap< Key, Value >::toString(), MMSD_Law::toString(), CORE_SharedPointersVMap< Key, Value >::toString(), MMSD_Cluster::toString(), and MMSD_Model::toString().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

template<class T>
const tFlag LAP_Vector< T >::ASCENT =1
static
template<class T>
const tFlag LAP_Vector< T >::DESCENT =2
static
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().

double LAP_Object::ZERO_EPSILON =1.e-18
staticinherited

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