#include <MEDCouplingMemArray.hxx>

Public Member Functions | |
| bool | isAllocated () const |
| void | checkAllocated () 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) |
| 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) |
| alloc or useArray should have been called before. | |
| 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 end, int step) 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) |
| 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 | 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) |
| 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 | 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 * | 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 |
| nothing to do here because this class does not aggregate any TimeLabel instance. | |
| 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 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) |
Private Member Functions | |
| DataArrayDouble () | |
Private Attributes | |
| MemArray< double > | _mem |
| ParaMEDMEM.DataArrayDouble.DataArrayDouble | ( | ) | [private] |
| DataArrayDouble * DataArrayDouble::New | ( | ) | [static] |
References ParaMEDMEM.DataArrayDouble.DataArrayDouble().
| bool DataArrayDouble::isAllocated | ( | ) | const |
References ParaMEDMEM.DataArrayDouble.getConstPointer().
| void DataArrayDouble::checkAllocated | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.isAllocated().
| DataArrayDouble * DataArrayDouble::deepCpy | ( | ) | const |
References ParaMEDMEM.DataArrayDouble.DataArrayDouble().
| DataArrayDouble * DataArrayDouble::performCpy | ( | bool | deepCpy | ) | const |
References ParaMEDMEM.DataArrayDouble.deepCpy(), and ParaMEDMEM.RefCountObject.incrRef().
| void DataArrayDouble::cpyFrom | ( | const DataArrayDouble & | other | ) | throw (INTERP_KERNEL::Exception) |
References medClient_test.nbOfComp.
| void DataArrayDouble::fillWithZero | ( | ) | throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.fillWithValue().
| void DataArrayDouble::fillWithValue | ( | double | val | ) | throw (INTERP_KERNEL::Exception) |
| void DataArrayDouble::iota | ( | double | init = 0. | ) | throw (INTERP_KERNEL::Exception) |
References init.
| 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 ParaMEDMEM.DataArrayDouble.reprStream(), and testMEDMEM.ret.
| std::string DataArrayDouble::reprZip | ( | ) | const |
References ParaMEDMEM.DataArrayDouble.reprZipStream(), and testMEDMEM.ret.
| void DataArrayDouble::reprStream | ( | std::ostream & | stream | ) | const |
| void DataArrayDouble::reprZipStream | ( | std::ostream & | stream | ) | const |
| void DataArrayDouble::reprWithoutNameStream | ( | std::ostream & | stream | ) | const |
Reimplemented from ParaMEDMEM.DataArray.
References ParaMEDMEM.DataArrayDouble._mem, ParaMEDMEM.DataArray.getNumberOfComponents(), and ParaMEDMEM.MemArray< T >.repr().
| void DataArrayDouble::reprZipWithoutNameStream | ( | std::ostream & | stream | ) | const |
| bool DataArrayDouble::isEqual | ( | const DataArrayDouble & | other, |
| double | prec | ||
| ) | const |
| bool DataArrayDouble::isEqualWithoutConsideringStr | ( | const DataArrayDouble & | other, |
| double | prec | ||
| ) | const |
References ParaMEDMEM.DataArrayDouble._mem, and ParaMEDMEM.MemArray< T >.isEqual().
| void DataArrayDouble::reAlloc | ( | int | nbOfTuples | ) | throw (INTERP_KERNEL::Exception) |
alloc or useArray should have been called before.
| DataArrayInt * DataArrayDouble::convertToIntArr | ( | ) | const |
References ParaMEDMEM.DataArrayInt.alloc(), ParaMEDMEM.DataArray.copyStringInfoFrom(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNbOfElems(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayInt.getPointer(), ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::fromNoInterlace | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble._mem, ParaMEDMEM.CPP_DEALLOC, ParaMEDMEM.MemArray< T >.fromNoInterlace(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.MemArray< T >.isNull(), ParaMEDMEM.DataArrayDouble.New(), testMEDMEM.ret, dumpMEDMEM.tab, and ParaMEDMEM.DataArrayDouble.useArray().
| DataArrayDouble * DataArrayDouble::toNoInterlace | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble._mem, ParaMEDMEM.CPP_DEALLOC, ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.MemArray< T >.isNull(), ParaMEDMEM.DataArrayDouble.New(), testMEDMEM.ret, dumpMEDMEM.tab, ParaMEDMEM.MemArray< T >.toNoInterlace(), and ParaMEDMEM.DataArrayDouble.useArray().
| 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(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), and ParaMEDMEM.DataArrayDouble.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(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), and ParaMEDMEM.DataArrayDouble.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 ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArray.copyStringInfoFrom(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| 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 ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArray.copyStringInfoFrom(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| 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 ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArray.copyStringInfoFrom(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| 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 ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArray.copyStringInfoFrom(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArrayDouble.getPointer(), med_test2.nbComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| 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 med_test2.nbComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| 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 med_test1.end, med_test2.nbComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| 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 ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArray.copyStringInfoFrom(), ParaMEDMEM.DataArrayDouble.getPointer(), med_test2.nbComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| 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 ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArrayDouble.getPointer(), ParaMEDMEM.DataArrayDouble.New(), testMEDMEM.ret, ParaMEDMEM.DataArray.setInfoOnComponent(), and ParaMEDMEM.DataArray.setName().
| DataArrayDouble * DataArrayDouble::keepSelectedComponents | ( | const std::vector< int > & | compoIds | ) | const throw (INTERP_KERNEL::Exception) |
References Med_Gen_test.it, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| 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) |
References testGaussLocalization.a.
| 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 testGaussLocalization.a, ParaMEDMEM.DataArray.CheckClosingParInRange(), ParaMEDMEM.DataArray.CheckValueInRange(), ParaMEDMEM.DataArray.GetNumberOfItemGivenBES(), medcorba_test.msg, and med_test2.nbComp.
| 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 testGaussLocalization.a, ParaMEDMEM.DataArray.CheckClosingParInRange(), ParaMEDMEM.DataArray.CheckValueInRange(), ParaMEDMEM.DataArray.GetNumberOfItemGivenBES(), medcorba_test.msg, and med_test2.nbComp.
| 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 testGaussLocalization.a, ParaMEDMEM.DataArray.CheckValueInRange(), medcorba_test.msg, and med_test2.nbComp.
| 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 testGaussLocalization.a, ParaMEDMEM.DataArray.CheckValueInRange(), and med_test2.nbComp.
| 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 testGaussLocalization.a, ParaMEDMEM.DataArray.CheckClosingParInRange(), ParaMEDMEM.DataArray.CheckValueInRange(), ParaMEDMEM.DataArray.GetNumberOfItemGivenBES(), medcorba_test.msg, and med_test2.nbComp.
| 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 testGaussLocalization.a, ParaMEDMEM.DataArray.CheckClosingParInRange(), ParaMEDMEM.DataArray.CheckValueInRange(), ParaMEDMEM.DataArray.GetNumberOfItemGivenBES(), medcorba_test.msg, and med_test2.nbComp.
References ParaMEDMEM.DataArray._info_on_compo, and ParaMEDMEM.DataArrayDouble._mem.
References ParaMEDMEM.DataArray._info_on_compo, and ParaMEDMEM.DataArrayDouble._mem.
| double* ParaMEDMEM.DataArrayDouble.getPointer | ( | ) | const |
References ParaMEDMEM.DataArrayDouble._mem, and ParaMEDMEM.MemArray< T >.getPointer().
| void DataArrayDouble::SetArrayIn | ( | DataArrayDouble * | newArray, |
| DataArrayDouble *& | arrayToSet | ||
| ) | [static] |
References ParaMEDMEM.RefCountObject.decrRef(), and ParaMEDMEM.RefCountObject.incrRef().
| const double* ParaMEDMEM.DataArrayDouble.getConstPointer | ( | ) | const |
| void DataArrayDouble::useArray | ( | const double * | array, |
| bool | ownership, | ||
| DeallocType | type, | ||
| int | nbOfTuple, | ||
| int | nbOfCompo | ||
| ) |
| void ParaMEDMEM.DataArrayDouble.writeOnPlace | ( | int | id, |
| double | element0, | ||
| const double * | others, | ||
| int | sizeOfOthers | ||
| ) |
References ParaMEDMEM.DataArrayDouble._mem, and ParaMEDMEM.MemArray< T >.writeOnPlace().
| 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) |
References testMEDMEM.ret.
| double DataArrayDouble::getMinValue2 | ( | DataArrayInt *& | tupleIds | ) | const throw (INTERP_KERNEL::Exception) |
References testMEDMEM.ret.
| double DataArrayDouble::getAverageValue | ( | ) | const throw (INTERP_KERNEL::Exception) |
| void DataArrayDouble::accumulate | ( | double * | res | ) | const throw (INTERP_KERNEL::Exception) |
References MEDMEM.fill().
| double DataArrayDouble::accumulate | ( | int | compId | ) | const throw (INTERP_KERNEL::Exception) |
References testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::fromPolarToCart | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::fromCylToCart | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getInfoOnComponent(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), testMEDMEM.ret, and ParaMEDMEM.DataArray.setInfoOnComponent().
| DataArrayDouble * DataArrayDouble::fromSpherToCart | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::doublyContractedProduct | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::determinant | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArrayDouble.checkAllocated(), ParaMEDMEM.RefCountObject.decrRef(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::eigenValues | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), INTERP_KERNEL.computeEigenValues6(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::eigenVectors | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), INTERP_KERNEL.computeEigenValues6(), INTERP_KERNEL.computeEigenVectorForEigenValue6(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::inverse | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::trace | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::deviator | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::magnitude | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArrayDouble.checkAllocated(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::maxPerTuple | ( | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.DataArrayDouble.checkAllocated(), ParaMEDMEM.DataArrayDouble.getConstPointer(), ParaMEDMEM.DataArray.getNumberOfComponents(), ParaMEDMEM.DataArray.getNumberOfTuples(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| void DataArrayDouble::sortPerTuple | ( | bool | asc | ) | throw (INTERP_KERNEL::Exception) |
References medClient_test.nbOfComp.
| void DataArrayDouble::applyLin | ( | double | a, |
| double | b, | ||
| int | compoId | ||
| ) | throw (INTERP_KERNEL::Exception) |
References testGaussLocalization.a, testGaussLocalization.b, and medClient_test.nbOfComp.
| void DataArrayDouble::applyLin | ( | double | a, |
| double | b | ||
| ) | throw (INTERP_KERNEL::Exception) |
References testGaussLocalization.a, and testGaussLocalization.b.
| 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) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.RefCountObject.decrRef(), INTERP_KERNEL.ExprParser.evaluateExpr(), ParaMEDMEM.DataArrayDouble.getPointer(), INTERP_KERNEL.ExprParser.getTrueSetOfVars(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), INTERP_KERNEL.ExprParser.parse(), INTERP_KERNEL.ExprParser.prepareExprEvaluation(), and INTERP_KERNEL.Exception.what().
| DataArrayDouble * DataArrayDouble::applyFunc | ( | const char * | func | ) | const throw (INTERP_KERNEL::Exception) |
References ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.RefCountObject.decrRef(), INTERP_KERNEL.ExprParser.evaluateExpr(), ParaMEDMEM.DataArrayDouble.getPointer(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), INTERP_KERNEL.ExprParser.parse(), INTERP_KERNEL.ExprParser.prepareExprEvaluationVec(), and INTERP_KERNEL.Exception.what().
| 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 ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.RefCountObject.decrRef(), INTERP_KERNEL.ExprParser.evaluateExpr(), ParaMEDMEM.DataArrayDouble.getPointer(), INTERP_KERNEL.ExprParser.getTrueSetOfVars(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), INTERP_KERNEL.ExprParser.parse(), INTERP_KERNEL.ExprParser.prepareExprEvaluation(), and INTERP_KERNEL.Exception.what().
| 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 ParaMEDMEM.DataArrayDouble.alloc(), ParaMEDMEM.RefCountObject.decrRef(), INTERP_KERNEL.ExprParser.evaluateExpr(), ParaMEDMEM.DataArrayDouble.getPointer(), INTERP_KERNEL.ExprParser.getTrueSetOfVars(), medClient_test.nbOfComp, ParaMEDMEM.DataArrayDouble.New(), INTERP_KERNEL.ExprParser.parse(), INTERP_KERNEL.ExprParser.prepareExprEvaluation(), and INTERP_KERNEL.Exception.what().
| 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 DataArrayDouble * | a1, |
| const DataArrayDouble * | a2 | ||
| ) | throw (INTERP_KERNEL::Exception) [static] |
| DataArrayDouble * DataArrayDouble::Aggregate | ( | const std::vector< const DataArrayDouble * > & | a | ) | throw (INTERP_KERNEL::Exception) [static] |
| DataArrayDouble * DataArrayDouble::Meld | ( | const DataArrayDouble * | a1, |
| const DataArrayDouble * | a2 | ||
| ) | throw (INTERP_KERNEL::Exception) [static] |
| DataArrayDouble * DataArrayDouble::Meld | ( | const std::vector< const DataArrayDouble * > & | a | ) | throw (INTERP_KERNEL::Exception) [static] |
References testGaussLocalization.a, Med_Gen_test.it, ParaMEDMEM.DataArrayDouble.New(), and testMEDMEM.ret.
| DataArrayDouble * DataArrayDouble::Dot | ( | const DataArrayDouble * | a1, |
| const DataArrayDouble * | a2 | ||
| ) | throw (INTERP_KERNEL::Exception) [static] |
| DataArrayDouble * DataArrayDouble::CrossProduct | ( | const DataArrayDouble * | a1, |
| const DataArrayDouble * | a2 | ||
| ) | throw (INTERP_KERNEL::Exception) [static] |
| DataArrayDouble * DataArrayDouble::Max | ( | const DataArrayDouble * | a1, |
| const DataArrayDouble * | a2 | ||
| ) | throw (INTERP_KERNEL::Exception) [static] |
| DataArrayDouble * DataArrayDouble::Min | ( | const DataArrayDouble * | a1, |
| const DataArrayDouble * | a2 | ||
| ) | throw (INTERP_KERNEL::Exception) [static] |
| DataArrayDouble * DataArrayDouble::Add | ( | const DataArrayDouble * | a1, |
| const DataArrayDouble * | a2 | ||
| ) | throw (INTERP_KERNEL::Exception) [static] |
| void DataArrayDouble::addEqual | ( | const DataArrayDouble * | other | ) | throw (INTERP_KERNEL::Exception) |
References medClient_test.nbOfComp.
| DataArrayDouble * DataArrayDouble::Substract | ( | const DataArrayDouble * | a1, |
| const DataArrayDouble * | a2 | ||
| ) | throw (INTERP_KERNEL::Exception) [static] |
| void DataArrayDouble::substractEqual | ( | const DataArrayDouble * | other | ) | throw (INTERP_KERNEL::Exception) |
References medClient_test.nbOfComp.
| DataArrayDouble * DataArrayDouble::Multiply | ( | const DataArrayDouble * | a1, |
| const DataArrayDouble * | a2 | ||
| ) | throw (INTERP_KERNEL::Exception) [static] |
| void DataArrayDouble::multiplyEqual | ( | const DataArrayDouble * | other | ) | throw (INTERP_KERNEL::Exception) |
References medClient_test.nbOfComp.
| DataArrayDouble * DataArrayDouble::Divide | ( | const DataArrayDouble * | a1, |
| const DataArrayDouble * | a2 | ||
| ) | throw (INTERP_KERNEL::Exception) [static] |
| void DataArrayDouble::divideEqual | ( | const DataArrayDouble * | other | ) | throw (INTERP_KERNEL::Exception) |
References medClient_test.nbOfComp.
| 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 ParaMEDMEM.DataArrayDouble.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 ParaMEDMEM.DataArrayDouble.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 ParaMEDMEM.DataArrayDouble.alloc(), and medClient_test.nbOfComp.
| 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(), ParaMEDMEM.DataArrayDouble.isAllocated(), ParaMEDMEM.DataArray.setInfoOnComponent(), and ParaMEDMEM.DataArray.setName().
MemArray<double> ParaMEDMEM.DataArrayDouble._mem [private] |