

Public Member Functions | |
| void | abs () |
| void | addEqual (const typename Traits< T >::ArrayType *other) |
| void | aggregate (const typename Traits< T >::ArrayType *other) |
| void | applyLin (T a, T b) |
| void | applyLin (T a, T b, std::size_t compoId) |
| Traits< T >::ArrayType * | computeAbs () const |
| MCAuto< DataArrayDouble > | convertToDblArr () const |
| MCAuto< DataArrayFloat > | convertToFloatArr () const |
| MCAuto< DataArrayInt64 > | convertToInt64Arr () const |
| MCAuto< DataArrayInt > | convertToIntArr () const |
| template<class U > | |
| MCAuto< typename Traits< U >::ArrayType > | convertToOtherTypeOfArr () const |
| void | divideEqual (const typename Traits< T >::ArrayType *other) |
| Traits< T >::ArrayType * | duplicateEachTupleNTimes (mcIdType nbTimes) const |
| MCAuto< typename Traits< T >::ArrayType > | duplicateNTimes (mcIdType nbTimes) const |
| MCAuto< DataArrayIdType > | findIdsGreaterOrEqualTo (T val) const |
| MCAuto< DataArrayIdType > | findIdsGreaterThan (T val) const |
| MCAuto< DataArrayIdType > | findIdsLowerOrEqualTo (T val) const |
| MCAuto< DataArrayIdType > | findIdsLowerThan (T val) const |
| DataArrayIdType * | findIdsStrictlyNegative () const |
| Traits< T >::ArrayType * | fromNoInterlace () const |
| void | iota (T init=(T) 0) |
| void | meldWith (const typename Traits< T >::ArrayType *other) |
| void | multiplyEqual (const typename Traits< T >::ArrayType *other) |
| Traits< T >::ArrayType * | negate () const |
| Traits< T >::ArrayType * | performCopyOrIncrRef (bool dCpy) const |
| std::string | repr () const |
| std::string | reprNotTooLong () const |
| void | reprNotTooLongStream (std::ostream &stream) const |
| void | reprNotTooLongWithoutNameStream (std::ostream &stream) const |
| void | reprStream (std::ostream &stream) const |
| void | reprWithoutNameStream (std::ostream &stream) const |
| std::string | reprZip () const |
| void | reprZipStream (std::ostream &stream) const |
| void | reprZipWithoutNameStream (std::ostream &stream) const |
| void | substractEqual (const typename Traits< T >::ArrayType *other) |
| Traits< T >::ArrayType * | sumPerTuple () const |
| Traits< T >::ArrayType * | toNoInterlace () const |
Public Member Functions inherited from MEDCoupling::DataArrayTemplate< T > | |
| MemArray< T > & | accessToMemArray () |
| const MemArray< T > & | accessToMemArray () const |
| void | alloc (std::size_t nbOfTuple, std::size_t nbOfCompo=1) |
| void | allocIfNecessary (std::size_t nbOfTuple, std::size_t nbOfCompo) |
| T | back () const |
| const T * | begin () const |
| Traits< T >::ArrayType * | changeNbOfComponents (std::size_t newNbOfComp, T dftValue) const |
| void | checkAllocated () const |
| void | circularPermutation (mcIdType nbOfShift=1) |
| void | circularPermutationPerTuple (mcIdType nbOfShift=1) |
| void | deepCopyFrom (const DataArrayTemplate< T > &other) |
| void | desallocate () |
| bool | empty () const |
| const T * | end () const |
| std::vector< MCAuto< typename Traits< T >::ArrayTypeCh > > | explodeComponents () const |
| void | fillWithValue (T val) |
| void | fillWithZero () |
| T | front () const |
| const T * | getConstPointer () const |
| std::size_t | getHeapMemorySizeWithoutChildren () const |
| T | getIJ (std::size_t tupleId, std::size_t compoId) const |
| T | getIJSafe (std::size_t tupleId, std::size_t compoId) const |
| T | getMaxAbsValue (std::size_t &tupleId) const |
| T | getMaxAbsValueInArray () const |
| T | getMaxValue (mcIdType &tupleId) const |
| T | getMaxValueInArray () const |
| T | getMinValue (mcIdType &tupleId) const |
| T | getMinValueInArray () const |
| std::size_t | getNbOfElemAllocated () const |
| mcIdType | getNbOfElems () const |
| mcIdType | getNumberOfTuples () const |
| T * | getPointer () |
| T * | getPointerSilent () |
| void | getTuple (mcIdType tupleId, T *res) const |
| void * | getVoidStarPointer () |
| template<class InputIterator > | |
| void | insertAtTheEnd (InputIterator first, InputIterator last) |
| bool | isAllocated () const override |
| void | pack () const |
| T | popBackSilent () |
| void | printForDebug (std::ostream &oss) const |
| void | pushBackSilent (T val) |
| template<class InputIterator > | |
| void | pushBackValsSilent (InputIterator valsBg, InputIterator valsEnd) |
| void | reAlloc (std::size_t newNbOfTuple) |
| void | rearrange (std::size_t newNbOfCompo) |
| Traits< T >::ArrayType * | renumber (const mcIdType *old2New) const |
| Traits< T >::ArrayType * | renumberAndReduce (const mcIdType *old2New, mcIdType newNbOfTuple) const |
| void | renumberInPlace (const mcIdType *old2New) |
| void | renumberInPlaceR (const mcIdType *new2Old) |
| Traits< T >::ArrayType * | renumberR (const mcIdType *new2Old) const |
| void | reserve (std::size_t nbOfElems) |
| void | reverse () |
| void | reversePerTuple () |
| T * | rwBegin () |
| T * | rwEnd () |
| MCAuto< typename Traits< T >::ArrayTypeCh > | selectPartDef (const PartDefinition *pd) const |
| void | setContigPartOfSelectedValues (mcIdType tupleIdStart, const DataArray *aBase, const DataArrayIdType *tuplesSelec) |
| void | setContigPartOfSelectedValuesSlice (mcIdType tupleIdStart, const DataArray *aBase, mcIdType bg, mcIdType end2, mcIdType step) |
| void | setIJ (std::size_t tupleId, std::size_t compoId, T newVal) |
| void | setIJSilent (std::size_t tupleId, std::size_t compoId, T newVal) |
| void | setPartOfValues1 (const typename Traits< T >::ArrayType *a, mcIdType bgTuples, mcIdType endTuples, mcIdType stepTuples, mcIdType bgComp, mcIdType endComp, mcIdType stepComp, bool strictCompoCompare=true) |
| void | setPartOfValues2 (const typename Traits< T >::ArrayType *a, const mcIdType *bgTuples, const mcIdType *endTuples, const mcIdType *bgComp, const mcIdType *endComp, bool strictCompoCompare=true) |
| void | setPartOfValues3 (const typename Traits< T >::ArrayType *a, const mcIdType *bgTuples, const mcIdType *endTuples, mcIdType bgComp, mcIdType endComp, mcIdType stepComp, bool strictCompoCompare=true) |
| void | setPartOfValues4 (const typename Traits< T >::ArrayType *a, mcIdType bgTuples, mcIdType endTuples, mcIdType stepTuples, const mcIdType *bgComp, const mcIdType *endComp, bool strictCompoCompare=true) |
| void | setPartOfValuesAdv (const typename Traits< T >::ArrayType *a, const DataArrayIdType *tuplesSelec) |
| void | setPartOfValuesSimple1 (T a, mcIdType bgTuples, mcIdType endTuples, mcIdType stepTuples, mcIdType bgComp, mcIdType endComp, mcIdType stepComp) |
| void | setPartOfValuesSimple2 (T a, const mcIdType *bgTuples, const mcIdType *endTuples, const mcIdType *bgComp, const mcIdType *endComp) |
| void | setPartOfValuesSimple3 (T a, const mcIdType *bgTuples, const mcIdType *endTuples, mcIdType bgComp, mcIdType endComp, mcIdType stepComp) |
| void | setPartOfValuesSimple4 (T a, mcIdType bgTuples, mcIdType endTuples, mcIdType stepTuples, const mcIdType *bgComp, const mcIdType *endComp) |
| void | sort (bool asc=true) |
| void | sortPerTuple (bool asc) |
| Traits< T >::ArrayType * | subArray (mcIdType tupleIdBg, mcIdType tupleIdEnd=-1) const |
| void | transpose () |
| void | updateTime () const |
| void | useArray (const T *array, bool ownership, DeallocType type, std::size_t nbOfTuple, std::size_t nbOfCompo) |
| void | useExternalArrayWithRWAccess (const T *array, std::size_t nbOfTuple, std::size_t nbOfCompo) |
| void | writeForDbg (const std::string &fileName) const |
| void | writeOnPlace (std::size_t id, T element0, const T *others, mcIdType sizeOfOthers) |
Public Member Functions inherited from MEDCoupling::DataArray | |
| bool | areInfoEquals (const DataArray &other) const |
| bool | areInfoEqualsIfNotWhy (const DataArray &other, std::string &reason) const |
| virtual DataArray * | buildNewEmptyInstance () const =0 |
| void | checkNbOfComps (std::size_t nbOfCompo, const std::string &msg) const |
| void | checkNbOfElems (mcIdType nbOfElems, const std::string &msg) const |
| void | checkNbOfTuples (mcIdType nbOfTuples, const std::string &msg) const |
| void | checkNbOfTuplesAndComp (const DataArray &other, const std::string &msg) const |
| void | checkNbOfTuplesAndComp (mcIdType nbOfTuples, std::size_t nbOfCompo, const std::string &msg) const |
| void | copyPartOfStringInfoFrom (const DataArray &other, const std::vector< std::size_t > &compoIds) |
| void | copyPartOfStringInfoFrom2 (const std::vector< std::size_t > &compoIds, const DataArray &other) |
| virtual DataArray * | copySorted (bool asc=true) const =0 |
| void | copyStringInfoFrom (const DataArray &other) |
| std::string | cppRepr (const std::string &varName) const |
| virtual DataArray * | deepCopy () const =0 |
| std::vector< const BigMemoryObject * > | getDirectChildrenWithNull () const |
| std::string | getInfoOnComponent (std::size_t i) const |
| std::vector< std::string > & | getInfoOnComponents () |
| const std::vector< std::string > & | getInfoOnComponents () const |
| std::string | getName () const |
| std::size_t | getNumberOfComponents () const |
| std::string | getUnitOnComponent (std::size_t i) const |
| std::vector< std::string > | getUnitsOnComponent () const |
| std::string | getVarOnComponent (std::size_t i) const |
| std::vector< std::string > | getVarsOnComponent () const |
| virtual DataArray * | keepSelectedComponents (const std::vector< std::size_t > &compoIds) const =0 |
| virtual void | reprCppStream (const std::string &varName, std::ostream &stream) const =0 |
| virtual void | reprQuickOverview (std::ostream &stream) const =0 |
| virtual void | reprQuickOverviewData (std::ostream &stream, std::size_t maxNbOfByteInRepr) const =0 |
| virtual DataArray * | selectByTupleId (const mcIdType *new2OldBg, const mcIdType *new2OldEnd) const =0 |
| virtual DataArray * | selectByTupleIdSafe (const mcIdType *new2OldBg, const mcIdType *new2OldEnd) const =0 |
| virtual DataArray * | selectByTupleIdSafeSlice (mcIdType bg, mcIdType end2, mcIdType step) const =0 |
| virtual DataArray * | selectByTupleRanges (const std::vector< std::pair< mcIdType, mcIdType > > &ranges) const =0 |
| void | setInfoAndChangeNbOfCompo (const std::vector< std::string > &info) |
| void | setInfoOnComponent (std::size_t i, const std::string &info) |
| void | setInfoOnComponents (const std::vector< std::string > &info) |
| void | setName (const std::string &name) |
| void | setPartOfValuesBase3 (const DataArray *aBase, const mcIdType *bgTuples, const mcIdType *endTuples, mcIdType bgComp, mcIdType endComp, mcIdType stepComp, bool strictCompoCompare=true) |
Public Member Functions inherited from MEDCoupling::RefCountObjectOnly | |
| bool | decrRef () const |
| int | getRCValue () const |
| void | incrRef () const |
| RefCountObjectOnly & | operator= (const RefCountObjectOnly &other) |
Public Member Functions inherited from MEDCoupling::BigMemoryObject | |
| std::string | debugHeapMemorySize () const |
| std::vector< const BigMemoryObject * > | getAllTheProgeny () const |
| virtual std::string | getClassName () const |
| std::vector< const BigMemoryObject * > | getDirectChildren () const |
| std::size_t | getHeapMemorySize () const |
| std::string | getHeapMemorySizeStr () const |
| bool | isObjectInTheProgeny (const BigMemoryObject *obj) const |
| virtual | ~BigMemoryObject () |
Public Member Functions inherited from MEDCoupling::TimeLabel | |
| void | declareAsNew () const |
| std::size_t | getTimeOfThis () const |
| TimeLabel & | operator= (const TimeLabel &other) |
| TimeLabel (const TimeLabel &other)=default | |
Static Public Member Functions | |
| static Traits< T >::ArrayType * | Add (const typename Traits< T >::ArrayType *a1, const typename Traits< T >::ArrayType *a2) |
| static Traits< T >::ArrayType * | Divide (const typename Traits< T >::ArrayType *a1, const typename Traits< T >::ArrayType *a2) |
| static Traits< T >::ArrayType * | Meld (const std::vector< const typename Traits< T >::ArrayType * > &arr) |
| static Traits< T >::ArrayType * | Meld (const typename Traits< T >::ArrayType *a1, const typename Traits< T >::ArrayType *a2) |
| static Traits< T >::ArrayType * | Multiply (const typename Traits< T >::ArrayType *a1, const typename Traits< T >::ArrayType *a2) |
| static Traits< T >::ArrayType * | Substract (const typename Traits< T >::ArrayType *a1, const typename Traits< T >::ArrayType *a2) |
Static Public Member Functions inherited from MEDCoupling::DataArrayTemplate< T > | |
| static MCAuto< typename Traits< T >::ArrayTypeCh > | LoadForDbg (const std::string &fileName) |
| static MCAuto< typename Traits< T >::ArrayTypeCh > | NewFromArray (const T *arrBegin, const T *arrEnd) |
| static MCAuto< typename Traits< T >::ArrayTypeCh > | NewFromStdVector (const typename std::vector< T > &v) |
| static void | SetArrayIn (typename Traits< T >::ArrayType *newArray, typename Traits< T >::ArrayType *&arrayToSet) |
Static Public Member Functions inherited from MEDCoupling::DataArray | |
| static DataArray * | Aggregate (const std::vector< const DataArray * > &arrs) |
| static std::string | BuildInfoFromVarAndUnit (const std::string &var, const std::string &unit) |
| static std::string | GetAxisTypeRepr (MEDCouplingAxisType at) |
| static mcIdType | GetNumberOfItemGivenBES (mcIdType begin, mcIdType end, mcIdType step, const std::string &msg) |
| static mcIdType | GetNumberOfItemGivenBESRelative (mcIdType begin, mcIdType end, mcIdType step, const std::string &msg) |
| static mcIdType | GetPosOfItemGivenBESRelativeNoThrow (mcIdType value, mcIdType begin, mcIdType end, mcIdType step) |
| static void | GetSlice (mcIdType start, mcIdType stop, mcIdType step, mcIdType sliceId, mcIdType nbOfSlices, mcIdType &startSlice, mcIdType &stopSlice) |
| static std::string | GetUnitFromInfo (const std::string &info) |
| static std::string | GetVarNameFromInfo (const std::string &info) |
| static std::vector< std::string > | SplitStringInChuncks (const std::string st, std::size_t sz) |
Static Public Member Functions inherited from MEDCoupling::BigMemoryObject | |
| static std::size_t | GetHeapMemorySizeOfObjs (const std::vector< const BigMemoryObject * > &objs) |
Protected Member Functions | |
| template<class OP > | |
| MCAuto< DataArrayIdType > | findIdsAdv (const OP &op) const |
Protected Member Functions inherited from MEDCoupling::DataArrayTemplate< T > | |
| Traits< T >::ArrayTypeCh * | copySortedImpl (bool asc) const |
| Traits< T >::ArrayType * | myKeepSelectedComponents (const std::vector< std::size_t > &compoIds) const |
| Traits< T >::ArrayType * | mySelectByTupleId (const DataArrayIdType &di) const |
| Traits< T >::ArrayType * | mySelectByTupleId (const mcIdType *new2OldBg, const mcIdType *new2OldEnd) const |
| Traits< T >::ArrayType * | mySelectByTupleIdSafe (const mcIdType *new2OldBg, const mcIdType *new2OldEnd) const |
| Traits< T >::ArrayType * | mySelectByTupleIdSafeSlice (mcIdType bg, mcIdType end2, mcIdType step) const |
| Traits< T >::ArrayType * | mySelectByTupleRanges (const std::vector< std::pair< mcIdType, mcIdType > > &ranges) const |
Protected Member Functions inherited from MEDCoupling::DataArray | |
| DataArray () | |
| ~DataArray () | |
Protected Member Functions inherited from MEDCoupling::RefCountObject | |
| RefCountObject () | |
| RefCountObject (const RefCountObject &other) | |
| virtual | ~RefCountObject () |
Protected Member Functions inherited from MEDCoupling::RefCountObjectOnly | |
| RefCountObjectOnly () | |
| RefCountObjectOnly (const RefCountObjectOnly &other) | |
| virtual | ~RefCountObjectOnly () |
Protected Member Functions inherited from MEDCoupling::TimeLabel | |
| void | forceTimeOfThis (const TimeLabel &other) const |
| TimeLabel () | |
| void | updateTimeWith (const TimeLabel &other) const |
| virtual | ~TimeLabel () |
Static Protected Member Functions | |
| static Traits< T >::ArrayType * | PerformCopyOrIncrRef (bool dCpy, const typename Traits< T >::ArrayType &self) |
Static Protected Member Functions inherited from MEDCoupling::DataArray | |
| static void | CheckClosingParInRange (mcIdType ref, mcIdType value, const std::string &msg) |
| static void | CheckValueInRange (mcIdType ref, mcIdType value, const std::string &msg) |
| static void | CheckValueInRangeEx (mcIdType value, mcIdType start, mcIdType end, const std::string &msg) |
| static mcIdType | EffectiveCircPerm (mcIdType nbOfShift, mcIdType nbOfTuples) |
Additional Inherited Members | |
Public Types inherited from MEDCoupling::DataArrayTemplate< T > | |
| typedef T | Type |
Protected Attributes inherited from MEDCoupling::DataArrayTemplate< T > | |
| MemArray< T > | _mem |
Protected Attributes inherited from MEDCoupling::DataArray | |
| std::vector< std::string > | _info_on_compo |
| std::string | _name |
| MCAuto< DataArrayDouble > MEDCoupling::DataArrayTemplateClassic< T >::convertToDblArr |
Creates a new DataArrayDouble and assigns all (textual and numerical) data of this array to the new one.
| MCAuto< DataArrayInt > MEDCoupling::DataArrayTemplateClassic< T >::convertToIntArr |
Creates a new DataArrayInt and assigns all (textual and numerical) data of this array to the new one.
Referenced by MEDCoupling::MEDFileField1TSWithoutSDA::convertToInt().
| MCAuto< DataArrayInt64 > MEDCoupling::DataArrayTemplateClassic< T >::convertToInt64Arr |
Creates a new DataArrayInt64 and assigns all (textual and numerical) data of this array to the new one.
Referenced by MEDCoupling::MEDFileField1TSWithoutSDA::convertToInt64().
| MCAuto< DataArrayFloat > MEDCoupling::DataArrayTemplateClassic< T >::convertToFloatArr |
Creates a new DataArrayFloat and assigns all (textual and numerical) data of this array to the new one.
| void MEDCoupling::DataArrayTemplateClassic< T >::applyLin | ( | T | a, |
| T | b, | ||
| std::size_t | compoId | ||
| ) |
Apply a linear function to a given component of this array, so that an array element (x) becomes
.
| [in] | a | - the first coefficient of the function. |
| [in] | b | - the second coefficient of the function. |
| [in] | compoId | - the index of component to modify. |
| If | this is not allocated, or compoId is not in [0,this->getNumberOfComponents() ). |
Referenced by MEDCoupling::DataArrayDouble::recenterForMaxPrecision().
| void MEDCoupling::DataArrayTemplateClassic< T >::applyLin | ( | T | a, |
| T | b | ||
| ) |
Apply a linear function to all elements of this array, so that an element x becomes
.
| [in] | a | - the first coefficient of the function. |
| [in] | b | - the second coefficient of the function. |
| If | this is not allocated. |
| Traits< T >::ArrayType * MEDCoupling::DataArrayTemplateClassic< T >::negate |
Returns a full copy of this array except that sign of all elements is reversed.
| If | this is not allocated. |
| void MEDCoupling::DataArrayTemplateClassic< T >::addEqual | ( | const typename Traits< T >::ArrayType * | other | ) |
Adds values of another DataArrayDouble to values of this one. There are 3 valid cases.
| [in] | other | - an array to add to this one. |
| If | other is NULL. |
| If | this->getNumberOfTuples() != other->getNumberOfTuples() and this->getNumberOfComponents() != other->getNumberOfComponents() and other has number of both tuples and components not equal to 1. |
Referenced by MEDCoupling::MEDCouplingLinearTime::addEqual().
| void MEDCoupling::DataArrayTemplateClassic< T >::substractEqual | ( | const typename Traits< T >::ArrayType * | other | ) |
Subtract values of another DataArrayDouble from values of this one. There are 3 valid cases.
| [in] | other | - an array to subtract from this one. |
| If | other is NULL. |
| If | this->getNumberOfTuples() != other->getNumberOfTuples() and this->getNumberOfComponents() != other->getNumberOfComponents() and other has number of both tuples and components not equal to 1. |
Referenced by MEDCoupling::MEDCouplingLinearTime::substractEqual().
| void MEDCoupling::DataArrayTemplateClassic< T >::multiplyEqual | ( | const typename Traits< T >::ArrayType * | other | ) |
Multiply values of another DataArrayDouble to values of this one. There are 3 valid cases.
| [in] | other | - an array to multiply to this one. |
| If | other is NULL. |
| If | this->getNumberOfTuples() != other->getNumberOfTuples() and this->getNumberOfComponents() != other->getNumberOfComponents() and other has number of both tuples and components not equal to 1. |
Referenced by MEDCoupling::MEDCouplingLinearTime::multiplyEqual().
| void MEDCoupling::DataArrayTemplateClassic< T >::divideEqual | ( | const typename Traits< T >::ArrayType * | other | ) |
Divide values of this array by values of another DataArrayDouble. There are 3 valid cases.
The arrays have same number of components and other array has one tuple. Then a [ i, j ] /= a2 [ 0, j ].
| [in] | other | - an array to divide this one by. |
| If | other is NULL. |
| If | this->getNumberOfTuples() != other->getNumberOfTuples() and this->getNumberOfComponents() != other->getNumberOfComponents() and other has number of both tuples and components not equal to 1. |
Referenced by MEDCoupling::MEDCouplingLinearTime::divideEqual().
|
static |
Returns a new DataArrayDouble that is a subtraction of two given arrays. There are 3 valid cases.
Info on components is copied either from the first array (in the first case) or from the array with maximal number of elements (getNbOfElems()).
| [in] | a1 | - an array to subtract from. |
| [in] | a2 | - an array to subtract. |
| If | either a1 or a2 is NULL. |
| If | a1->getNumberOfTuples() != a2->getNumberOfTuples() and a1->getNumberOfComponents() != a2->getNumberOfComponents() and none of them has number of tuples or components equal to 1. |
Referenced by MEDCoupling::MEDCouplingUMesh::clipSingle3DCellByPlane(), MEDCoupling::MEDCouplingNoTimeLabel::substract(), MEDCoupling::MEDCouplingWithTimeStep::substract(), MEDCoupling::MEDCouplingConstOnTimeInterval::substract(), and MEDCoupling::MEDCouplingLinearTime::substract().
|
static |
Returns a new DataArrayDouble that is a division of two given arrays. There are 3 valid cases.
Info on components is copied either from the first array (in the first case) or from the array with maximal number of elements (getNbOfElems()).
| [in] | a1 | - a numerator array. |
| [in] | a2 | - a denominator array. |
| If | either a1 or a2 is NULL. |
| If | a1->getNumberOfTuples() != a2->getNumberOfTuples() and a1->getNumberOfComponents() != a2->getNumberOfComponents() and none of them has number of tuples or components equal to 1. |
Referenced by MEDCoupling::MEDCouplingNoTimeLabel::divide(), MEDCoupling::MEDCouplingWithTimeStep::divide(), MEDCoupling::MEDCouplingConstOnTimeInterval::divide(), and MEDCoupling::MEDCouplingLinearTime::divide().
|
static |
Returns a new DataArrayDouble that is a sum of two given arrays. There are 3 valid cases.
Info on components is copied either from the first array (in the first case) or from the array with maximal number of elements (getNbOfElems()).
| [in] | a1 | - an array to sum up. |
| [in] | a2 | - another array to sum up. |
| If | either a1 or a2 is NULL. |
| If | a1->getNumberOfTuples() != a2->getNumberOfTuples() and a1->getNumberOfComponents() != a2->getNumberOfComponents() and none of them has number of tuples or components equal to 1. |
Referenced by MEDCoupling::MEDCouplingNoTimeLabel::add(), MEDCoupling::MEDCouplingWithTimeStep::add(), MEDCoupling::MEDCouplingConstOnTimeInterval::add(), MEDCoupling::MEDCouplingLinearTime::add(), and MEDFileFieldLin2QuadVisitor::endTimeStepEntry().
|
static |
Returns a new DataArrayDouble that is a product of two given arrays. There are 3 valid cases.
Info on components is copied either from the first array (in the first case) or from the array with maximal number of elements (getNbOfElems()).
| [in] | a1 | - a factor array. |
| [in] | a2 | - another factor array. |
| If | either a1 or a2 is NULL. |
| If | a1->getNumberOfTuples() != a2->getNumberOfTuples() and a1->getNumberOfComponents() != a2->getNumberOfComponents() and none of them has number of tuples or components equal to 1. |
Referenced by MEDCoupling::MEDCouplingMesh::computeMeshCenterOfMass(), MEDCoupling::MEDCouplingNoTimeLabel::multiply(), MEDCoupling::MEDCouplingWithTimeStep::multiply(), MEDCoupling::MEDCouplingConstOnTimeInterval::multiply(), and MEDCoupling::MEDCouplingLinearTime::multiply().
|
static |
Returns a new DataArrayDouble by aggregating two given arrays, so that (1) the number of components in the result array is a sum of the number of components of given arrays and (2) the number of tuples in the result array is same as that of each of given arrays. In other words the i-th tuple of result array includes all components of i-th tuples of all given arrays. Number of tuples in the given arrays must be the same.
| [in] | a1 | - an array to include in the result array. |
| [in] | a2 | - another array to include in the result array. |
| If | both a1 and a2 are NULL. |
| If | any given array is not allocated. |
| If | a1->getNumberOfTuples() != a2->getNumberOfTuples() |
Referenced by MEDCoupling::MEDCouplingNoTimeLabel::meld(), MEDCoupling::MEDCouplingWithTimeStep::meld(), MEDCoupling::MEDCouplingConstOnTimeInterval::meld(), and MEDCoupling::MEDCouplingLinearTime::meld().
|
static |
Returns a new DataArrayDouble by aggregating all given arrays, so that (1) the number of components in the result array is a sum of the number of components of given arrays and (2) the number of tuples in the result array is same as that of each of given arrays. In other words the i-th tuple of result array includes all components of i-th tuples of all given arrays. Number of tuples in the given arrays must be the same.
| [in] | arr | - a sequence of arrays to include in the result array. |
| If | all arrays within arr are NULL. |
| If | any given array is not allocated. |
| If | getNumberOfTuples() of arrays within arr is different. |
| MCAuto< DataArrayIdType > MEDCoupling::DataArrayTemplateClassic< T >::findIdsGreaterOrEqualTo | ( | T | val | ) | const |
| MCAuto< DataArrayIdType > MEDCoupling::DataArrayTemplateClassic< T >::findIdsGreaterThan | ( | T | val | ) | const |
| MCAuto< DataArrayIdType > MEDCoupling::DataArrayTemplateClassic< T >::findIdsLowerOrEqualTo | ( | T | val | ) | const |
| MCAuto< DataArrayIdType > MEDCoupling::DataArrayTemplateClassic< T >::findIdsLowerThan | ( | T | val | ) | const |
| DataArrayIdType * MEDCoupling::DataArrayTemplateClassic< T >::findIdsStrictlyNegative |
This method works only on data array with one component. This method returns a newly allocated array storing stored ascendantly of tuple ids in this so that this[id]<0.
| Traits< T >::ArrayType * MEDCoupling::DataArrayTemplateClassic< T >::fromNoInterlace |
Returns a new DataArrayDouble holding the same values as this array but differently arranged in memory. If this array holds 2 components of 3 values:
, then the result array holds these values arranged as follows:
.
| If | this is not allocated. |
References MEDCoupling::C_DEALLOC.
| Traits< T >::ArrayType * MEDCoupling::DataArrayTemplateClassic< T >::toNoInterlace |
Returns a new DataArrayDouble holding the same values as this array but differently arranged in memory. If this array holds 2 components of 3 values:
, then the result array holds these values arranged as follows:
.
| If | this is not allocated. |
References MEDCoupling::C_DEALLOC.
Referenced by MEDCoupling::MEDCouplingFieldDiscretizationKriging::performDrift().
| void MEDCoupling::DataArrayTemplateClassic< T >::meldWith | ( | const typename Traits< T >::ArrayType * | other | ) |
Appends components of another array to components of this one, tuple by tuple. So that the number of tuples of this array remains the same and the number of components increases.
| [in] | other | - the DataArrayDouble to append to this one. |
| If | this is not allocated. |
| If | this and other arrays have different number of tuples. |
References MEDCoupling::C_DEALLOC.
| Traits< T >::ArrayType * MEDCoupling::DataArrayTemplateClassic< T >::duplicateEachTupleNTimes | ( | mcIdType | nbTimes | ) | const |
| [in] | nbTimes | specifies the nb of times each tuples in this will be duplicated contiguouly in returned DataArrayDouble instance. nbTimes should be at least equal to 1. |
this->getNumberOfTuples. | if | this is not allocated or if this has not number of components set to one or if nbTimes is lower than 1. |
| MCAuto< typename Traits< T >::ArrayType > MEDCoupling::DataArrayTemplateClassic< T >::duplicateNTimes | ( | mcIdType | nbTimes | ) | const |
Referenced by MEDCouplingUMeshExtrudeConnectivity().
| void MEDCoupling::DataArrayTemplateClassic< T >::aggregate | ( | const typename Traits< T >::ArrayType * | other | ) |
| void MEDCoupling::DataArrayTemplateClassic< T >::abs |
Converts every value of this array to its absolute value. WARNING this method is non const. If a new DataArrayDouble instance should be built containing the result of abs DataArrayDouble::computeAbs should be called instead.
| If | this is not allocated. |
| Traits< T >::ArrayType * MEDCoupling::DataArrayTemplateClassic< T >::computeAbs |
This method builds a new instance of this object containing the result of std::abs applied of all elements in this. This method is a const method (that do not change any values in this) contrary to DataArrayDouble::abs method.
| If | this is not allocated. |
| Traits< T >::ArrayType * MEDCoupling::DataArrayTemplateClassic< T >::performCopyOrIncrRef | ( | bool | dCpy | ) | const |
Returns either a deep or shallow copy of this array. For more info see Deep copy of DataArray and Shallow copy of DataArray.
| [in] | dCpy | - if true, a deep copy is returned, else, a shallow one. |
References MEDCoupling::DataArrayTemplateClassic< T >::PerformCopyOrIncrRef().
Referenced by MEDCoupling::MEDCouplingTimeDiscretization::buildNewTimeReprFromThis(), MEDCoupling::MEDCouplingPointSet::MEDCouplingPointSet(), and MEDCoupling::MEDCouplingTwoTimeSteps::MEDCouplingTwoTimeSteps().
| Traits< T >::ArrayType * MEDCoupling::DataArrayTemplateClassic< T >::sumPerTuple |
Computes for each tuple the sum of number of components values in the tuple and return it.
| If | this is not allocated. |
| void MEDCoupling::DataArrayTemplateClassic< T >::iota | ( | T | init = (T)0 | ) |
Set all values in this array so that the i-th element equals to init + i (i starts from zero). To know more on filling arrays see Filling DataArray with values.
| [in] | init | - value to assign to the first element of array. |
| If | this->getNumberOfComponents() != 1 |
| If | this is not allocated. |
|
virtual |
Implements MEDCoupling::DataArray.
Referenced by MEDCoupling::DataArrayTemplateClassic< T >::repr().
|
virtual |
Implements MEDCoupling::DataArray.
Referenced by MEDCoupling::DataArrayTemplateClassic< T >::reprZip().
| void MEDCoupling::DataArrayTemplateClassic< T >::reprNotTooLongStream | ( | std::ostream & | stream | ) | const |
|
virtual |
Reimplemented from MEDCoupling::DataArray.
References MEDCoupling::DataArray::reprWithoutNameStream(), and MEDCoupling::ImplReprTraits< T >::SetPrecision().
Referenced by MEDCoupling::MEDCoupling1SGTUMesh::advancedRepr(), MEDCoupling::MEDCoupling1DGTUMesh::advancedRepr(), and MEDCoupling::MEDCouplingUMesh::advancedRepr().
|
virtual |
| void MEDCoupling::DataArrayTemplateClassic< T >::reprNotTooLongWithoutNameStream | ( | std::ostream & | stream | ) | const |
| std::string MEDCoupling::DataArrayTemplateClassic< T >::repr |
Returns a textual and human readable representation of this instance of DataArrayInt. This text is shown when a DataArrayInt is printed in Python.
References MEDCoupling::DataArrayTemplateClassic< T >::reprStream().
| std::string MEDCoupling::DataArrayTemplateClassic< T >::reprZip |
| std::string MEDCoupling::DataArrayTemplateClassic< T >::reprNotTooLong |
This method is close to repr method except that when this has more than 1000 tuples, all tuples are not printed out to avoid to consume too much space in interpretor.
| MCAuto< typename Traits< U >::ArrayType > MEDCoupling::DataArrayTemplateClassic< T >::convertToOtherTypeOfArr |
|
staticprotected |
Returns either a deep or shallow copy of this array. For more info see Deep copy of DataArray and Shallow copy of DataArray.
| [in] | dCpy | - if true, a deep copy is returned, else, a shallow one. |
Referenced by MEDCoupling::DataArrayTemplateClassic< T >::performCopyOrIncrRef().
|
protected |