Version: 6.3.1

ParaMEDMEM::DataArrayDouble Class Reference

Inheritance diagram for ParaMEDMEM::DataArrayDouble:
Collaboration diagram for ParaMEDMEM::DataArrayDouble:

List of all members.

Public Member Functions

bool isAllocated () const
void checkAllocated () const throw (INTERP_KERNEL::Exception)
DataArrayDoubledeepCpy () const
DataArrayDoubleperformCpy (bool deepCpy) const
void cpyFrom (const DataArrayDouble &other) throw (INTERP_KERNEL::Exception)
void alloc (int nbOfTuple, int nbOfCompo)
void allocIfNecessary (int nbOfTuple, int nbOfCompo)
void fillWithZero () throw (INTERP_KERNEL::Exception)
void fillWithValue (double val) throw (INTERP_KERNEL::Exception)
void iota (double init=0.) throw (INTERP_KERNEL::Exception)
bool isUniform (double val, double eps) const
void sort () throw (INTERP_KERNEL::Exception)
void checkMonotonic (double eps) const throw (INTERP_KERNEL::Exception)
bool isMonotonic (double eps) const throw (INTERP_KERNEL::Exception)
std::string repr () const
std::string reprZip () const
void reprStream (std::ostream &stream) const
void reprZipStream (std::ostream &stream) const
void reprWithoutNameStream (std::ostream &stream) const
void reprZipWithoutNameStream (std::ostream &stream) const
bool isEqual (const DataArrayDouble &other, double prec) const
bool isEqualWithoutConsideringStr (const DataArrayDouble &other, double prec) const
void reAlloc (int nbOfTuples) throw (INTERP_KERNEL::Exception)
DataArrayIntconvertToIntArr () const
DataArrayDoublefromNoInterlace () const throw (INTERP_KERNEL::Exception)
DataArrayDoubletoNoInterlace () const throw (INTERP_KERNEL::Exception)
void renumberInPlace (const int *old2New)
void renumberInPlaceR (const int *new2Old)
DataArrayDoublerenumber (const int *old2New) const
DataArrayDoublerenumberR (const int *new2Old) const
DataArrayDoublerenumberAndReduce (const int *old2New, int newNbOfTuple) const
DataArrayDoubleselectByTupleId (const int *new2OldBg, const int *new2OldEnd) const
DataArrayDoubleselectByTupleIdSafe (const int *new2OldBg, const int *new2OldEnd) const throw (INTERP_KERNEL::Exception)
DataArrayDoubleselectByTupleId2 (int bg, int end, int step) const throw (INTERP_KERNEL::Exception)
DataArrayDoublesubstr (int tupleIdBg, int tupleIdEnd=-1) const throw (INTERP_KERNEL::Exception)
void rearrange (int newNbOfCompo) throw (INTERP_KERNEL::Exception)
DataArrayDoublechangeNbOfComponents (int newNbOfComp, double dftValue) const throw (INTERP_KERNEL::Exception)
DataArrayDoublekeepSelectedComponents (const std::vector< int > &compoIds) const throw (INTERP_KERNEL::Exception)
void meldWith (const DataArrayDouble *other) throw (INTERP_KERNEL::Exception)
void setSelectedComponents (const DataArrayDouble *a, const std::vector< int > &compoIds) throw (INTERP_KERNEL::Exception)
void setPartOfValues1 (const DataArrayDouble *a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true) throw (INTERP_KERNEL::Exception)
void setPartOfValuesSimple1 (double a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp) throw (INTERP_KERNEL::Exception)
void setPartOfValues2 (const DataArrayDouble *a, const int *bgTuples, const int *endTuples, const int *bgComp, const int *endComp, bool strictCompoCompare=true) throw (INTERP_KERNEL::Exception)
void setPartOfValuesSimple2 (double a, const int *bgTuples, const int *endTuples, const int *bgComp, const int *endComp) throw (INTERP_KERNEL::Exception)
void setPartOfValues3 (const DataArrayDouble *a, const int *bgTuples, const int *endTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true) throw (INTERP_KERNEL::Exception)
void setPartOfValuesSimple3 (double a, const int *bgTuples, const int *endTuples, int bgComp, int endComp, int stepComp) throw (INTERP_KERNEL::Exception)
void getTuple (int tupleId, double *res) const
double getIJ (int tupleId, int compoId) const
void setIJ (int tupleId, int compoId, double newVal)
void setIJSilent (int tupleId, int compoId, double newVal)
double * getPointer () const
const double * getConstPointer () const
void useArray (const double *array, bool ownership, DeallocType type, int nbOfTuple, int nbOfCompo)
void writeOnPlace (int id, double element0, const double *others, int sizeOfOthers)
void checkNoNullValues () const throw (INTERP_KERNEL::Exception)
double getMaxValue (int &tupleId) const throw (INTERP_KERNEL::Exception)
double getMinValue (int &tupleId) const throw (INTERP_KERNEL::Exception)
double getMaxValue2 (DataArrayInt *&tupleIds) const throw (INTERP_KERNEL::Exception)
double getMinValue2 (DataArrayInt *&tupleIds) const throw (INTERP_KERNEL::Exception)
double getAverageValue () const throw (INTERP_KERNEL::Exception)
void accumulate (double *res) const throw (INTERP_KERNEL::Exception)
double accumulate (int compId) const throw (INTERP_KERNEL::Exception)
DataArrayDoublefromPolarToCart () const throw (INTERP_KERNEL::Exception)
DataArrayDoublefromCylToCart () const throw (INTERP_KERNEL::Exception)
DataArrayDoublefromSpherToCart () const throw (INTERP_KERNEL::Exception)
DataArrayDoubledoublyContractedProduct () const throw (INTERP_KERNEL::Exception)
DataArrayDoubledeterminant () const throw (INTERP_KERNEL::Exception)
DataArrayDoubleeigenValues () const throw (INTERP_KERNEL::Exception)
DataArrayDoubleeigenVectors () const throw (INTERP_KERNEL::Exception)
DataArrayDoubleinverse () const throw (INTERP_KERNEL::Exception)
DataArrayDoubletrace () const throw (INTERP_KERNEL::Exception)
DataArrayDoubledeviator () const throw (INTERP_KERNEL::Exception)
DataArrayDoublemagnitude () const throw (INTERP_KERNEL::Exception)
DataArrayDoublemaxPerTuple () const throw (INTERP_KERNEL::Exception)
void sortPerTuple (bool asc) throw (INTERP_KERNEL::Exception)
void applyLin (double a, double b, int compoId) throw (INTERP_KERNEL::Exception)
void applyLin (double a, double b) throw (INTERP_KERNEL::Exception)
void applyInv (double numerator) throw (INTERP_KERNEL::Exception)
DataArrayDoubleapplyFunc (int nbOfComp, FunctionToEvaluate func) const throw (INTERP_KERNEL::Exception)
DataArrayDoubleapplyFunc (int nbOfComp, const char *func) const throw (INTERP_KERNEL::Exception)
DataArrayDoubleapplyFunc (const char *func) const throw (INTERP_KERNEL::Exception)
DataArrayDoubleapplyFunc2 (int nbOfComp, const char *func) const throw (INTERP_KERNEL::Exception)
DataArrayDoubleapplyFunc3 (int nbOfComp, const std::vector< std::string > &varsOrder, const char *func) const throw (INTERP_KERNEL::Exception)
void applyFuncFast32 (const char *func) throw (INTERP_KERNEL::Exception)
void applyFuncFast64 (const char *func) throw (INTERP_KERNEL::Exception)
DataArrayIntgetIdsInRange (double vmin, double vmax) const throw (INTERP_KERNEL::Exception)
void addEqual (const DataArrayDouble *other) throw (INTERP_KERNEL::Exception)
void substractEqual (const DataArrayDouble *other) throw (INTERP_KERNEL::Exception)
void multiplyEqual (const DataArrayDouble *other) throw (INTERP_KERNEL::Exception)
void divideEqual (const DataArrayDouble *other) throw (INTERP_KERNEL::Exception)
void updateTime () const
void getTinySerializationIntInformation (std::vector< int > &tinyInfo) const
void getTinySerializationStrInformation (std::vector< std::string > &tinyInfo) const
bool resizeForUnserialization (const std::vector< int > &tinyInfoI)
void finishUnserialization (const std::vector< int > &tinyInfoI, const std::vector< std::string > &tinyInfoS)

