Public Member Functions | |
bool | isAllocated () const |
void | checkAllocated () const throw (INTERP_KERNEL::Exception) |
void | setInfoAndChangeNbOfCompo (const std::vector< std::string > &info) throw (INTERP_KERNEL::Exception) |
double | doubleValue () const throw (INTERP_KERNEL::Exception) |
bool | empty () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | deepCpy () const |
DataArrayDouble * | performCpy (bool deepCpy) const |
void | cpyFrom (const DataArrayDouble &other) throw (INTERP_KERNEL::Exception) |
void | alloc (int nbOfTuple, int nbOfCompo) throw (INTERP_KERNEL::Exception) |
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 throw (INTERP_KERNEL::Exception) |
void | sort () throw (INTERP_KERNEL::Exception) |
void | reverse () throw (INTERP_KERNEL::Exception) |
void | checkMonotonic (bool increasing, double eps) const throw (INTERP_KERNEL::Exception) |
bool | isMonotonic (bool increasing, double eps) const throw (INTERP_KERNEL::Exception) |
std::string | repr () const |
std::string | reprZip () const |
void | writeVTK (std::ostream &ofs, int indent, const char *nameInFile) const throw (INTERP_KERNEL::Exception) |
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) |
DataArrayInt * | convertToIntArr () const |
DataArrayDouble * | fromNoInterlace () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | toNoInterlace () const throw (INTERP_KERNEL::Exception) |
void | renumberInPlace (const int *old2New) |
void | renumberInPlaceR (const int *new2Old) |
DataArrayDouble * | renumber (const int *old2New) const |
DataArrayDouble * | renumberR (const int *new2Old) const |
DataArrayDouble * | renumberAndReduce (const int *old2New, int newNbOfTuple) const |
DataArrayDouble * | selectByTupleId (const int *new2OldBg, const int *new2OldEnd) const |
DataArrayDouble * | selectByTupleIdSafe (const int *new2OldBg, const int *new2OldEnd) const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | selectByTupleId2 (int bg, int end2, int step) const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | selectByTupleRanges (const std::vector< std::pair< int, int > > &ranges) const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | substr (int tupleIdBg, int tupleIdEnd=-1) const throw (INTERP_KERNEL::Exception) |
void | rearrange (int newNbOfCompo) throw (INTERP_KERNEL::Exception) |
void | transpose () throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | changeNbOfComponents (int newNbOfComp, double dftValue) const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | keepSelectedComponents (const std::vector< int > &compoIds) const throw (INTERP_KERNEL::Exception) |
void | meldWith (const DataArrayDouble *other) throw (INTERP_KERNEL::Exception) |
void | findCommonTuples (double prec, int limitTupleId, DataArrayInt *&comm, DataArrayInt *&commIndex) const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | getDifferentValues (double prec, int limitTupleId=-1) const 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 | setPartOfValuesAdv (const DataArrayDouble *a, const DataArrayInt *tuplesSelec) throw (INTERP_KERNEL::Exception) |
void | setContigPartOfSelectedValues (int tupleIdStart, const DataArrayDouble *a, const DataArrayInt *tuplesSelec) throw (INTERP_KERNEL::Exception) |
void | setContigPartOfSelectedValues2 (int tupleIdStart, const DataArrayDouble *a, int bg, int end2, int step) throw (INTERP_KERNEL::Exception) |
void | getTuple (int tupleId, double *res) const |
double | getIJ (int tupleId, int compoId) const |
double | back () const throw (INTERP_KERNEL::Exception) |
double | getIJSafe (int tupleId, int compoId) const throw (INTERP_KERNEL::Exception) |
void | setIJ (int tupleId, int compoId, double newVal) |
void | setIJSilent (int tupleId, int compoId, double newVal) |
double * | getPointer () |
const double * | getConstPointer () const |
DataArrayDoubleIterator * | iterator () |
const double * | begin () const |
const double * | end () 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) |
void | getMinMaxPerComponent (double *bounds) const throw (INTERP_KERNEL::Exception) |
double | getMaxValue (int &tupleId) const throw (INTERP_KERNEL::Exception) |
double | getMaxValueInArray () const throw (INTERP_KERNEL::Exception) |
double | getMinValue (int &tupleId) const throw (INTERP_KERNEL::Exception) |
double | getMinValueInArray () 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) |
double | norm2 () const throw (INTERP_KERNEL::Exception) |
double | normMax () const throw (INTERP_KERNEL::Exception) |
void | accumulate (double *res) const throw (INTERP_KERNEL::Exception) |
double | accumulate (int compId) const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | fromPolarToCart () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | fromCylToCart () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | fromSpherToCart () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | doublyContractedProduct () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | determinant () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | eigenValues () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | eigenVectors () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | inverse () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | trace () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | deviator () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | magnitude () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | maxPerTuple () const throw (INTERP_KERNEL::Exception) |
void | sortPerTuple (bool asc) throw (INTERP_KERNEL::Exception) |
void | abs () 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) |
DataArrayDouble * | negate () const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | applyFunc (int nbOfComp, FunctionToEvaluate func) const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | applyFunc (int nbOfComp, const char *func) const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | applyFunc (const char *func) const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | applyFunc2 (int nbOfComp, const char *func) const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | applyFunc3 (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) |
DataArrayInt * | getIdsInRange (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) |
![]() | |
void | setName (const char *name) |
void | copyStringInfoFrom (const DataArray &other) throw (INTERP_KERNEL::Exception) |
void | copyPartOfStringInfoFrom (const DataArray &other, const std::vector< int > &compoIds) throw (INTERP_KERNEL::Exception) |
void | copyPartOfStringInfoFrom2 (const std::vector< int > &compoIds, const DataArray &other) throw (INTERP_KERNEL::Exception) |
bool | areInfoEquals (const DataArray &other) const |
std::string | getName () const |
const std::vector< std::string > & | getInfoOnComponents () const |
std::vector< std::string > & | getInfoOnComponents () |
void | setInfoOnComponents (const std::vector< std::string > &info) throw (INTERP_KERNEL::Exception) |
std::vector< std::string > | getVarsOnComponent () const |
std::vector< std::string > | getUnitsOnComponent () const |
std::string | getInfoOnComponent (int i) const throw (INTERP_KERNEL::Exception) |
std::string | getVarOnComponent (int i) const throw (INTERP_KERNEL::Exception) |
std::string | getUnitOnComponent (int i) const throw (INTERP_KERNEL::Exception) |
void | setInfoOnComponent (int i, const char *info) throw (INTERP_KERNEL::Exception) |
int | getNumberOfComponents () const |
int | getNumberOfTuples () const |
int | getNbOfElems () const |
void | checkNbOfTuplesAndComp (const DataArray &other, const char *msg) const throw (INTERP_KERNEL::Exception) |
void | checkNbOfTuplesAndComp (int nbOfTuples, int nbOfCompo, const char *msg) const throw (INTERP_KERNEL::Exception) |
void | checkNbOfElems (int nbOfElems, const char *msg) const throw (INTERP_KERNEL::Exception) |
![]() | |
bool | decrRef () const |
void | incrRef () const |
![]() | |
TimeLabel & | operator= (const TimeLabel &other) |
void | declareAsNew () const |
unsigned int | getTimeOfThis () const |
Static Public Member Functions | |
static DataArrayDouble * | New () |
static void | SetArrayIn (DataArrayDouble *newArray, DataArrayDouble *&arrayToSet) |
static DataArrayDouble * | Aggregate (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception) |
static DataArrayDouble * | Aggregate (const std::vector< const DataArrayDouble * > &a) throw (INTERP_KERNEL::Exception) |
static DataArrayDouble * | Meld (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception) |
static DataArrayDouble * | Meld (const std::vector< const DataArrayDouble * > &a) throw (INTERP_KERNEL::Exception) |
static DataArrayDouble * | Dot (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception) |
static DataArrayDouble * | CrossProduct (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception) |
static DataArrayDouble * | Max (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception) |
static DataArrayDouble * | Min (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception) |
static DataArrayDouble * | Add (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception) |
static DataArrayDouble * | Substract (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception) |
static DataArrayDouble * | Multiply (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception) |
static DataArrayDouble * | Divide (const DataArrayDouble *a1, const DataArrayDouble *a2) throw (INTERP_KERNEL::Exception) |
![]() | |
static int | GetNumberOfItemGivenBES (int begin, int end, int step, const char *msg) throw (INTERP_KERNEL::Exception) |
static int | GetNumberOfItemGivenBESRelative (int begin, int end, int step, const char *msg) throw (INTERP_KERNEL::Exception) |
static std::string | GetVarNameFromInfo (const std::string &info) throw (INTERP_KERNEL::Exception) |
static std::string | GetUnitFromInfo (const std::string &info) throw (INTERP_KERNEL::Exception) |
Protected Member Functions | |
template<int SPACEDIM> | |
void | findCommonTuplesAlg (std::vector< double > &bbox, int nbNodes, int limitNodeId, double prec, std::vector< int > &c, std::vector< int > &cI) const |
![]() | |
DataArray () | |
![]() | |
RefCountObject () | |
RefCountObject (const RefCountObject &other) | |
virtual | ~RefCountObject () |
![]() | |
TimeLabel () | |
virtual | ~TimeLabel () |
void | updateTimeWith (const TimeLabel &other) const |
Additional Inherited Members | |
![]() | |
static void | CheckValueInRange (int ref, int value, const char *msg) throw (INTERP_KERNEL::Exception) |
static void | CheckClosingParInRange (int ref, int value, const char *msg) throw (INTERP_KERNEL::Exception) |
![]() | |
int | _nb_of_tuples |
std::string | _name |
std::vector< std::string > | _info_on_compo |
|
static |
Referenced by Add(), Aggregate(), applyFunc(), applyFunc2(), applyFunc3(), ParaMEDMEM::DataArrayDoubleTuple::buildDADouble(), ParaMEDMEM::MEDCouplingUMesh::buildSetInstanceFromThis(), changeNbOfComponents(), convertToIntArr(), ParaMEDMEM::MEDFileField1TSWithoutDAS::copyTinyInfoFrom(), CrossProduct(), determinant(), deviator(), Divide(), Dot(), doublyContractedProduct(), eigenValues(), eigenVectors(), fromCylToCart(), fromNoInterlace(), fromPolarToCart(), fromSpherToCart(), ParaMEDMEM::MEDFileField1TSWithoutDAS::getOrCreateAndGetArray(), inverse(), keepSelectedComponents(), magnitude(), Max(), maxPerTuple(), Meld(), Min(), Multiply(), negate(), ParaMEDMEM::ParaFIELD::ParaFIELD(), renumber(), renumberAndReduce(), ParaMEDMEM::MEDCouplingPointSet::renumberNodes2(), renumberR(), ParaMEDMEM::MEDCouplingRemapper::reverseTransfer(), selectByTupleId(), selectByTupleId2(), selectByTupleIdSafe(), selectByTupleRanges(), substr(), Substract(), ParaMEDMEM::MEDCouplingUMesh::tessellate2DCurve(), toNoInterlace(), and trace().
bool DataArrayDouble::isAllocated | ( | ) | const |
References getConstPointer().
Referenced by allocIfNecessary(), checkAllocated(), ParaMEDMEM::DataArrayDoubleIterator::DataArrayDoubleIterator(), doubleValue(), finishUnserialization(), getTinySerializationIntInformation(), getTinySerializationStrInformation(), and ParaMEDMEM::MEDFileField1TSWithoutDAS::simpleRepr().
void DataArrayDouble::checkAllocated | ( | ) | const throw (INTERP_KERNEL::Exception) |
References isAllocated().
Referenced by abs(), back(), determinant(), Dot(), empty(), fillWithZero(), getMaxValueInArray(), getMinValueInArray(), magnitude(), maxPerTuple(), Meld(), negate(), norm2(), normMax(), reverse(), selectByTupleRanges(), sort(), and transpose().
void DataArrayDouble::setInfoAndChangeNbOfCompo | ( | const std::vector< std::string > & | info | ) | throw (INTERP_KERNEL::Exception) |
This method differs from DataArray::setInfoOnComponents in the sense that if 'this->getNumberOfComponents()!=info.size()' and if 'this' is not allocated it will change the number of components of 'this'. If 'this->getNumberOfComponents()==info.size()' the behaviour is the same than DataArray::setInfoOnComponents method. If 'this->getNumberOfComponents()!=info.size()' and the 'this' is already allocated an exception will be thrown.
Referenced by ParaMEDMEM::MEDFileField1TSWithoutDAS::MEDFileField1TSWithoutDAS().
double DataArrayDouble::doubleValue | ( | ) | const throw (INTERP_KERNEL::Exception) |
This method returns the only one value in 'this', if and only if number of elements (nb of tuples * nb of components) is equal to 1, and that 'this' is allocated. If one or more conditions is not fulfilled an exception will be thrown.
References getConstPointer(), ParaMEDMEM::DataArray::getNbOfElems(), and isAllocated().
bool DataArrayDouble::empty | ( | ) | const throw (INTERP_KERNEL::Exception) |
This method should be called on an allocated DataArrayDouble instance. If not an exception will be throw ! This method checks the number of tupes. If it is equal to 0, it returns true, if not false is returned.
References checkAllocated(), and ParaMEDMEM::DataArray::getNumberOfTuples().
DataArrayDouble * DataArrayDouble::deepCpy | ( | ) | const |
DataArrayDouble * DataArrayDouble::performCpy | ( | bool | deepCpy | ) | const |
References deepCpy(), and ParaMEDMEM::RefCountObject::incrRef().
Referenced by ParaMEDMEM::MEDCouplingTimeDiscretization::buildNewTimeReprFromThis(), ParaMEDMEM::MEDCouplingPointSet::MEDCouplingPointSet(), ParaMEDMEM::MEDCouplingTimeDiscretization::MEDCouplingTimeDiscretization(), and ParaMEDMEM::MEDCouplingTwoTimeSteps::MEDCouplingTwoTimeSteps().
void DataArrayDouble::cpyFrom | ( | const DataArrayDouble & | other | ) | throw (INTERP_KERNEL::Exception) |
void DataArrayDouble::alloc | ( | int | nbOfTuple, |
int | nbOfCompo | ||
) | throw (INTERP_KERNEL::Exception) |
Referenced by Add(), Aggregate(), allocIfNecessary(), applyFunc(), applyFunc2(), applyFunc3(), ParaMEDMEM::MEDCouplingUMesh::buildDirectionVectorField(), ParaMEDMEM::MEDCouplingCMesh::buildOrthogonalField(), ParaMEDMEM::MEDCouplingUMesh::buildOrthogonalField(), ParaMEDMEM::MEDCouplingUMesh::buildPartOrthogonalField(), changeNbOfComponents(), ParaMEDMEM::DataArrayInt::convertToDblArr(), CrossProduct(), determinant(), deviator(), Divide(), Dot(), doublyContractedProduct(), eigenValues(), eigenVectors(), fromCylToCart(), fromPolarToCart(), fromSpherToCart(), ParaMEDMEM::MEDCouplingUMesh::getAspectRatioField(), ParaMEDMEM::MEDCouplingCMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingCMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingExtrudedMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getEdgeRatioField(), ParaMEDMEM::MEDCouplingFieldDiscretizationGauss::getLocalizationOfDiscValues(), ParaMEDMEM::MEDCouplingExtrudedMesh::getMeasureField(), ParaMEDMEM::MEDCouplingCMesh::getMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getMeasureFieldOnNode(), ParaMEDMEM::MEDCouplingUMesh::getPartBarycenterAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getPartMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getSkewField(), ParaMEDMEM::MEDCouplingUMesh::getWarpField(), inverse(), magnitude(), Max(), maxPerTuple(), Min(), Multiply(), negate(), ParaMEDMEM::ParaFIELD::ParaFIELD(), renumber(), renumberAndReduce(), ParaMEDMEM::MEDCouplingPointSet::renumberNodes2(), renumberR(), ParaMEDMEM::MEDCouplingTimeDiscretization::resizeForUnserialization(), ParaMEDMEM::MEDCouplingExtrudedMesh::resizeForUnserialization(), ParaMEDMEM::MEDCouplingCMesh::resizeForUnserialization(), ParaMEDMEM::MEDCouplingPointSet::resizeForUnserialization(), resizeForUnserialization(), ParaMEDMEM::MEDCouplingTwoTimeSteps::resizeForUnserialization(), ParaMEDMEM::MEDCouplingRemapper::reverseTransfer(), selectByTupleId(), selectByTupleRanges(), ParaMEDMEM::MEDCouplingExtrudedMesh::serialize(), ParaMEDMEM::MEDCouplingCMesh::serialize(), ParaMEDMEM::MEDCouplingTimeDiscretization::setUniformValue(), substr(), Substract(), and trace().
void DataArrayDouble::allocIfNecessary | ( | int | nbOfTuple, |
int | nbOfCompo | ||
) |
void DataArrayDouble::fillWithZero | ( | ) | throw (INTERP_KERNEL::Exception) |
References checkAllocated(), ParaMEDMEM::TimeLabel::declareAsNew(), and ParaMEDMEM::MemArray< T >::fillWithValue().
Referenced by ParaMEDMEM::MEDCouplingPointSet::renumberNodes2().
void DataArrayDouble::fillWithValue | ( | double | val | ) | throw (INTERP_KERNEL::Exception) |
Referenced by ParaMEDMEM::MEDCouplingTimeDiscretization::setUniformValue().
void DataArrayDouble::iota | ( | double | init = 0. | ) | throw (INTERP_KERNEL::Exception) |
bool DataArrayDouble::isUniform | ( | double | val, |
double | eps | ||
) | const throw (INTERP_KERNEL::Exception) |
void DataArrayDouble::sort | ( | ) | throw (INTERP_KERNEL::Exception) |
void DataArrayDouble::reverse | ( | ) | throw (INTERP_KERNEL::Exception) |
void DataArrayDouble::checkMonotonic | ( | bool | increasing, |
double | eps | ||
) | const throw (INTERP_KERNEL::Exception) |
This method check that (Maths) array consistently INCREASING or DECREASING in value, with at least absolute difference value of |eps| at each step. if not an exception will be thrown.
bool DataArrayDouble::isMonotonic | ( | bool | increasing, |
double | eps | ||
) | const throw (INTERP_KERNEL::Exception) |
This method check that (Maths) array consistently INCREASING or DECREASING in value, with at least absolute difference value of |eps| at each step.
std::string DataArrayDouble::repr | ( | ) | const |
References reprStream().
std::string DataArrayDouble::reprZip | ( | ) | const |
References reprZipStream().
void DataArrayDouble::writeVTK | ( | std::ostream & | ofs, |
int | indent, | ||
const char * | nameInFile | ||
) | const throw (INTERP_KERNEL::Exception) |
Referenced by ParaMEDMEM::MEDCouplingFieldDouble::WriteVTK().
void DataArrayDouble::reprStream | ( | std::ostream & | stream | ) | const |
References ParaMEDMEM::DataArray::_name, and reprWithoutNameStream().
Referenced by repr().
void DataArrayDouble::reprZipStream | ( | std::ostream & | stream | ) | const |
References ParaMEDMEM::DataArray::_name, and reprZipWithoutNameStream().
Referenced by reprZip().
void DataArrayDouble::reprWithoutNameStream | ( | std::ostream & | stream | ) | const |
Reimplemented from ParaMEDMEM::DataArray.
References ParaMEDMEM::DataArray::getNumberOfComponents(), and ParaMEDMEM::MemArray< T >::repr().
Referenced by ParaMEDMEM::MEDCouplingUMesh::advancedRepr(), reprStream(), and reprZipWithoutNameStream().
void DataArrayDouble::reprZipWithoutNameStream | ( | std::ostream & | stream | ) | const |
References ParaMEDMEM::DataArray::getNumberOfComponents(), reprWithoutNameStream(), and ParaMEDMEM::MemArray< T >::reprZip().
Referenced by reprZipStream().
bool DataArrayDouble::isEqual | ( | const DataArrayDouble & | other, |
double | prec | ||
) | const |
References ParaMEDMEM::DataArray::areInfoEquals(), and ParaMEDMEM::MemArray< T >::isEqual().
Referenced by ParaMEDMEM::MEDCouplingPointSet::areCoordsEqual(), ParaMEDMEM::MEDCouplingTimeDiscretization::isEqual(), ParaMEDMEM::MEDFileUMesh::isEqual(), and ParaMEDMEM::MEDCouplingTwoTimeSteps::isEqual().
bool DataArrayDouble::isEqualWithoutConsideringStr | ( | const DataArrayDouble & | other, |
double | prec | ||
) | const |
void DataArrayDouble::reAlloc | ( | int | nbOfTuples | ) | throw (INTERP_KERNEL::Exception) |
alloc or useArray should have been called before.
Referenced by ParaMEDMEM::MEDCouplingFieldDiscretization::renumberEntitiesFromN2OArr(), and ParaMEDMEM::MEDCouplingFieldDiscretization::renumberEntitiesFromO2NArr().
DataArrayInt * DataArrayDouble::convertToIntArr | ( | ) | const |
DataArrayDouble * DataArrayDouble::fromNoInterlace | ( | ) | const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * DataArrayDouble::toNoInterlace | ( | ) | const 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 renumberAndReduce.
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. 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::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::MergeNodesOnUMeshesSharingSameCoords(), and ParaMEDMEM::MEDCouplingPointSet::renumberNodes().
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 equivalent 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 | end2, | ||
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','end2') with steps of 'step'. Returns a newly created array.
References New().
DataArrayDouble * DataArrayDouble::selectByTupleRanges | ( | const std::vector< std::pair< int, int > > & | ranges | ) | const throw (INTERP_KERNEL::Exception) |
This method returns a newly allocated array that is the concatenation of all tuples ranges in param 'ranges'. Each pair in input 'ranges' is in [begin,end) format. If there is a range in 'ranges' so that end is before begin an exception will be thrown. If there is a range in 'ranges' so that end is greater than number of tuples of 'this', an exception will be thrown too.
References alloc(), checkAllocated(), ParaMEDMEM::DataArray::copyStringInfoFrom(), deepCpy(), getConstPointer(), ParaMEDMEM::DataArray::getNumberOfComponents(), ParaMEDMEM::DataArray::getNumberOfTuples(), and 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 !
Referenced by transpose().
void DataArrayDouble::transpose | ( | ) | throw (INTERP_KERNEL::Exception) |
This method makes the assumption that this is allocated. If not an INTERP_KERNEL::Exception will be raised. This method does not echange the values stored in this. Simply, the number of components before the call becomes the number of tuples and inversely the number of tuples becomes the number of components. WARNING the info on components can be alterated by this method.
References checkAllocated(), ParaMEDMEM::DataArray::getNumberOfTuples(), and rearrange().
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::findCommonTuples | ( | double | prec, |
int | limitTupleId, | ||
DataArrayInt *& | comm, | ||
DataArrayInt *& | commIndex | ||
) | const throw (INTERP_KERNEL::Exception) |
This methods searches for each tuple if there are any tuples in 'this' that are less far than 'prec' from n1. if any, these tuples are stored in out params comm and commIndex. The distance is computed using norm2. This method expects that 'this' is allocated and that the number of components is in [1,2,3]. If not an exception will be thrown. This method is typically used by MEDCouplingPointSet::findCommonNodes and MEDCouplingUMesh::mergeNodes. In case of success, commIndex->getNumberOfTuples()-1 gives the number of tuples groupes that are within distance 'prec'. comm->getNumberOfTuples()==commIndex->back() The returned pair of DataArrayInt instances ('comm','commIndex') is called Surjectived Format 2
prec | is an absolute precision. |
limitTupleId | is the limit tuple id. All tuples which id is strictly lower than 'limiTupleId' will not be merged each other. |
comm | out parameter (not inout). Number of components is equal to 1. |
commIndex | out parameter (not inout). Number of components is equal to 1. |
References ParaMEDMEM::DataArrayInt::New().
Referenced by ParaMEDMEM::MEDCouplingPointSet::findCommonNodes(), and ParaMEDMEM::MEDCouplingUMesh::MergeNodesOnUMeshesSharingSameCoords().
DataArrayDouble * DataArrayDouble::getDifferentValues | ( | double | prec, |
int | limitTupleId = -1 |
||
) | const throw (INTERP_KERNEL::Exception) |
This method returns a newly allocated object the user should deal with. This method works for arrays which have number of components into [1,2,3]. If not an exception will be thrown. This method returns the different values in 'this' using 'prec'. The different values are kept in the same order than 'this'. That is to say that returned DataArrayDouble instance is not systematically sorted.
prec | is an absolute precision. |
limitTupleId | is the limit tuple id. All tuples which id is strictly lower than 'limiTupleId' will not be merged each other. |
References ParaMEDMEM::DataArrayInt::BuildOld2NewArrayFromSurjectiveFormat2().
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().
void DataArrayDouble::setPartOfValuesAdv | ( | const DataArrayDouble * | a, |
const DataArrayInt * | tuplesSelec | ||
) | throw (INTERP_KERNEL::Exception) |
'this', 'a' and 'tuplesSelec' are expected to be defined. If not an exception will be thrown.
a | is an array having exactly the same number of components than 'this' |
tuplesSelec | is an array having exactly 2 components. The first one refers to the tuple ids of 'this' that will be set. The second one refers to the tuple ids of 'a' that will be used for setting. |
void DataArrayDouble::setContigPartOfSelectedValues | ( | int | tupleIdStart, |
const DataArrayDouble * | a, | ||
const DataArrayInt * | tuplesSelec | ||
) | throw (INTERP_KERNEL::Exception) |
'this', 'a' and 'tuplesSelec' are expected to be defined. If not an exception will be thrown. This is a method that is a specialization to DataArrayDouble::setPartOfValuesAdv method, except that here the tuple selection of 'a' is given by a range ('bg','end2' and 'step') rather than an explicite array of tuple ids (given by the 2nd component) and the feeding is done in 'this' contiguously starting from 'tupleIdStart'.
a | is an array having exactly the same number of components than 'this' |
void DataArrayDouble::setContigPartOfSelectedValues2 | ( | int | tupleIdStart, |
const DataArrayDouble * | a, | ||
int | bg, | ||
int | end2, | ||
int | step | ||
) | throw (INTERP_KERNEL::Exception) |
'this' and 'a' are expected to be defined. If not an exception will be thrown. This is a method that is a specialization to DataArrayDouble::setContigPartOfSelectedValues method, except that here the tuple selection is givenin a is done by a range ('bg','end2' and 'step') rather than an explicite array of tuple ids.
a | is an array having exactly the same number of components than 'this' |
References ParaMEDMEM::DataArray::GetNumberOfItemGivenBES().
void ParaMEDMEM::DataArrayDouble::getTuple | ( | int | tupleId, |
double * | res | ||
) | const |
References ParaMEDMEM::DataArray::_info_on_compo, and ParaMEDMEM::MemArray< T >::getConstPointerLoc().
Referenced by ParaMEDMEM::MEDCouplingFieldDiscretizationP1::getValueInCell(), ParaMEDMEM::MEDCouplingFieldDiscretizationP0::getValueOn(), ParaMEDMEM::MEDCouplingFieldDiscretizationP0::getValueOnMulti(), ParaMEDMEM::MEDCouplingFieldDiscretizationP0::getValueOnPos(), and ParaMEDMEM::MEDCouplingFieldDiscretizationP1::getValueOnPos().
double ParaMEDMEM::DataArrayDouble::getIJ | ( | int | tupleId, |
int | compoId | ||
) | const |
References ParaMEDMEM::DataArray::_info_on_compo.
double DataArrayDouble::back | ( | ) | const throw (INTERP_KERNEL::Exception) |
This method returns the last element in 'this'. So this method makes the hypothesis that 'this' is allocated. This method works only for arrays that have exactly number of components equal to 1. If not an exception is thrown. And to finish this method works for arrays that have number of tuples >= 1.
References checkAllocated(), getConstPointer(), ParaMEDMEM::DataArray::getNumberOfComponents(), and ParaMEDMEM::DataArray::getNumberOfTuples().
double DataArrayDouble::getIJSafe | ( | int | tupleId, |
int | compoId | ||
) | const throw (INTERP_KERNEL::Exception) |
This method is equivalent to DataArrayDouble::getIJ except that here tupleId is checked to be in [0,this->getNumberOfTuples()) and compoId to be in [0,this->getNumberOfComponents()). If one of these check fails an INTERP_KERNEL::Exception will be thrown. So this method is safe but expensive if used to go through all data of this.
void ParaMEDMEM::DataArrayDouble::setIJ | ( | int | tupleId, |
int | compoId, | ||
double | newVal | ||
) |
void ParaMEDMEM::DataArrayDouble::setIJSilent | ( | int | tupleId, |
int | compoId, | ||
double | newVal | ||
) |
References ParaMEDMEM::DataArray::_info_on_compo.
double* ParaMEDMEM::DataArrayDouble::getPointer | ( | ) |
References ParaMEDMEM::MemArray< T >::getPointer().
Referenced by abs(), Add(), Aggregate(), applyFunc(), applyFunc2(), applyFunc3(), ParaMEDMEM::MEDCouplingUMesh::buildDirectionVectorField(), ParaMEDMEM::MEDCouplingCMesh::buildOrthogonalField(), ParaMEDMEM::MEDCouplingUMesh::buildOrthogonalField(), ParaMEDMEM::MEDCouplingUMesh::buildPartOrthogonalField(), changeNbOfComponents(), ParaMEDMEM::DataArrayInt::convertToDblArr(), CrossProduct(), ParaMEDMEM::DataArrayDoubleIterator::DataArrayDoubleIterator(), determinant(), deviator(), Divide(), Dot(), doublyContractedProduct(), eigenValues(), eigenVectors(), fromCylToCart(), fromPolarToCart(), fromSpherToCart(), ParaMEDMEM::MEDCouplingUMesh::getAspectRatioField(), ParaMEDMEM::MEDCouplingCMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingCMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingExtrudedMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getEdgeRatioField(), ParaMEDMEM::MEDCouplingUMesh::getLevArrPerCellTypes(), ParaMEDMEM::MEDCouplingFieldDiscretizationGauss::getLocalizationOfDiscValues(), ParaMEDMEM::MEDCouplingExtrudedMesh::getMeasureField(), ParaMEDMEM::MEDCouplingCMesh::getMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getMeasureFieldOnNode(), ParaMEDMEM::MEDCouplingUMesh::getPartBarycenterAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getPartMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getSkewField(), ParaMEDMEM::MEDCouplingUMesh::getWarpField(), inverse(), magnitude(), Max(), maxPerTuple(), Min(), ParaMEDMEM::InterpolationMatrix::multiply(), Multiply(), negate(), ParaMEDMEM::StructuredCoincidentDEC::prepareSourceDE(), ParaMEDMEM::ExplicitCoincidentDEC::prepareSourceDE(), ParaMEDMEM::StructuredCoincidentDEC::recvData(), renumber(), renumberAndReduce(), ParaMEDMEM::MEDCouplingFieldDiscretization::renumberEntitiesFromN2OArr(), ParaMEDMEM::MEDCouplingFieldDiscretization::renumberEntitiesFromO2NArr(), renumberInPlace(), renumberInPlaceR(), 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::MEDCouplingPointSet::translate(), ParaMEDMEM::InterpolationMatrix::transposeMultiply(), and ParaMEDMEM::MEDCouplingExtrudedMesh::unserialization().
|
static |
References ParaMEDMEM::RefCountObject::decrRef(), and ParaMEDMEM::RefCountObject::incrRef().
Referenced by ParaMEDMEM::MEDCouplingUMesh::tessellate2DCurve().
const double* ParaMEDMEM::DataArrayDouble::getConstPointer | ( | ) | const |
References ParaMEDMEM::MemArray< T >::getConstPointer().
Referenced by Add(), back(), begin(), ParaMEDMEM::MEDCouplingUMesh::buildDirectionVectorField(), ParaMEDMEM::MEDCouplingUMesh::buildOrthogonalField(), ParaMEDMEM::MEDCouplingUMesh::buildPartOrthogonalField(), checkNoNullValues(), convertToIntArr(), determinant(), deviator(), doubleValue(), doublyContractedProduct(), eigenValues(), eigenVectors(), end(), findCommonTuplesAlg(), ParaMEDMEM::MEDCouplingPointSet::findNodeIdsNearPointAlg(), fromCylToCart(), fromPolarToCart(), fromSpherToCart(), ParaMEDMEM::MEDCouplingUMesh::getAspectRatioField(), getAverageValue(), ParaMEDMEM::MEDCouplingCMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getBarycenterAndOwner(), ParaMEDMEM::MEDCouplingExtrudedMesh::getBoundingBox(), ParaMEDMEM::MEDCouplingCMesh::getBoundingBox(), ParaMEDMEM::MEDCouplingUMesh::getBoundingBoxForBBTree(), ParaMEDMEM::MEDCouplingPointSet::getCaracteristicDimension(), ParaMEDMEM::MEDCouplingUMesh::getCellsContainingPoints(), ParaMEDMEM::MEDCouplingUMeshDesc::getCellsInBoundingBox(), ParaMEDMEM::MEDCouplingUMesh::getCellsInBoundingBox(), ParaMEDMEM::MEDCouplingCMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingExtrudedMesh::getCoordinatesAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getEdgeRatioField(), ParaMEDMEM::MEDCouplingExtrudedMesh::getMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getMeasureFieldOnNode(), ParaMEDMEM::MEDCouplingUMesh::getPartBarycenterAndOwner(), ParaMEDMEM::MEDCouplingUMesh::getPartMeasureField(), ParaMEDMEM::MEDCouplingUMesh::getSkewField(), ParaMEDMEM::MEDCouplingUMesh::getWarpField(), ParaMEDMEM::MEDCouplingFieldDiscretization::integral(), inverse(), isAllocated(), magnitude(), maxPerTuple(), Multiply(), negate(), norm2(), ParaMEDMEM::MEDCouplingFieldDiscretization::normL1(), ParaMEDMEM::MEDCouplingFieldDiscretization::normL2(), normMax(), ParaMEDMEM::MEDCouplingUMesh::orientCorrectlyPolyhedrons(), ParaMEDMEM::MEDCouplingUMesh::project1D(), ParaMEDMEM::MEDCouplingPointSet::project2DCellOnXY(), renumber(), renumberAndReduce(), ParaMEDMEM::MEDCouplingFieldDiscretization::renumberEntitiesFromN2OArr(), ParaMEDMEM::MEDCouplingFieldDiscretization::renumberEntitiesFromO2NArr(), renumberInPlace(), renumberInPlaceR(), ParaMEDMEM::MEDCouplingPointSet::renumberNodes2(), renumberR(), selectByTupleId(), selectByTupleRanges(), ParaMEDMEM::MEDCouplingExtrudedMesh::serialize(), trace(), ParaMEDMEM::MEDCouplingExtrudedMesh::unserialization(), and ParaMEDMEM::MEDCouplingCMesh::unserialization().
DataArrayDoubleIterator * DataArrayDouble::iterator | ( | ) |
const double* ParaMEDMEM::DataArrayDouble::begin | ( | ) | const |
const double* ParaMEDMEM::DataArrayDouble::end | ( | ) | const |
References getConstPointer(), and ParaMEDMEM::DataArray::getNbOfElems().
Referenced by getMaxValueInArray(), and getMinValueInArray().
void DataArrayDouble::useArray | ( | const double * | array, |
bool | ownership, | ||
DeallocType | type, | ||
int | nbOfTuple, | ||
int | nbOfCompo | ||
) |
References ParaMEDMEM::DataArray::_info_on_compo, ParaMEDMEM::DataArray::_nb_of_tuples, ParaMEDMEM::TimeLabel::declareAsNew(), and ParaMEDMEM::MemArray< T >::useArray().
Referenced by ParaMEDMEM::DataArrayDoubleTuple::buildDADouble(), fromNoInterlace(), ParaMEDMEM::ExplicitCoincidentDEC::recvData(), and toNoInterlace().
void ParaMEDMEM::DataArrayDouble::writeOnPlace | ( | int | id, |
double | element0, | ||
const double * | others, | ||
int | sizeOfOthers | ||
) |
References ParaMEDMEM::MemArray< T >::writeOnPlace().
void DataArrayDouble::checkNoNullValues | ( | ) | const throw (INTERP_KERNEL::Exception) |
References getConstPointer(), and ParaMEDMEM::DataArray::getNbOfElems().
void DataArrayDouble::getMinMaxPerComponent | ( | double * | bounds | ) | const throw (INTERP_KERNEL::Exception) |
This method assume that this is allocated. If not an INTERP_KERNEL::Exception will be thrown. This method fills bounds params like that : bounds[0]=XMin, bounds[1]=XMax, bounds[2]=YMin, bounds[3]=YMax... Where X refers to component #0, and Y to component #1... This method set 2*this->getNumberOfComponents() elements in bounds, so it is up to the caller to allocated enough space before calling this method.
[out] | bounds | array of size 2*this->getNumberOfComponents(). |
double DataArrayDouble::getMaxValue | ( | int & | tupleId | ) | const throw (INTERP_KERNEL::Exception) |
double DataArrayDouble::getMaxValueInArray | ( | ) | const throw (INTERP_KERNEL::Exception) |
Idem to DataArrayDouble::getMaxValue expect that here number of components can be >=1.
References begin(), checkAllocated(), and end().
double DataArrayDouble::getMinValue | ( | int & | tupleId | ) | const throw (INTERP_KERNEL::Exception) |
double DataArrayDouble::getMinValueInArray | ( | ) | const throw (INTERP_KERNEL::Exception) |
Idem to DataArrayDouble::getMinValue expect that here number of components can be >=1.
References begin(), checkAllocated(), and end().
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) |
double DataArrayDouble::norm2 | ( | ) | const throw (INTERP_KERNEL::Exception) |
References checkAllocated(), getConstPointer(), and ParaMEDMEM::DataArray::getNbOfElems().
Referenced by ParaMEDMEM::MEDCouplingFieldDouble::norm2().
double DataArrayDouble::normMax | ( | ) | const throw (INTERP_KERNEL::Exception) |
References abs(), checkAllocated(), getConstPointer(), and ParaMEDMEM::DataArray::getNbOfElems().
Referenced by ParaMEDMEM::MEDCouplingFieldDouble::normMax().
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::fromCylToCart | ( | ) | const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * DataArrayDouble::fromSpherToCart | ( | ) | const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * DataArrayDouble::doublyContractedProduct | ( | ) | const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * DataArrayDouble::determinant | ( | ) | 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) |
DataArrayDouble * DataArrayDouble::magnitude | ( | ) | const throw (INTERP_KERNEL::Exception) |
DataArrayDouble * DataArrayDouble::maxPerTuple | ( | ) | const throw (INTERP_KERNEL::Exception) |
void DataArrayDouble::sortPerTuple | ( | bool | asc | ) | throw (INTERP_KERNEL::Exception) |
void DataArrayDouble::abs | ( | ) | throw (INTERP_KERNEL::Exception) |
References checkAllocated(), ParaMEDMEM::DataArray::getNbOfElems(), and getPointer().
Referenced by normMax().
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::negate | ( | ) | const throw (INTERP_KERNEL::Exception) |
This method returns a newly allocated array containing the application of negate on this. This method throws an INTERP_KERNEL::Exception if this is not allocated.
References alloc(), checkAllocated(), ParaMEDMEM::DataArray::copyStringInfoFrom(), getConstPointer(), ParaMEDMEM::DataArray::getNumberOfComponents(), ParaMEDMEM::DataArray::getNumberOfTuples(), getPointer(), and New().
DataArrayDouble * DataArrayDouble::applyFunc | ( | int | nbOfComp, |
FunctionToEvaluate | func | ||
) | const throw (INTERP_KERNEL::Exception) |
References alloc(), ParaMEDMEM::RefCountObject::decrRef(), getPointer(), and New().
DataArrayDouble * DataArrayDouble::applyFunc | ( | int | nbOfComp, |
const char * | func | ||
) | const throw (INTERP_KERNEL::Exception) |
This method returns a newly allocated array the caller should deal with. The returned array will have 'nbOfComp' components (that can be different from this->getNumberOfComponents()) contrary to the other DataArrayDouble::applyFunc overload method.
References alloc(), ParaMEDMEM::RefCountObject::decrRef(), getPointer(), and New().
DataArrayDouble * DataArrayDouble::applyFunc | ( | const char * | func | ) | const throw (INTERP_KERNEL::Exception) |
References alloc(), ParaMEDMEM::RefCountObject::decrRef(), getPointer(), and New().
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) |
|
static |
Referenced by ParaMEDMEM::MEDCouplingNoTimeLabel::aggregate(), ParaMEDMEM::MEDCouplingWithTimeStep::aggregate(), ParaMEDMEM::MEDCouplingConstOnTimeInterval::aggregate(), ParaMEDMEM::MEDCouplingLinearTime::aggregate(), ParaMEDMEM::MEDCouplingPointSet::MergeNodesArray(), and ParaMEDMEM::MEDCouplingUMesh::PutUMeshesOnSameAggregatedCoords().
|
static |
References alloc(), begin(), ParaMEDMEM::DataArray::copyStringInfoFrom(), getPointer(), and New().
|
static |
|
static |
References checkAllocated(), and New().
|
static |
References alloc(), checkAllocated(), getPointer(), New(), ParaMEDMEM::DataArray::setInfoOnComponent(), and ParaMEDMEM::DataArray::setName().
Referenced by ParaMEDMEM::MEDCouplingNoTimeLabel::dot(), ParaMEDMEM::MEDCouplingWithTimeStep::dot(), ParaMEDMEM::MEDCouplingConstOnTimeInterval::dot(), and ParaMEDMEM::MEDCouplingLinearTime::dot().
|
static |
References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), ParaMEDMEM::DataArray::getNumberOfComponents(), getPointer(), and New().
Referenced by ParaMEDMEM::MEDCouplingNoTimeLabel::crossProduct(), ParaMEDMEM::MEDCouplingWithTimeStep::crossProduct(), ParaMEDMEM::MEDCouplingConstOnTimeInterval::crossProduct(), and ParaMEDMEM::MEDCouplingLinearTime::crossProduct().
|
static |
References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), ParaMEDMEM::DataArray::getNumberOfComponents(), getPointer(), and New().
Referenced by ParaMEDMEM::MEDCouplingNoTimeLabel::max(), ParaMEDMEM::MEDCouplingWithTimeStep::max(), ParaMEDMEM::MEDCouplingConstOnTimeInterval::max(), and ParaMEDMEM::MEDCouplingLinearTime::max().
|
static |
References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), ParaMEDMEM::DataArray::getNumberOfComponents(), getPointer(), and New().
Referenced by ParaMEDMEM::MEDCouplingNoTimeLabel::min(), ParaMEDMEM::MEDCouplingWithTimeStep::min(), ParaMEDMEM::MEDCouplingConstOnTimeInterval::min(), and ParaMEDMEM::MEDCouplingLinearTime::min().
|
static |
References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), getConstPointer(), ParaMEDMEM::DataArray::getNumberOfTuples(), getPointer(), and New().
Referenced by ParaMEDMEM::MEDCouplingNoTimeLabel::add(), ParaMEDMEM::MEDCouplingWithTimeStep::add(), ParaMEDMEM::MEDCouplingConstOnTimeInterval::add(), and ParaMEDMEM::MEDCouplingLinearTime::add().
void DataArrayDouble::addEqual | ( | const DataArrayDouble * | other | ) | throw (INTERP_KERNEL::Exception) |
|
static |
References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), ParaMEDMEM::DataArray::getNumberOfTuples(), getPointer(), and New().
Referenced by ParaMEDMEM::MEDCouplingNoTimeLabel::substract(), ParaMEDMEM::MEDCouplingWithTimeStep::substract(), ParaMEDMEM::MEDCouplingConstOnTimeInterval::substract(), and ParaMEDMEM::MEDCouplingLinearTime::substract().
void DataArrayDouble::substractEqual | ( | const DataArrayDouble * | other | ) | throw (INTERP_KERNEL::Exception) |
|
static |
References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), getConstPointer(), ParaMEDMEM::DataArray::getNumberOfTuples(), getPointer(), and New().
Referenced by ParaMEDMEM::MEDCouplingNoTimeLabel::multiply(), ParaMEDMEM::MEDCouplingWithTimeStep::multiply(), ParaMEDMEM::MEDCouplingConstOnTimeInterval::multiply(), and ParaMEDMEM::MEDCouplingLinearTime::multiply().
void DataArrayDouble::multiplyEqual | ( | const DataArrayDouble * | other | ) | throw (INTERP_KERNEL::Exception) |
Referenced by ParaMEDMEM::MEDCouplingFieldDouble::getWeightedAverageValue(), ParaMEDMEM::MEDCouplingNoTimeLabel::multiplyEqual(), ParaMEDMEM::MEDCouplingWithTimeStep::multiplyEqual(), ParaMEDMEM::MEDCouplingConstOnTimeInterval::multiplyEqual(), and ParaMEDMEM::MEDCouplingLinearTime::multiplyEqual().
|
static |
References alloc(), ParaMEDMEM::DataArray::copyStringInfoFrom(), ParaMEDMEM::DataArray::getNumberOfTuples(), getPointer(), and New().
Referenced by ParaMEDMEM::MEDCouplingNoTimeLabel::divide(), ParaMEDMEM::MEDCouplingWithTimeStep::divide(), ParaMEDMEM::MEDCouplingConstOnTimeInterval::divide(), and ParaMEDMEM::MEDCouplingLinearTime::divide().
void DataArrayDouble::divideEqual | ( | const DataArrayDouble * | other | ) | throw (INTERP_KERNEL::Exception) |
|
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().
|
protected |
References getConstPointer().