Static Public Member Functions

static DataArrayDoubleNew ()
static void SetArrayIn (DataArrayDouble *newArray, DataArrayDouble *&arrayToSet)
static DataArrayDoubleAggregate (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleAggregate (const std::vector< const DataArrayDouble * > &a) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleMeld (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleMeld (const std::vector< const DataArrayDouble * > &a) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleDot (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleCrossProduct (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleMax (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleMin (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleAdd (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleSubstract (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleMultiply (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception)
static DataArrayDoubleDivide (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception)

Member Function Documentation

void DataArrayDouble::checkAllocated ( ) const throw (INTERP_KERNEL::Exception)
void DataArrayDouble::cpyFrom ( const DataArrayDouble other) throw (INTERP_KERNEL::Exception)
void DataArrayDouble::alloc ( int  nbOfTuple,
int  nbOfCompo 
)

References ParaMEDMEM::DataArray::_info_on_compo, ParaMEDMEM::DataArray::_nb_of_tuples, ParaMEDMEM::MemArray< T >::alloc(), and ParaMEDMEM::TimeLabel::declareAsNew().

Referenced by Add(), Aggregate(), allocIfNecessary(), applyFunc(), applyFunc2(), applyFunc3(), ParaMEDMEM::MEDCouplingUMesh::buildDirectionVectorField(), ParaMEDMEM::MEDCouplingUMesh::buildOrthogonalField(), ParaMEDMEM::MEDCouplingCMesh::buildOrthogonalField(), ParaMEDMEM::MEDCouplingUMesh::buildPartOrthogonalField(), changeNbOfComponents(), ParaMEDMEM::DataArrayInt::convertToDblArr(), CrossProduct(), determinant(), deviator(), Divide(), Dot(), doublyContractedProduct(), eigenValues(), eigenVectors(), fromCylToCart(), fromPolarToCart(), fromSpherToCart(), ParaMEDMEM::MEDCouplingUMesh::getAspectRatioField(), ParaMEDMEM::MEDCouplingUMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingCMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingExtrudedMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingCMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getEdgeRatioField(), ParaMEDMEM::MEDCouplingFieldDiscretizationGauss::getLocalizationOfDiscValues(), ParaMEDMEM::MEDCouplingUMesh::getMeasureField(), ParaMEDMEM::MEDCouplingExtrudedMesh::getMeasureField(), ParaMEDMEM::MEDCouplingCMesh::getMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getMeasureFieldOnNode(), ParaMEDMEM::MEDCouplingUMesh::getPartBarycenterAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getPartMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getSkewField(), ParaMEDMEM::MEDCouplingUMesh::getWarpField(), inverse(), magnitude(), Max(), maxPerTuple(), Min(), Multiply(), ParaMEDMEM::ParaFIELD::ParaFIELD(), MEDLoaderNS::readUMeshDataInMedFile(), renumber(), renumberAndReduce(), ParaMEDMEM::MEDCouplingPointSet::renumberNodes(), ParaMEDMEM::MEDCouplingPointSet::renumberNodes2(), renumberR(), ParaMEDMEM::MEDCouplingTwoTimeSteps::resizeForUnserialization(), ParaMEDMEM::MEDCouplingTimeDiscretization::resizeForUnserialization(), ParaMEDMEM::MEDCouplingPointSet::resizeForUnserialization(), resizeForUnserialization(), ParaMEDMEM::MEDCouplingExtrudedMesh::resizeForUnserialization(), ParaMEDMEM::MEDCouplingCMesh::resizeForUnserialization(), ParaMEDMEM::MEDCouplingRemapper::reverseTransfer(), selectByTupleId(), ParaMEDMEM::MEDCouplingExtrudedMesh::serialize(), ParaMEDMEM::MEDCouplingCMesh::serialize(), ParaMEDMEM::MEDCouplingTimeDiscretization::setUniformValue(), substr(), Substract(), trace(), and ParaMEDMEM::MEDCouplingRemapper::transfer().

void DataArrayDouble::allocIfNecessary ( int  nbOfTuple,
int  nbOfCompo 
)
void DataArrayDouble::fillWithZero ( ) throw (INTERP_KERNEL::Exception)
void DataArrayDouble::fillWithValue ( double  val) throw (INTERP_KERNEL::Exception)
void DataArrayDouble::iota ( double  init = 0.) throw (INTERP_KERNEL::Exception)
bool DataArrayDouble::isUniform ( double  val,
double  eps 
) const
void DataArrayDouble::sort ( ) throw (INTERP_KERNEL::Exception)
void DataArrayDouble::checkMonotonic ( double  eps) const throw (INTERP_KERNEL::Exception)
bool DataArrayDouble::isMonotonic ( double  eps) const throw (INTERP_KERNEL::Exception)
std::string DataArrayDouble::repr ( ) const

References reprStream().

std::string DataArrayDouble::reprZip ( ) const

References reprZipStream().

void DataArrayDouble::reprStream ( std::ostream &  stream) const
void DataArrayDouble::reprZipStream ( std::ostream &  stream) const
void DataArrayDouble::reprWithoutNameStream ( std::ostream &  stream) const
void DataArrayDouble::reprZipWithoutNameStream ( std::ostream &  stream) const
void DataArrayDouble::reAlloc ( int  nbOfTuples) throw (INTERP_KERNEL::Exception)
void DataArrayDouble::renumberInPlace ( const int *  old2New)

This method does not change the number of tuples after this call. Only a permutation is done. If a permutation reduction is needed substr, or selectByTupleId should be used.

References ParaMEDMEM::TimeLabel::declareAsNew(), getConstPointer(), ParaMEDMEM::DataArray::getNumberOfComponents(), ParaMEDMEM::DataArray::getNumberOfTuples(), and getPointer().

void DataArrayDouble::renumberInPlaceR ( const int *  new2Old)

This method does not change the number of tuples after this call. Only a permutation is done.

References ParaMEDMEM::TimeLabel::declareAsNew(), getConstPointer(), ParaMEDMEM::DataArray::getNumberOfComponents(), ParaMEDMEM::DataArray::getNumberOfTuples(), and getPointer().

DataArrayDouble * DataArrayDouble::renumber ( const int *  old2New) const

This method does not change the number of tuples after this call. Only a permutation is done. If a permutation reduction is needed substr, or selectByTupleId should be used.

References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), getConstPointer(), ParaMEDMEM::DataArray::getNumberOfComponents(), ParaMEDMEM::DataArray::getNumberOfTuples(), getPointer(), and New().

DataArrayDouble * DataArrayDouble::renumberR ( const int *  new2Old) const

This method does not change the number of tuples after this call. Only a permutation is done.

References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), getConstPointer(), ParaMEDMEM::DataArray::getNumberOfComponents(), ParaMEDMEM::DataArray::getNumberOfTuples(), getPointer(), and New().

DataArrayDouble * DataArrayDouble::renumberAndReduce ( const int *  old2New,
int  newNbOfTuple 
) const

Idem DataArrayDouble::renumber method except that the number of tuples is reduced. That is to say that it is expected that newNbOfTuple<this->getNumberOfTuples(). ['old2New','old2New'+getNumberOfTuples()) defines a range containing old to new array. For every negative value in ['old2NewBg','old2New'+getNumberOfTuples()) the corresponding tuple is omitted.

References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), getConstPointer(), ParaMEDMEM::DataArray::getNumberOfComponents(), ParaMEDMEM::DataArray::getNumberOfTuples(), getPointer(), and New().

Referenced by ParaMEDMEM::MEDCouplingUMesh::zipCoordsTraducer().

DataArrayDouble * DataArrayDouble::selectByTupleId ( const int *  new2OldBg,
const int *  new2OldEnd 
) const

This method is a generalization of DataArrayDouble::substr method because a not contigous range can be specified here. This method is equavalent to DataArrayDouble::renumberAndReduce except that convention in input is new2old and not old2new.

References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), getConstPointer(), ParaMEDMEM::DataArray::getNumberOfComponents(), getPointer(), and New().

Referenced by ParaMEDMEM::MEDCouplingFieldDouble::buildSubPart().

DataArrayDouble * DataArrayDouble::selectByTupleIdSafe ( const int *  new2OldBg,
const int *  new2OldEnd 
) const throw (INTERP_KERNEL::Exception)

This method is equivalent to DataArrayDouble::selectByTupleId except that an analyze to the content of input range to check that it will not lead to memory corruption !

References New().

DataArrayDouble * DataArrayDouble::selectByTupleId2 ( int  bg,
int  end,
int  step 
) const throw (INTERP_KERNEL::Exception)

Idem than DataArrayInt::selectByTupleIdSafe except that the input array is not constructed explicitely. The convention is as python one. ['bg','end') with steps of 'step'. Returns a newly created array.

References New().

DataArrayDouble * DataArrayDouble::substr ( int  tupleIdBg,
int  tupleIdEnd = -1 
) const throw (INTERP_KERNEL::Exception)

This methods has a similar behaviour than std::string::substr. This method returns a newly created DataArrayInt that is part of this with same number of components. The intervall is specified by [tupleIdBg,tupleIdEnd) except if tupleIdEnd ==-1 in this case the [tupleIdBg,this->end()) will be kept. This method check that interval is valid regarding this, if not an exception will be thrown.

References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), getPointer(), and New().

void DataArrayDouble::rearrange ( int  newNbOfCompo) throw (INTERP_KERNEL::Exception)

Contrary to DataArrayDouble::changeNbOfComponents method this method is not const. The content This method do not change the content of data but changes the splitting of this data seen by the caller. This method makes the assumption that 'this' is already allocated. If not an exception will be thrown. This method checks that getNbOfElems()newNbOfCompo==0. If not an exception will be throw ! This method erases all components info set before call !

DataArrayDouble * DataArrayDouble::changeNbOfComponents ( int  newNbOfComp,
double  dftValue 
) const throw (INTERP_KERNEL::Exception)

This method builds a new instance of DataArrayDouble (to deal with) that is reduction or an extension of 'this'. if 'newNbOfComp' < this->getNumberOfComponents() a reduction is done and for each tuple 'newNbOfComp' first components are kept. If 'newNbOfComp' > this->getNumberOfComponents() an extension is done, and for each components i such that i > getNumberOfComponents() 'dftValue' parameter is taken.

References alloc(), getPointer(), New(), ParaMEDMEM::DataArray::setInfoOnComponent(), and ParaMEDMEM::DataArray::setName().

Referenced by ParaMEDMEM::MEDCouplingPointSet::changeSpaceDimension().

DataArrayDouble * DataArrayDouble::keepSelectedComponents ( const std::vector< int > &  compoIds) const throw (INTERP_KERNEL::Exception)

References New().

void DataArrayDouble::meldWith ( const DataArrayDouble other) throw (INTERP_KERNEL::Exception)

This method melds the components of 'this' with components of 'other'. After this call in case of success, 'this' will contain a number of components equal to the sum of 'this' before the call and the number of components of 'other'. This method expects that 'this' and 'other' have exactly the same number of tuples. If not an exception is thrown.

References ParaMEDMEM::CPP_DEALLOC.

void DataArrayDouble::setSelectedComponents ( const DataArrayDouble a,
const std::vector< int > &  compoIds 
) throw (INTERP_KERNEL::Exception)
void DataArrayDouble::setPartOfValues1 ( const DataArrayDouble a,
int  bgTuples,
int  endTuples,
int  stepTuples,
int  bgComp,
int  endComp,
int  stepComp,
bool  strictCompoCompare = true 
) throw (INTERP_KERNEL::Exception)

This method performs a partial assignment of 'this' using 'a' as input. Other input parameters specifies the subpart being considered by the assignment. 'strictCompoCompare' specifies if DataArray 'a' should have exactly same number of components and tuples than 'this' (true) or not (false). By default set to true with maximal test.

References ParaMEDMEM::DataArray::CheckClosingParInRange(), ParaMEDMEM::DataArray::CheckValueInRange(), and ParaMEDMEM::DataArray::GetNumberOfItemGivenBES().

void DataArrayDouble::setPartOfValuesSimple1 ( double  a,
int  bgTuples,
int  endTuples,
int  stepTuples,
int  bgComp,
int  endComp,
int  stepComp 
) throw (INTERP_KERNEL::Exception)

This method performs a partial assignment of 'this' using 'a' as input. Other input parameters specifies the subpart being considered by the assignment.

References ParaMEDMEM::DataArray::CheckClosingParInRange(), ParaMEDMEM::DataArray::CheckValueInRange(), and ParaMEDMEM::DataArray::GetNumberOfItemGivenBES().

void DataArrayDouble::setPartOfValues2 ( const DataArrayDouble a,
const int *  bgTuples,
const int *  endTuples,
const int *  bgComp,
const int *  endComp,
bool  strictCompoCompare = true 
) throw (INTERP_KERNEL::Exception)

This method performs a partial assignment of 'this' using 'a' as input. Other input parameters specifies the subpart being considered by the assignment. 'strictCompoCompare' specifies if DataArray 'a' should have exactly same number of components and tuples than 'this' (true) or not (false). By default set to true with maximal test.

References ParaMEDMEM::DataArray::CheckValueInRange().

void DataArrayDouble::setPartOfValuesSimple2 ( double  a,
const int *  bgTuples,
const int *  endTuples,
const int *  bgComp,
const int *  endComp 
) throw (INTERP_KERNEL::Exception)

This method performs a partial assignment of 'this' using 'a' as input. Other input parameters specifies the subpart being considered by the assignment.

References ParaMEDMEM::DataArray::CheckValueInRange().

void DataArrayDouble::setPartOfValues3 ( const DataArrayDouble a,
const int *  bgTuples,
const int *  endTuples,
int  bgComp,
int  endComp,
int  stepComp,
bool  strictCompoCompare = true 
) throw (INTERP_KERNEL::Exception)

This method performs a partial assignment of 'this' using 'a' as input. Other input parameters specifies the subpart being considered by the assignment. 'strictCompoCompare' specifies if DataArray 'a' should have exactly same number of components and tuples than 'this' (true) or not (false). By default set to true with maximal test.

References ParaMEDMEM::DataArray::CheckClosingParInRange(), ParaMEDMEM::DataArray::CheckValueInRange(), and ParaMEDMEM::DataArray::GetNumberOfItemGivenBES().

void DataArrayDouble::setPartOfValuesSimple3 ( double  a,
const int *  bgTuples,
const int *  endTuples,
int  bgComp,
int  endComp,
int  stepComp 
) throw (INTERP_KERNEL::Exception)

This method performs a partial assignment of 'this' using 'a' as input. Other input parameters specifies the subpart being considered by the assignment.

References ParaMEDMEM::DataArray::CheckClosingParInRange(), ParaMEDMEM::DataArray::CheckValueInRange(), and ParaMEDMEM::DataArray::GetNumberOfItemGivenBES().

double ParaMEDMEM::DataArrayDouble::getIJ ( int  tupleId,
int  compoId 
) const
void ParaMEDMEM::DataArrayDouble::setIJ ( int  tupleId,
int  compoId,
double  newVal 
)
void ParaMEDMEM::DataArrayDouble::setIJSilent ( int  tupleId,
int  compoId,
double  newVal 
)
double* ParaMEDMEM::DataArrayDouble::getPointer ( ) const

References ParaMEDMEM::MemArray< T >::getPointer().

Referenced by Add(), Aggregate(), applyFunc(), applyFunc2(), applyFunc3(), ParaMEDMEM::MEDCouplingUMesh::buildDirectionVectorField(), ParaMEDMEM::MEDCouplingUMesh::buildOrthogonalField(), ParaMEDMEM::MEDCouplingCMesh::buildOrthogonalField(), ParaMEDMEM::MEDCouplingUMesh::buildPartOrthogonalField(), changeNbOfComponents(), ParaMEDMEM::DataArrayInt::convertToDblArr(), CrossProduct(), determinant(), deviator(), Divide(), Dot(), doublyContractedProduct(), eigenValues(), eigenVectors(), fromCylToCart(), fromPolarToCart(), fromSpherToCart(), ParaMEDMEM::MEDCouplingUMesh::getAspectRatioField(), ParaMEDMEM::MEDCouplingUMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingCMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingExtrudedMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingCMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getEdgeRatioField(), ParaMEDMEM::MEDCouplingUMesh::getLevArrPerCellTypes(), ParaMEDMEM::MEDCouplingFieldDiscretizationGauss::getLocalizationOfDiscValues(), ParaMEDMEM::MEDCouplingUMesh::getMeasureField(), ParaMEDMEM::MEDCouplingExtrudedMesh::getMeasureField(), ParaMEDMEM::MEDCouplingCMesh::getMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getMeasureFieldOnNode(), ParaMEDMEM::MEDCouplingUMesh::getPartBarycenterAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getPartMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getSkewField(), ParaMEDMEM::MEDCouplingUMesh::getWarpField(), inverse(), magnitude(), Max(), maxPerTuple(), Min(), Multiply(), ParaMEDMEM::InterpolationMatrix::multiply(), ParaMEDMEM::StructuredCoincidentDEC::prepareSourceDE(), ParaMEDMEM::ExplicitCoincidentDEC::prepareSourceDE(), MEDLoaderNS::readUMeshDataInMedFile(), ParaMEDMEM::StructuredCoincidentDEC::recvData(), renumber(), renumberAndReduce(), ParaMEDMEM::MEDCouplingFieldDiscretization::renumberEntitiesFromN2OArr(), ParaMEDMEM::MEDCouplingFieldDiscretization::renumberEntitiesFromO2NArr(), renumberInPlace(), renumberInPlaceR(), ParaMEDMEM::MEDCouplingPointSet::renumberNodes(), ParaMEDMEM::MEDCouplingPointSet::renumberNodes2(), renumberR(), ParaMEDMEM::MEDCouplingRemapper::reverseTransfer(), ParaMEDMEM::MEDCouplingPointSet::rotate2D(), ParaMEDMEM::MEDCouplingPointSet::rotate3D(), ParaMEDMEM::MEDCouplingPointSet::scale(), ParaMEDMEM::MEDCouplingCMesh::scale(), selectByTupleId(), ParaMEDMEM::MEDCouplingExtrudedMesh::serialize(), ParaMEDMEM::MEDCouplingCMesh::serialize(), substr(), Substract(), trace(), ParaMEDMEM::MEDCouplingRemapper::transfer(), ParaMEDMEM::MEDCouplingPointSet::translate(), ParaMEDMEM::InterpolationMatrix::transposeMultiply(), ParaMEDMEM::MEDCouplingExtrudedMesh::unserialization(), and MEDLoaderNS::writeUMeshesDirectly().

void DataArrayDouble::SetArrayIn ( DataArrayDouble newArray,
DataArrayDouble *&  arrayToSet 
) [static]
const double* ParaMEDMEM::DataArrayDouble::getConstPointer ( ) const

References ParaMEDMEM::MemArray< T >::getConstPointer().

Referenced by MEDLoaderNS::appendCellProfileField(), MEDLoaderNS::appendFieldDirectly(), MEDLoaderNS::appendNodeProfileField(), ParaMEDMEM::MEDCouplingUMesh::buildDirectionVectorField(), ParaMEDMEM::MEDCouplingUMesh::buildOrthogonalField(), ParaMEDMEM::MEDCouplingUMesh::buildPartOrthogonalField(), checkNoNullValues(), convertToIntArr(), determinant(), deviator(), doublyContractedProduct(), eigenValues(), eigenVectors(), ParaMEDMEM::MEDCouplingPointSet::findCommonNodes(), ParaMEDMEM::MEDCouplingPointSet::findCommonNodesAlg(), ParaMEDMEM::MEDCouplingPointSet::findNodeIdsNearPointAlg(), fromCylToCart(), fromPolarToCart(), fromSpherToCart(), ParaMEDMEM::MEDCouplingUMesh::getAspectRatioField(), getAverageValue(), ParaMEDMEM::MEDCouplingUMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingCMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingPointSet::getBoundingBox(), ParaMEDMEM::MEDCouplingExtrudedMesh::getBoundingBox(), ParaMEDMEM::MEDCouplingCMesh::getBoundingBox(), ParaMEDMEM::MEDCouplingUMesh::getBoundingBoxForBBTree(), ParaMEDMEM::MEDCouplingPointSet::getCaracteristicDimension(), ParaMEDMEM::MEDCouplingUMesh::getCellsContainingPoints(), ParaMEDMEM::MEDCouplingUMeshDesc::getCellsInBoundingBox(), ParaMEDMEM::MEDCouplingUMesh::getCellsInBoundingBox(), ParaMEDMEM::MEDCouplingExtrudedMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingCMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getCoordinatesOfNode(), ParaMEDMEM::MEDCouplingExtrudedMesh::getCoordinatesOfNode(), ParaMEDMEM::MEDCouplingUMesh::getEdgeRatioField(), ParaMEDMEM::MEDCouplingUMesh::getMeasureField(), ParaMEDMEM::MEDCouplingExtrudedMesh::getMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getMeasureFieldOnNode(), ParaMEDMEM::MEDCouplingUMesh::getPartBarycenterAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getPartMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getSkewField(), ParaMEDMEM::MEDCouplingUMesh::getWarpField(), ParaMEDMEM::MEDCouplingFieldDiscretization::integral(), inverse(), isAllocated(), isUniform(), magnitude(), maxPerTuple(), Multiply(), ParaMEDMEM::MEDCouplingFieldDiscretization::normL1(), ParaMEDMEM::MEDCouplingFieldDiscretization::normL2(), ParaMEDMEM::MEDCouplingUMesh::orientCorrectlyPolyhedrons(), ParaMEDMEM::MEDCouplingUMesh::project1D(), ParaMEDMEM::MEDCouplingPointSet::project2DCellOnXY(), renumber(), renumberAndReduce(), ParaMEDMEM::MEDCouplingFieldDiscretization::renumberEntitiesFromN2OArr(), ParaMEDMEM::MEDCouplingFieldDiscretization::renumberEntitiesFromO2NArr(), renumberInPlace(), renumberInPlaceR(), ParaMEDMEM::MEDCouplingPointSet::renumberNodes(), ParaMEDMEM::MEDCouplingPointSet::renumberNodes2(), renumberR(), selectByTupleId(), ParaMEDMEM::MEDCouplingExtrudedMesh::serialize(), trace(), ParaMEDMEM::MEDCouplingExtrudedMesh::unserialization(), ParaMEDMEM::MEDCouplingCMesh::unserialization(), and ParaMEDMEM::MEDFileCMesh::write().

void ParaMEDMEM::DataArrayDouble::writeOnPlace ( int  id,
double  element0,
const double *  others,
int  sizeOfOthers 
)
void DataArrayDouble::checkNoNullValues ( ) const throw (INTERP_KERNEL::Exception)
double DataArrayDouble::getMaxValue ( int &  tupleId) const throw (INTERP_KERNEL::Exception)
double DataArrayDouble::getMinValue ( int &  tupleId) const throw (INTERP_KERNEL::Exception)
double DataArrayDouble::getMaxValue2 ( DataArrayInt *&  tupleIds) const throw (INTERP_KERNEL::Exception)
double DataArrayDouble::getMinValue2 ( DataArrayInt *&  tupleIds) const throw (INTERP_KERNEL::Exception)
double DataArrayDouble::getAverageValue ( ) const throw (INTERP_KERNEL::Exception)
void DataArrayDouble::accumulate ( double *  res) const throw (INTERP_KERNEL::Exception)
double DataArrayDouble::accumulate ( int  compId) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::fromPolarToCart ( ) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::fromSpherToCart ( ) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::doublyContractedProduct ( ) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::eigenValues ( ) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::eigenVectors ( ) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::inverse ( ) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::trace ( ) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::deviator ( ) const throw (INTERP_KERNEL::Exception)
void DataArrayDouble::sortPerTuple ( bool  asc) throw (INTERP_KERNEL::Exception)
void DataArrayDouble::applyLin ( double  a,
double  b,
int  compoId 
) throw (INTERP_KERNEL::Exception)
void DataArrayDouble::applyLin ( double  a,
double  b 
) throw (INTERP_KERNEL::Exception)
void DataArrayDouble::applyInv ( double  numerator) throw (INTERP_KERNEL::Exception)

This method applies the operation 'numerator/x' for each element 'x' in 'this'. If there is a value in 'this' exactly equal to 0. an exception is thrown. Warning if presence of null this is modified for each values previous than place where exception was thrown !

DataArrayDouble * DataArrayDouble::applyFunc ( int  nbOfComp,
FunctionToEvaluate  func 
) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::applyFunc ( int  nbOfComp,
const char *  func 
) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::applyFunc ( const char *  func) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::applyFunc2 ( int  nbOfComp,
const char *  func 
) const throw (INTERP_KERNEL::Exception)

This method is equivalent than DataArrayDouble::applyFunc, except that here components names are used to determine vars orders. If 'func' contains vars that are not in this->getInfoOnComponent() an exception will be thrown.

References alloc(), ParaMEDMEM::RefCountObject::decrRef(), getPointer(), and New().

DataArrayDouble * DataArrayDouble::applyFunc3 ( int  nbOfComp,
const std::vector< std::string > &  varsOrder,
const char *  func 
) const throw (INTERP_KERNEL::Exception)

This method is equivalent than DataArrayDouble::applyFunc, except that here order of vars is passed explicitely in parameter. In 'func' contains vars not in 'varsOrder' an exception will be thrown.

References alloc(), ParaMEDMEM::RefCountObject::decrRef(), getPointer(), and New().

void DataArrayDouble::applyFuncFast32 ( const char *  func) throw (INTERP_KERNEL::Exception)
void DataArrayDouble::applyFuncFast64 ( const char *  func) throw (INTERP_KERNEL::Exception)
DataArrayInt * DataArrayDouble::getIdsInRange ( double  vmin,
double  vmax 
) const throw (INTERP_KERNEL::Exception)
DataArrayDouble * DataArrayDouble::Aggregate ( const std::vector< const DataArrayDouble * > &  a) throw (INTERP_KERNEL::Exception) [static]
DataArrayDouble * DataArrayDouble::Meld ( const std::vector< const DataArrayDouble * > &  a) throw (INTERP_KERNEL::Exception) [static]

References checkAllocated(), and New().

void ParaMEDMEM::DataArrayDouble::updateTime ( ) const [virtual]

nothing to do here because this class does not aggregate any TimeLabel instance.

Implements ParaMEDMEM::TimeLabel.

void DataArrayDouble::getTinySerializationIntInformation ( std::vector< int > &  tinyInfo) const

Useless method for end user. Only for MPI/Corba/File serialsation for multi arrays class. Server side.

References ParaMEDMEM::DataArray::getNumberOfComponents(), ParaMEDMEM::DataArray::getNumberOfTuples(), and isAllocated().

void DataArrayDouble::getTinySerializationStrInformation ( std::vector< std::string > &  tinyInfo) const

Useless method for end user. Only for MPI/Corba/File serialsation for multi arrays class. Server side.

References ParaMEDMEM::DataArray::getInfoOnComponent(), ParaMEDMEM::DataArray::getName(), ParaMEDMEM::DataArray::getNumberOfComponents(), and isAllocated().

bool DataArrayDouble::resizeForUnserialization ( const std::vector< int > &  tinyInfoI)

Useless method for end user. Only for MPI/Corba/File serialsation for multi arrays class. This method returns if a feeding is needed.

References alloc().

void DataArrayDouble::finishUnserialization ( const std::vector< int > &  tinyInfoI,
const std::vector< std::string > &  tinyInfoS 
)

Useless method for end user. Only for MPI/Corba/File serialsation for multi arrays class.

References ParaMEDMEM::DataArray::getNumberOfComponents(), isAllocated(), ParaMEDMEM::DataArray::setInfoOnComponent(), and ParaMEDMEM::DataArray::setName().

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS