Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MEDCoupling::DataArrayTemplate< T > Class Template Reference
Inheritance diagram for MEDCoupling::DataArrayTemplate< T >:
Collaboration diagram for MEDCoupling::DataArrayTemplate< T >:

Public Member Functions

void alloc (std::size_t nbOfTuple, std::size_t nbOfCompo=1)
 
void allocIfNecessary (int nbOfTuple, int nbOfCompo)
 
back () const
 
const T * begin () const
 
Traits< T >::ArrayType * changeNbOfComponents (int newNbOfComp, T dftValue) const
 
void checkAllocated () const
 
void circularPermutation (int nbOfShift=1)
 
void circularPermutationPerTuple (int 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)
 
front () const
 
const T * getConstPointer () const
 
std::size_t getHeapMemorySizeWithoutChildren () const
 
getIJ (int tupleId, int compoId) const
 
getIJSafe (int tupleId, int compoId) const
 
getMaxValue (int &tupleId) const
 
getMaxValueInArray () const
 
getMinValue (int &tupleId) const
 
getMinValueInArray () const
 
std::size_t getNbOfElemAllocated () const
 
std::size_t getNbOfElems () const
 
int getNumberOfTuples () const
 
T * getPointer ()
 
void * getVoidStarPointer ()
 
bool isAllocated () const
 
void pack () const
 
popBackSilent ()
 
void pushBackSilent (T val)
 
void pushBackValsSilent (const T *valsBg, const T *valsEnd)
 
void reAlloc (std::size_t newNbOfTuple)
 
void rearrange (int newNbOfCompo)
 
Traits< T >::ArrayType * renumber (const int *old2New) const
 
Traits< T >::ArrayType * renumberAndReduce (const int *old2New, int newNbOfTuple) const
 
void renumberInPlace (const int *old2New)
 
void renumberInPlaceR (const int *new2Old)
 
Traits< T >::ArrayType * renumberR (const int *new2Old) const
 
void reserve (std::size_t nbOfElems)
 
void reverse ()
 
void reversePerTuple ()
 
MCAuto< typename Traits< T >
::ArrayTypeCh > 
selectPartDef (const PartDefinition *pd) const
 
void setContigPartOfSelectedValues (int tupleIdStart, const DataArray *aBase, const DataArrayInt *tuplesSelec)
 
void setContigPartOfSelectedValuesSlice (int tupleIdStart, const DataArray *aBase, int bg, int end2, int step)
 
void setIJ (int tupleId, int compoId, T newVal)
 
void setIJSilent (int tupleId, int compoId, T newVal)
 
void setPartOfValues1 (const typename Traits< T >::ArrayType *a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true)
 
void setPartOfValues2 (const typename Traits< T >::ArrayType *a, const int *bgTuples, const int *endTuples, const int *bgComp, const int *endComp, bool strictCompoCompare=true)
 
void setPartOfValues3 (const typename Traits< T >::ArrayType *a, const int *bgTuples, const int *endTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true)
 
void setPartOfValues4 (const typename Traits< T >::ArrayType *a, int bgTuples, int endTuples, int stepTuples, const int *bgComp, const int *endComp, bool strictCompoCompare=true)
 
void setPartOfValuesAdv (const typename Traits< T >::ArrayType *a, const DataArrayInt *tuplesSelec)
 
void setPartOfValuesSimple1 (T a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp)
 
void setPartOfValuesSimple2 (T a, const int *bgTuples, const int *endTuples, const int *bgComp, const int *endComp)
 
void setPartOfValuesSimple3 (T a, const int *bgTuples, const int *endTuples, int bgComp, int endComp, int stepComp)
 
void setPartOfValuesSimple4 (T a, int bgTuples, int endTuples, int stepTuples, const int *bgComp, const int *endComp)
 
void sort (bool asc=true)
 
Traits< T >::ArrayType * subArray (int tupleIdBg, int tupleIdEnd=-1) const
 
void transpose ()
 
void useArray (const T *array, bool ownership, DeallocType type, int nbOfTuple, int nbOfCompo)
 
void useExternalArrayWithRWAccess (const T *array, int nbOfTuple, int nbOfCompo)
 
- Public Member Functions inherited from MEDCoupling::DataArray
bool areInfoEquals (const DataArray &other) const
 
bool areInfoEqualsIfNotWhy (const DataArray &other, std::string &reason) const
 
virtual DataArraybuildNewEmptyInstance () const =0
 
void checkNbOfComps (int nbOfCompo, const std::string &msg) const
 
void checkNbOfElems (std::size_t nbOfElems, const std::string &msg) const
 
void checkNbOfTuples (int nbOfTuples, const std::string &msg) const
 
void checkNbOfTuplesAndComp (const DataArray &other, const std::string &msg) const
 
void checkNbOfTuplesAndComp (int nbOfTuples, int nbOfCompo, const std::string &msg) const
 
void copyPartOfStringInfoFrom (const DataArray &other, const std::vector< int > &compoIds)
 
void copyPartOfStringInfoFrom2 (const std::vector< int > &compoIds, const DataArray &other)
 
void copyStringInfoFrom (const DataArray &other)
 
std::string cppRepr (const std::string &varName) const
 
virtual DataArraydeepCopy () const =0
 
std::vector< const
BigMemoryObject * > 
getDirectChildrenWithNull () const
 
std::string getInfoOnComponent (int i) const
 
const std::vector< std::string > & getInfoOnComponents () const
 
std::vector< std::string > & getInfoOnComponents ()
 
std::string getName () const
 
std::size_t getNumberOfComponents () const
 
std::string getUnitOnComponent (int i) const
 
std::vector< std::string > getUnitsOnComponent () const
 
std::string getVarOnComponent (int i) const
 
std::vector< std::string > getVarsOnComponent () const
 
virtual DataArraykeepSelectedComponents (const std::vector< int > &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 void reprStream (std::ostream &stream) const =0
 
virtual void reprWithoutNameStream (std::ostream &stream) const
 
virtual void reprZipStream (std::ostream &stream) const =0
 
virtual void reprZipWithoutNameStream (std::ostream &stream) const =0
 
virtual DataArrayselectByTupleId (const int *new2OldBg, const int *new2OldEnd) const =0
 
virtual DataArrayselectByTupleIdSafe (const int *new2OldBg, const int *new2OldEnd) const =0
 
virtual DataArrayselectByTupleIdSafeSlice (int bg, int end2, int step) const =0
 
virtual DataArrayselectByTupleRanges (const std::vector< std::pair< int, int > > &ranges) const =0
 
void setInfoAndChangeNbOfCompo (const std::vector< std::string > &info)
 
void setInfoOnComponent (int 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 int *bgTuples, const int *endTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true)
 
- Public Member Functions inherited from MEDCoupling::TimeLabel
void declareAsNew () const
 
std::size_t getTimeOfThis () const
 
TimeLabeloperator= (const TimeLabel &other)
 
virtual void updateTime () const =0
 

Static Public Member Functions

static MCAuto< typename Traits
< T >::ArrayTypeCh > 
NewFromStdVector (const typename std::vector< T > &v)
 
- Static Public Member Functions inherited from MEDCoupling::DataArray
static DataArrayAggregate (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 int GetNumberOfItemGivenBES (int begin, int end, int step, const std::string &msg)
 
static int GetNumberOfItemGivenBESRelative (int begin, int end, int step, const std::string &msg)
 
static int GetPosOfItemGivenBESRelativeNoThrow (int value, int begin, int end, int step)
 
static void GetSlice (int start, int stop, int step, int sliceId, int nbOfSlices, int &startSlice, int &stopSlice)
 
static std::string GetUnitFromInfo (const std::string &info)
 
static std::string GetVarNameFromInfo (const std::string &info)
 

Protected Member Functions

Traits< T >::ArrayType * myKeepSelectedComponents (const std::vector< int > &compoIds) const
 
Traits< T >::ArrayType * mySelectByTupleId (const int *new2OldBg, const int *new2OldEnd) const
 
Traits< T >::ArrayType * mySelectByTupleId (const DataArrayInt &di) const
 
Traits< T >::ArrayType * mySelectByTupleIdSafe (const int *new2OldBg, const int *new2OldEnd) const
 
Traits< T >::ArrayType * mySelectByTupleIdSafeSlice (int bg, int end2, int step) const
 
Traits< T >::ArrayType * mySelectByTupleRanges (const std::vector< std::pair< int, int > > &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 ()
 

Protected Attributes

MemArray< T > _mem
 
- Protected Attributes inherited from MEDCoupling::DataArray
std::vector< std::string > _info_on_compo
 
std::string _name
 

Additional Inherited Members

- Static Protected Member Functions inherited from MEDCoupling::DataArray
static void CheckClosingParInRange (int ref, int value, const std::string &msg)
 
static void CheckValueInRange (int ref, int value, const std::string &msg)
 
static void CheckValueInRangeEx (int value, int start, int end, const std::string &msg)
 
static int EffectiveCircPerm (int nbOfShift, int nbOfTuples)
 

Member Function Documentation

template<class T>
MCAuto< typename Traits< T >::ArrayTypeCh > MEDCoupling::DataArrayTemplate< T >::NewFromStdVector ( const typename std::vector< T > &  v)
static
template<class T >
std::vector< MCAuto< typename Traits< T >::ArrayTypeCh > > MEDCoupling::DataArrayTemplate< T >::explodeComponents ( ) const
template<class T >
std::size_t MEDCoupling::DataArrayTemplate< T >::getHeapMemorySizeWithoutChildren ( ) const
virtual
template<class T>
int MEDCoupling::DataArrayTemplate< T >::getNumberOfTuples ( ) const
virtual

Implements MEDCoupling::DataArray.

Referenced by MEDCoupling::DataArrayDouble::Add(), MEDCoupling::DataArrayInt::Add(), MEDCoupling::DataArrayDouble::addEqual(), MEDCoupling::DataArrayInt::addEqual(), MEDCoupling::MEDFileUMesh::addNodeGroup(), MEDCoupling::DataArrayInt::Aggregate(), MEDCoupling::DataArrayDouble::areIncludedInMe(), MEDCoupling::MEDCouplingUMesh::Build0DMeshFromCoords(), MEDCoupling::MEDCouplingUMesh::Build1DMeshFromCoords(), MEDCoupling::DataArrayDouble::buildEuclidianDistanceDenseMatrixWith(), MEDCoupling::DataArrayInt::buildExplicitArrByRanges(), MEDCoupling::MEDFileUMesh::buildInnerBoundaryAlongM1Group(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::buildNbOfGaussPointPerCellField(), MEDCoupling::DataArrayInt::buildPermutationArr(), MEDCoupling::MEDCouplingUMesh::buildSpreadZonesWithPoly(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::buildSubMeshDataRange(), MEDCoupling::DataArrayInt::buildSubstraction(), MEDCoupling::MEDCouplingUMesh::buildUnionOf3DMesh(), MEDCoupling::MEDCouplingFieldDiscretizationPerCell::checkCoherencyBetween(), MEDCoupling::MEDCoupling1SGTUMesh::checkConsistency(), MEDCoupling::MEDCouplingTwoTimeSteps::checkConsistencyLight(), MEDCoupling::MEDCoupling1DGTUMesh::checkConsistencyOfConnectivity(), MEDCoupling::MEDCouplingPointSet::checkDeepEquivalOnSameNodesWith(), MEDCoupling::MEDCouplingPointSet::checkDeepEquivalWith(), MEDCoupling::MEDCouplingFieldDiscretizationPerCell::checkNoOrphanCells(), MEDCoupling::MEDFileUMesh::checkSMESHConsistency(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeEvaluationMatrixOnGivenPts(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeMatrix(), MEDCoupling::DataArrayDouble::computeNbOfInteractionsWith(), MEDCoupling::MEDCouplingUMesh::ComputeNeighborsOfCellsAdv(), MEDCoupling::MEDCouplingUMesh::ComputeSpreadZoneGraduallyFromSeed(), MEDCoupling::DataArrayDouble::computeTupleIdsNearTuples(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::computeTupleIdsToSelectFromCellIds(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeVectorOfCoefficients(), MEDCoupling::MEDCouplingIMesh::CondenseFineToCoarse(), MEDCoupling::MEDCouplingIMesh::CondenseFineToCoarseGhost(), MEDCoupling::MEDCouplingUMesh::conformize3D(), MEDCoupling::MEDCouplingUMesh::convertCellArrayPerGeoType(), MEDCoupling::MEDCouplingUMesh::convertNodalConnectivityToDynamicGeoTypeMesh(), MEDCoupling::MEDCouplingUMesh::convexEnvelop2D(), MEDCoupling::DataArrayDouble::CrossProduct(), MEDCoupling::DataArrayDoubleIterator::DataArrayDoubleIterator(), MEDCoupling::DataArrayIntIterator::DataArrayIntIterator(), MEDCoupling::DataArrayTemplate< T >::deepCopyFrom(), MEDCoupling::MEDCouplingUMesh::distanceToPoints(), MEDCoupling::DataArrayDouble::Divide(), MEDCoupling::DataArrayInt::Divide(), MEDCoupling::DataArrayDouble::divideEqual(), MEDCoupling::DataArrayInt::divideEqual(), MEDCoupling::DataArrayDouble::Dot(), MEDCoupling::MEDCouplingStructuredMesh::ExtractFieldOfDoubleFrom(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArrays(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArraysSlice(), MEDCoupling::MEDFileUMesh::extractPart(), MEDCoupling::DataArrayDouble::findClosestTupleId(), MEDCoupling::MEDCouplingUMesh::FindCommonCellsAlg(), MEDCoupling::DataArrayInt::findIdInRangeForEachTuple(), MEDCoupling::DataArrayInt::FindPermutationFromFirstToSecond(), MEDCoupling::DataArrayInt::findRangeIdForEachTuple(), MEDCoupling::DataArrayDouble::fromCartToCylGiven(), MEDCoupling::MEDCouplingUMesh::getCellIdsCrossingPlane(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getCellIdsHavingGaussLocalization(), MEDCoupling::MEDCouplingMesh::getCellsContainingPoints(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getMeasureField(), MEDCoupling::MEDCoupling1GTUMesh::getNodalConnectivityLength(), MEDCoupling::MEDCouplingCMesh::getNodeGridStructure(), MEDCoupling::MEDCouplingUMesh::getNumberOfCells(), MEDCoupling::MEDCouplingPointSet::getNumberOfNodes(), MEDCoupling::MEDFileUMesh::getNumberOfNodes(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getNumberOfTuples(), MEDCoupling::MEDCouplingFieldDiscretizationP0::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationOnNodes::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getOffsetArr(), MEDCoupling::MEDCouplingCMesh::getTinySerializationInformation(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getTinySerializationIntInformation(), MEDCoupling::MEDCouplingTwoTimeSteps::getTinySerializationIntInformation(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::getValueOnMulti(), MEDCoupling::DataArrayInt::indicesOfSubPart(), MEDCoupling::MEDCouplingFieldDiscretization::integral(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::integral(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), MEDCoupling::MEDCouplingGaussLocalization::localizePtsInRefCooForEachCell(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::makeReduction(), MEDCoupling::DataArrayDouble::Max(), MEDCoupling::DataArrayDouble::meldWith(), MEDCoupling::DataArrayInt::meldWith(), MEDCoupling::MEDCouplingUMesh::MergeNodesOnUMeshesSharingSameCoords(), MEDCoupling::DataArrayDouble::Min(), MEDCoupling::DataArrayDouble::minimalDistanceTo(), MEDCoupling::DataArrayInt::Modulus(), MEDCoupling::DataArrayInt::modulusEqual(), MEDCoupling::DataArrayDouble::Multiply(), MEDCoupling::DataArrayInt::Multiply(), MEDCoupling::DataArrayDouble::multiplyEqual(), MEDCoupling::DataArrayInt::multiplyEqual(), MEDCoupling::MEDCouplingStructuredMesh::MultiplyPartOf(), MEDCoupling::MEDFileMesh::normalizeFamIdsMEDFile(), MEDCoupling::MEDFileMesh::normalizeFamIdsTrio(), MEDCoupling::MEDCouplingUMesh::PartitionBySpreadZone(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::performDrift(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftOfVec(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftRect(), MEDCoupling::DataArrayDouble::Pow(), MEDCoupling::DataArrayInt::Pow(), MEDCoupling::DataArrayDouble::powEqual(), MEDCoupling::DataArrayInt::powEqual(), MEDCoupling::ReadFieldNode(), MEDCoupling::MEDFileMesh::rearrangeFamilies(), MEDCoupling::MEDCouplingUMesh::RemoveIdsFromIndexedArrays(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::renumberArraysForCell(), MEDCoupling::MEDCouplingUMesh::renumberCells(), MEDCoupling::MEDCouplingFieldDiscretizationPerCell::renumberCells(), MEDCoupling::MEDCouplingFieldDiscretization::RenumberEntitiesFromO2NArr(), MEDCoupling::MEDCouplingCurveLinearMesh::reprQuickOverview(), MEDCoupling::MEDCouplingCMesh::reprQuickOverview(), MEDCoupling::MEDCouplingUMesh::reprQuickOverview(), MEDCoupling::MEDCoupling1SGTUMesh::reprQuickOverview(), MEDCoupling::MEDCoupling1DGTUMesh::reprQuickOverview(), MEDCoupling::MEDCouplingCMesh::serialize(), MEDCoupling::DataArrayTemplate< T >::setContigPartOfSelectedValues(), MEDCoupling::MEDFileUMesh::setCoords(), MEDCoupling::MEDFileUMesh::setCoordsForced(), MEDCoupling::MEDFileUMesh::setFamilyFieldArr(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::setFieldProfile(), MEDCoupling::MEDFileUMesh::setNameFieldAtLevel(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArrays(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArraysSameIdx(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArraysSameIdxSlice(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArraysSlice(), MEDCoupling::MEDFileUMesh::setRenumFieldArr(), MEDCoupling::DataArrayDouble::setSelectedComponents(), MEDCoupling::DataArrayInt::setSelectedComponents(), MEDCoupling::MEDCouplingUMesh::simplifyPolyhedra(), MEDCoupling::MEDCouplingUMesh::SimplifyPolyhedronCell(), MEDCoupling::MEDCoupling1SGTUMesh::sortHexa8EachOther(), MEDCoupling::MEDCoupling1GTUMesh::splitProfilePerType(), MEDCoupling::MEDCouplingStructuredMesh::splitProfilePerType(), MEDCoupling::MEDCouplingUMesh::splitProfilePerType(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFine(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFineGhost(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFineGhostZone(), MEDCoupling::DataArrayDouble::Substract(), MEDCoupling::DataArrayInt::Substract(), MEDCoupling::DataArrayDouble::substractEqual(), MEDCoupling::DataArrayInt::substractEqual(), MEDCoupling::MEDCouplingUMesh::tetrahedrize(), MEDCoupling::MEDFileUMesh::unPolyze(), MEDCoupling::DataArrayDouble::writeVTK(), MEDCoupling::DataArrayInt::writeVTK(), MEDCoupling::MEDCouplingUMesh::writeVTKLL(), MEDCoupling::MEDFileUMesh::zipCoords(), and MEDCoupling::MEDCouplingFieldDiscretizationGauss::zipGaussLocalizations().

template<class T>
std::size_t MEDCoupling::DataArrayTemplate< T >::getNbOfElems ( ) const
virtual
template<class T>
void* MEDCoupling::DataArrayTemplate< T >::getVoidStarPointer ( )
virtual
template<class T>
const T* MEDCoupling::DataArrayTemplate< T >::getConstPointer ( ) const

Referenced by MEDCoupling::DataArrayDouble::Add(), MEDCoupling::DataArrayInt::Add(), MEDCoupling::DataArrayDouble::addEqual(), MEDCoupling::DataArrayInt::addEqual(), MEDCoupling::DataArrayInt::Aggregate(), MEDCoupling::MEDCouplingUMesh::areCellsIncludedInPolicy7(), MEDCoupling::DataArrayTemplate< char >::begin(), MEDCoupling::MEDCouplingUMesh::buildBoundaryMesh(), MEDCoupling::MEDCouplingUMesh::buildDirectionVectorField(), MEDCoupling::DataArrayDouble::buildEuclidianDistanceDenseMatrixWith(), MEDCoupling::DataArrayInt::buildExplicitArrByRanges(), MEDCoupling::MEDCouplingUMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingUMesh::buildPartOrthogonalField(), MEDCoupling::DataArrayInt::buildPermutationArr(), MEDCoupling::MEDCouplingUMesh::buildSlice3D(), MEDCoupling::MEDCouplingUMesh::buildSlice3DSurf(), MEDCoupling::DataArrayInt::buildSubstraction(), MEDCoupling::MEDCouplingFieldDouble::changeUnderlyingMesh(), MEDCoupling::MEDCouplingUMesh::checkButterflyCells(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::checkCoherencyBetween(), MEDCoupling::MEDCouplingUMesh::checkConsistency(), MEDCoupling::MEDCouplingPointSet::checkDeepEquivalOnSameNodesWith(), MEDCoupling::MEDCouplingPointSet::checkDeepEquivalWith(), MEDCoupling::MEDFileField1TSWithoutSDA::CheckSBTMesh(), MEDCoupling::MEDCouplingCMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingUMesh::computeEffectiveNbOfNodesPerCell(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeInverseMatrix(), MEDCoupling::MEDCouplingUMesh::computeNbOfFacesPerCell(), MEDCoupling::MEDCouplingUMesh::computeNbOfNodesPerCell(), MEDCoupling::MEDCouplingUMesh::ComputeNeighborsOfCellsAdv(), MEDCoupling::MEDCouplingUMesh::computeNodeIdsAlg(), MEDCoupling::DataArrayDouble::computeTupleIdsNearTuples(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeVectorOfCoefficients(), MEDCoupling::MEDCouplingUMesh::conformize3D(), MEDCoupling::MEDCouplingUMesh::convertExtrudedPolyhedra(), MEDCoupling::MEDCouplingUMesh::convertToPolyTypes(), MEDCoupling::MEDCouplingUMesh::convexEnvelop2D(), MEDCoupling::DataArrayDouble::CrossProduct(), MEDCoupling::DataArrayDouble::Divide(), MEDCoupling::DataArrayInt::Divide(), MEDCoupling::DataArrayDouble::divideEqual(), MEDCoupling::DataArrayInt::divideEqual(), MEDCoupling::DataArrayDouble::Dot(), MEDCoupling::MEDCouplingUMesh::duplicateNodesInConn(), MEDCoupling::DataArrayTemplate< char >::end(), MEDCoupling::MEDCouplingUMesh::findCellIdsOnBoundary(), MEDCoupling::MEDCouplingUMesh::FindCommonCellsAlg(), MEDCoupling::DataArrayInt::findIdInRangeForEachTuple(), MEDCoupling::MEDCouplingPointSet::findNodesOnLine(), MEDCoupling::MEDCouplingPointSet::findNodesOnPlane(), MEDCoupling::DataArrayInt::findRangeIdForEachTuple(), MEDCoupling::MEDCouplingCMesh::getBoundingBox(), MEDCoupling::MEDCoupling1SGTUMesh::getBoundingBoxForBBTree(), MEDCoupling::MEDCoupling1DGTUMesh::getBoundingBoxForBBTree(), MEDCoupling::MEDCouplingPointSet::getCaracteristicDimension(), MEDCoupling::MEDCouplingCMesh::getCellContainingPoint(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getCellIdsHavingGaussLocalization(), MEDCoupling::MEDCouplingUMesh::getCellsContainingPoints(), MEDCoupling::MEDCouplingUMesh::getCellsInBoundingBox(), MEDCoupling::MEDCouplingCMesh::getCoordinatesAndOwner(), MEDCoupling::MEDCouplingPointSet::getCoordinatesOfNode(), MEDCoupling::DataArrayDouble::getDifferentValues(), MEDCoupling::MEDFileUMesh::getFamilies(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getFieldOnMeshAtLevel(), MEDCoupling::ParaMESH::getGlobalNumberingCell(), MEDCoupling::ParaMESH::getGlobalNumberingFace(), MEDCoupling::ParaMESH::getGlobalNumberingNode(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getLocalizationOfDiscValues(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getLocalizationOfDiscValues(), MEDCoupling::MEDCouplingUMesh::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getMeasureFieldOnNode(), MEDCoupling::MEDCouplingUMesh::getNodeIdsInUse(), MEDCoupling::MEDCouplingUMesh::getNodeIdsOfCell(), MEDCoupling::MEDCouplingUMesh::getNumberOfCellsWithType(), MEDCoupling::MEDCouplingUMesh::getNumberOfNodesInCell(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getNumberOfTuples(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getOffsetArr(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getOffsetOfCell(), MEDCoupling::MEDCouplingUMesh::getPartMeasureField(), MEDCoupling::MEDCouplingUMesh::getReverseNodalConnectivity(), MEDCoupling::MEDCouplingUMesh::getTypeOfCell(), MEDCoupling::MEDCouplingUMesh::getTypesOfPart(), MEDCoupling::MEDCouplingUMesh::giveCellsWithType(), MEDCoupling::MEDCouplingFieldDiscretization::integral(), MEDCoupling::DataArrayDouble::Max(), MEDCoupling::DataArrayDouble::meldWith(), MEDCoupling::DataArrayInt::meldWith(), MEDCoupling::MEDCouplingFieldDouble::mergeNodes(), MEDCoupling::MEDCouplingPointSet::mergeNodesCenter(), MEDCoupling::MEDCouplingFieldDouble::mergeNodesCenter(), MEDCoupling::DataArrayDouble::Min(), MEDCoupling::DataArrayInt::Modulus(), MEDCoupling::DataArrayInt::modulusEqual(), MEDCoupling::DataArrayDouble::Multiply(), MEDCoupling::DataArrayInt::Multiply(), MEDCoupling::DataArrayDouble::multiplyEqual(), MEDCoupling::DataArrayInt::multiplyEqual(), MEDCoupling::MEDCouplingFieldDiscretization::normL1(), MEDCoupling::MEDCouplingFieldDiscretization::normL2(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::performDrift(), MEDCoupling::MEDCouplingUMesh::project1D(), MEDCoupling::MEDCouplingPointSet::project2DCellOnXY(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::renumberArraysForCell(), MEDCoupling::MEDCouplingUMesh::renumberCells(), MEDCoupling::MEDCouplingFieldDiscretization::RenumberEntitiesFromN2OArr(), MEDCoupling::MEDCouplingFieldDiscretization::RenumberEntitiesFromO2NArr(), MEDCoupling::MEDCouplingPointSet::renumberNodesCenter(), MEDCoupling::MEDCouplingUMesh::renumberNodesInConn(), MEDCoupling::MEDCouplingUMesh::serialize(), MEDCoupling::MEDCouplingUMesh::setPartOfMySelf(), MEDCoupling::MEDCouplingUMesh::setPartOfMySelfSlice(), MEDCoupling::DataArrayDouble::setSelectedComponents(), MEDCoupling::DataArrayInt::setSelectedComponents(), MEDCoupling::MEDCouplingUMesh::shiftNodeNumbersInConn(), MEDCoupling::MEDCouplingUMesh::simplifyPolyhedra(), MEDCoupling::DataArrayDouble::Substract(), MEDCoupling::DataArrayInt::Substract(), MEDCoupling::DataArrayDouble::substractEqual(), MEDCoupling::DataArrayInt::substractEqual(), MEDCoupling::MEDCouplingCMesh::translate(), MEDCoupling::MEDCouplingPointSet::tryToShareSameCoordsPermute(), MEDCoupling::MEDFileUMesh::unPolyze(), MEDCoupling::MEDCouplingCMesh::unserialization(), MEDCoupling::MEDCouplingUMesh::unserialization(), MEDCoupling::MEDCouplingFieldDouble::zipConnectivity(), MEDCoupling::MEDCouplingFieldDouble::zipCoords(), and MEDCoupling::MEDCouplingPointSet::zipCoordsTraducer().

template<class T>
const T* MEDCoupling::DataArrayTemplate< T >::begin ( ) const

Referenced by MEDCoupling::DataArrayDouble::Add(), MEDCoupling::DataArrayInt::Add(), MEDCoupling::DataArrayDouble::addEqual(), MEDCoupling::DataArrayInt::addEqual(), MEDCoupling::MEDFileMesh::addGroupUnderground(), MEDCoupling::DataArrayDouble::aggregate(), MEDCoupling::DataArrayDouble::Aggregate(), MEDCoupling::DataArrayInt::Aggregate(), MEDCoupling::DataArrayInt::aggregate(), MEDCoupling::MEDCoupling1GTUMesh::AggregateOnSameCoordsToUMesh(), MEDCoupling::MEDCouplingUMesh::AggregateSortedByTypeMeshesOnSameCoords(), MEDCoupling::MEDFileMesh::appendFamilyEntries(), MEDCoupling::MEDCouplingUMesh::are2DCellsNotCorrectlyOriented(), MEDCoupling::DataArrayDouble::areIncludedInMe(), MEDCoupling::MEDCouplingUMesh::areOnlySimplexCells(), MEDCoupling::MEDCouplingUMesh::arePolyhedronsNotCorrectlyOriented(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::buildCellFieldOnRecurseWithoutOverlapWithoutGhost(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::buildNbOfGaussPointPerCellField(), MEDCoupling::MEDCouplingPointSet::buildNewNumberingFromCommonNodesFormat(), MEDCoupling::MEDCouplingStructuredMesh::buildPartAndReduceNodes(), MEDCoupling::MEDCouplingPointSet::buildPartOfMySelfNode(), MEDCoupling::MEDCouplingMesh::buildPartRange(), MEDCoupling::MEDCouplingMesh::buildPartRangeAndReduceNodes(), MEDCoupling::MEDCouplingUMesh::buildSlice3D(), MEDCoupling::MEDCouplingUMesh::buildSlice3DSurf(), MEDCoupling::MEDCouplingUMesh::buildSpreadZonesWithPoly(), MEDCoupling::MEDCouplingFieldDiscretization::buildSubMeshDataRange(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::buildSubMeshDataRange(), MEDCoupling::MEDCouplingFieldDouble::buildSubPart(), MEDCoupling::MEDCouplingFieldDouble::buildSubPartRange(), MEDCoupling::DataArrayInt::buildSubstractionOptimized(), MEDCoupling::MEDCouplingUMesh::buildUnionOf3DMesh(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::buildUnstructured(), MEDCoupling::MEDCouplingFieldDouble::cellToNodeDiscretization(), MEDCoupling::MEDCouplingUMesh::changeOrientationOfCells(), MEDCoupling::MEDCouplingUMesh::checkConsecutiveCellTypes(), MEDCoupling::MEDCouplingUMesh::checkConsecutiveCellTypesAndOrder(), MEDCoupling::MEDCoupling1SGTUMesh::checkConsistency(), MEDCoupling::MEDCouplingUMesh::checkTypeConsistencyAndContig(), MEDCoupling::MEDCouplingUMesh::clipSingle3DCellByPlane(), MEDCoupling::MEDCouplingUMesh::colinearize2D(), MEDCoupling::MEDCouplingUMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingUMesh::computeCellNeighborhoodFromNodesOne(), MEDCoupling::MEDCoupling1SGTUMesh::computeDiameterField(), MEDCoupling::MEDCouplingUMesh::computeDiameterField(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeEvaluationMatrixOnGivenPts(), MEDCoupling::MEDCouplingUMesh::computeFetchedNodeIds(), MEDCoupling::MEDCoupling1SGTUMesh::computeIsoBarycenterOfNodesPerCell(), MEDCoupling::MEDCoupling1DGTUMesh::computeIsoBarycenterOfNodesPerCell(), MEDCoupling::MEDCouplingUMesh::computeIsoBarycenterOfNodesPerCell(), MEDCoupling::MEDCouplingFieldDiscretizationOnNodes::computeMeshRestrictionFromTupleIds(), MEDCoupling::DataArrayDouble::computeNbOfInteractionsWith(), MEDCoupling::MEDCouplingUMesh::computeNeighborsOfNodes(), MEDCoupling::MEDCouplingUMesh::computePlaneEquationOf3DFaces(), MEDCoupling::MEDCouplingUMesh::computeSkin(), MEDCoupling::MEDCouplingIMesh::CondenseFineToCoarse(), MEDCoupling::MEDCouplingIMesh::CondenseFineToCoarseGhost(), MEDCoupling::MEDCouplingUMesh::conformize2D(), MEDCoupling::MEDCouplingUMesh::conformize3D(), MEDCoupling::MEDCouplingUMesh::convertCellArrayPerGeoType(), MEDCoupling::MEDCouplingUMesh::convertNodalConnectivityToDynamicGeoTypeMesh(), MEDCoupling::MEDCouplingUMesh::convertNodalConnectivityToStaticGeoTypeMesh(), MEDCoupling::MEDCouplingFieldDouble::convertQuadraticCellsToLinear(), MEDCoupling::MEDCouplingUMesh::convertQuadraticCellsToLinear(), MEDCoupling::MEDFileMesh::createGroupOnAll(), MEDCoupling::DataArrayTemplate< T >::deepCopyFrom(), MEDCoupling::MEDCouplingUMesh::distanceToPoint(), MEDCoupling::MEDCouplingUMesh::distanceToPoints(), MEDCoupling::DataArrayDouble::Divide(), MEDCoupling::DataArrayInt::Divide(), MEDCoupling::DataArrayDouble::divideEqual(), MEDCoupling::DataArrayInt::divideEqual(), MEDCoupling::MEDCouplingUMesh::emulateMEDMEMBDC(), MEDCoupling::MEDFileMesh::ensureDifferentFamIdsPerLevel(), MEDCoupling::MEDCouplingStructuredMesh::ExtractFieldOfDoubleFrom(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArrays(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArraysSlice(), MEDCoupling::MEDFileUMesh::extractPart(), MEDCoupling::MEDFileField1TS::extractPart(), MEDCoupling::MEDCouplingFieldDouble::extractSlice3D(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::fillCellFieldOnPatch(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::fillCellFieldOnPatchGhost(), MEDCoupling::MEDCouplingUMesh::findAndCorrectBadOriented3DCells(), MEDCoupling::MEDCouplingUMesh::findAndCorrectBadOriented3DExtrudedCells(), MEDCoupling::MEDCouplingUMesh::findCellIdsLyingOn(), MEDCoupling::MEDCouplingUMesh::findCellIdsOnBoundary(), MEDCoupling::DataArrayDouble::findClosestTupleId(), MEDCoupling::MEDCouplingUMesh::FindCommonCellsAlg(), MEDCoupling::DataArrayInt::findIdsRangesInListOfIds(), MEDCoupling::DataArrayDouble::fromCartToCylGiven(), MEDCoupling::MEDCouplingUMesh::FuseUMeshesOnSameCoords(), MEDCoupling::MEDCouplingUMesh::generateGraph(), MEDCoupling::MEDCouplingUMesh::getAllGeoTypesSorted(), MEDCoupling::MEDCouplingUMesh::getAspectRatioField(), MEDCoupling::MEDCouplingUMesh::getBoundingBoxForBBTree1DQuadratic(), MEDCoupling::MEDCouplingUMesh::getBoundingBoxForBBTree2DQuadratic(), MEDCoupling::MEDCouplingUMesh::getBoundingBoxForBBTreeFast(), MEDCoupling::MEDCouplingUMesh::getCellsContainingPoint(), MEDCoupling::DataArrayDouble::getDifferentValues(), MEDCoupling::MEDCouplingUMesh::getDistributionOfTypes(), MEDCoupling::MEDCouplingUMesh::getEdgeRatioField(), MEDCoupling::MEDCouplingUMesh::getFastAveragePlaneOfThis(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getGaussLocalizationIdOfOneCell(), MEDCoupling::MEDCouplingUMesh::getLevArrPerCellTypes(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getLocalizationOfDiscValues(), MEDCoupling::MEDFileFields::getLocsReallyUsed(), MEDCoupling::MEDFileFields::getLocsReallyUsedMulti(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getPartBarycenterAndOwner(), MEDCoupling::MEDFileFields::getPflsReallyUsedMulti(), MEDCoupling::MEDCouplingUMesh::getQuadraticStatus(), MEDCoupling::MEDCouplingUMesh::getSkewField(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getStringRepr(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::getValueOn(), MEDCoupling::MEDCouplingFieldDiscretizationP0::getValueOnMulti(), MEDCoupling::MEDCouplingFieldDiscretizationP1::getValueOnMulti(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::getValueOnMulti(), MEDCoupling::MEDCouplingUMesh::getWarpField(), MEDCoupling::DataArrayInt::indicesOfSubPart(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::integral(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshes(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), MEDCoupling::MEDCouplingUMesh::isContiguous1D(), MEDCoupling::MEDCouplingUMesh::keepCellIdsByType(), MEDCoupling::MEDFileMesh::keepFamIdsOnlyOnLevs(), MEDCoupling::MEDCouplingUMesh::keepSpecifiedCells(), MEDCoupling::MEDFileUMesh::linearToQuadratic(), MEDCoupling::MEDCouplingGaussLocalization::localizePtsInRefCooForEachCell(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::makeReduction(), MEDCoupling::MEDCouplingPointSet::mergeNodes(), MEDCoupling::MEDCouplingPointSet::MergeNodesArray(), MEDCoupling::MEDCouplingUMesh::MergeNodesOnUMeshesSharingSameCoords(), MEDCoupling::DataArrayDouble::minimalDistanceTo(), MEDCoupling::DataArrayInt::Modulus(), MEDCoupling::DataArrayInt::modulusEqual(), MEDCoupling::DataArrayDouble::Multiply(), MEDCoupling::DataArrayInt::Multiply(), MEDCoupling::DataArrayDouble::multiplyEqual(), MEDCoupling::DataArrayInt::multiplyEqual(), MEDCoupling::DataArrayTemplate< T >::mySelectByTupleId(), MEDCoupling::MEDCoupling1SGTUMesh::New(), MEDCoupling::MEDCoupling1DGTUMesh::New(), MEDCoupling::MEDCouplingUMeshCellByTypeIterator::nextt(), MEDCoupling::MEDFileMesh::normalizeFamIdsMEDFile(), MEDCoupling::MEDFileMesh::normalizeFamIdsTrio(), MEDCoupling::MEDFileUMesh::optimizeFamilies(), MEDCoupling::MEDCouplingUMesh::orderConsecutiveCells1D(), MEDCoupling::MEDCouplingUMesh::orientCorrectly2DCells(), MEDCoupling::MEDCouplingUMesh::orientCorrectlyPolyhedrons(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::partOfThisLyingOnSpecifiedTimeSteps(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::partOfThisNotLyingOnSpecifiedTimeSteps(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftOfVec(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftRect(), MEDCoupling::DataArrayDouble::Pow(), MEDCoupling::DataArrayInt::Pow(), MEDCoupling::DataArrayDouble::powEqual(), MEDCoupling::DataArrayInt::powEqual(), MEDCoupling::MEDFileUMesh::quadraticToLinear(), MEDCoupling::ReadFieldNode(), MEDCoupling::ReadFieldsOnSameMesh(), MEDCoupling::MEDCouplingUMesh::rearrange2ConsecutiveCellTypes(), MEDCoupling::MEDFileMesh::rearrangeFamilies(), MEDCoupling::MEDCouplingUMesh::RemoveIdsFromIndexedArrays(), MEDCoupling::MEDCoupling1SGTUMesh::renumberCells(), MEDCoupling::MEDCouplingUMesh::renumberCells(), MEDCoupling::MEDCouplingMappedExtrudedMesh::serialize(), MEDCoupling::MEDCoupling1SGTUMesh::serialize(), MEDCoupling::MEDCoupling1DGTUMesh::serialize(), MEDCoupling::DataArrayTemplate< T >::setContigPartOfSelectedValues(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArrays(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArraysSameIdx(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArraysSameIdxSlice(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArraysSlice(), MEDCoupling::DataArrayTemplate< T >::setPartOfValuesAdv(), MEDCoupling::MEDCouplingUMesh::SimplifyPolyhedronCell(), MEDCoupling::MEDCouplingUMesh::sortCellsInMEDFileFrmt(), MEDCoupling::MEDCoupling1SGTUMesh::sortHexa8EachOther(), MEDCoupling::MEDCouplingUMesh::splitByType(), MEDCoupling::MEDCouplingUMesh::splitProfilePerType(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFine(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFineGhost(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFineGhostZone(), MEDCoupling::DataArrayDouble::Substract(), MEDCoupling::DataArrayInt::Substract(), MEDCoupling::DataArrayDouble::substractEqual(), MEDCoupling::DataArrayInt::substractEqual(), MEDCoupling::MEDCouplingUMesh::tetrahedrize(), MEDCoupling::MEDCouplingCurveLinearMesh::unserialization(), MEDCoupling::MEDCouplingMappedExtrudedMesh::unserialization(), MEDCoupling::MEDCoupling1SGTUMesh::unserialization(), MEDCoupling::MEDCoupling1DGTUMesh::unserialization(), MEDCoupling::MEDFileUMesh::whichAreNodesFetched(), MEDCoupling::MEDFileStructuredMesh::whichAreNodesFetched(), MEDCoupling::WriteField(), MEDCoupling::MEDCouplingUMesh::writeVTKLL(), MEDCoupling::MEDCouplingPointSet::zipConnectivityTraducer(), MEDCoupling::MEDFileUMesh::zipCoords(), and MEDCoupling::MEDCouplingFieldDiscretizationGauss::zipGaussLocalizations().

template<class T>
const T* MEDCoupling::DataArrayTemplate< T >::end ( ) const

Referenced by MEDCoupling::DataArrayDouble::Add(), MEDCoupling::DataArrayInt::Add(), MEDCoupling::MEDFileMesh::addGroupUnderground(), MEDCoupling::DataArrayDouble::aggregate(), MEDCoupling::DataArrayInt::aggregate(), MEDCoupling::MEDFileMesh::appendFamilyEntries(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::buildCellFieldOnRecurseWithoutOverlapWithoutGhost(), MEDCoupling::MEDCouplingPointSet::buildNewNumberingFromCommonNodesFormat(), MEDCoupling::MEDCouplingPointSet::buildPartOfMySelfNode(), MEDCoupling::MEDCouplingMesh::buildPartRange(), MEDCoupling::MEDCouplingMesh::buildPartRangeAndReduceNodes(), MEDCoupling::MEDCouplingUMesh::buildSlice3D(), MEDCoupling::MEDCouplingUMesh::buildSlice3DSurf(), MEDCoupling::MEDCouplingFieldDiscretization::buildSubMeshDataRange(), MEDCoupling::MEDCouplingFieldDouble::buildSubPart(), MEDCoupling::MEDCouplingFieldDouble::buildSubPartRange(), MEDCoupling::DataArrayInt::buildSubstractionOptimized(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::buildUnstructured(), MEDCoupling::MEDCouplingFieldDouble::cellToNodeDiscretization(), MEDCoupling::MEDCouplingUMesh::checkTypeConsistencyAndContig(), MEDCoupling::MEDCouplingUMesh::clipSingle3DCellByPlane(), MEDCoupling::MEDCouplingUMesh::computeFetchedNodeIds(), MEDCoupling::MEDCouplingFieldDiscretizationOnNodes::computeMeshRestrictionFromTupleIds(), MEDCoupling::MEDCouplingUMesh::computeSkin(), MEDCoupling::MEDCouplingUMesh::conformize3D(), MEDCoupling::MEDCouplingFieldDouble::convertQuadraticCellsToLinear(), MEDCoupling::MEDFileMesh::createGroupOnAll(), MEDCoupling::DataArrayDouble::Divide(), MEDCoupling::DataArrayInt::Divide(), MEDCoupling::MEDFileMesh::ensureDifferentFamIdsPerLevel(), MEDCoupling::MEDFileField1TS::extractPart(), MEDCoupling::MEDCouplingFieldDouble::extractSlice3D(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::fillCellFieldOnPatch(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::fillCellFieldOnPatchGhost(), MEDCoupling::MEDCouplingUMesh::findCellIdsLyingOn(), MEDCoupling::MEDCouplingUMesh::findCellIdsOnBoundary(), MEDCoupling::MEDCouplingUMesh::FindCommonCellsAlg(), MEDCoupling::DataArrayInt::findIdsRangesInListOfIds(), MEDCoupling::MEDCouplingUMesh::getCellsContainingPoint(), MEDCoupling::MEDFileFields::getLocsReallyUsed(), MEDCoupling::MEDFileFields::getLocsReallyUsedMulti(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), MEDCoupling::MEDFileFields::getPflsReallyUsedMulti(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getStringRepr(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::getValueOn(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), MEDCoupling::MEDFileMesh::keepFamIdsOnlyOnLevs(), MEDCoupling::MEDCouplingUMesh::keepSpecifiedCells(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::makeReduction(), MEDCoupling::MEDCouplingUMesh::MergeNodesOnUMeshesSharingSameCoords(), MEDCoupling::DataArrayInt::Modulus(), MEDCoupling::DataArrayDouble::Multiply(), MEDCoupling::DataArrayInt::Multiply(), MEDCoupling::DataArrayTemplate< T >::mySelectByTupleId(), MEDCoupling::MEDFileMesh::normalizeFamIdsMEDFile(), MEDCoupling::MEDFileMesh::normalizeFamIdsTrio(), MEDCoupling::MEDFileUMesh::optimizeFamilies(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::partOfThisLyingOnSpecifiedTimeSteps(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::partOfThisNotLyingOnSpecifiedTimeSteps(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftOfVec(), MEDCoupling::ReadFieldNode(), MEDCoupling::MEDFileMesh::rearrangeFamilies(), MEDCoupling::MEDCoupling1SGTUMesh::serialize(), MEDCoupling::MEDCoupling1DGTUMesh::serialize(), MEDCoupling::DataArrayTemplate< T >::setContigPartOfSelectedValues(), MEDCoupling::DataArrayTemplate< T >::setPartOfValuesAdv(), MEDCoupling::MEDCouplingUMesh::SimplifyPolyhedronCell(), MEDCoupling::MEDCoupling1SGTUMesh::sortHexa8EachOther(), MEDCoupling::DataArrayDouble::Substract(), MEDCoupling::DataArrayInt::Substract(), MEDCoupling::MEDCouplingCurveLinearMesh::unserialization(), MEDCoupling::MEDCoupling1SGTUMesh::unserialization(), MEDCoupling::MEDCoupling1DGTUMesh::unserialization(), MEDCoupling::MEDFileUMesh::whichAreNodesFetched(), and MEDCoupling::MEDFileStructuredMesh::whichAreNodesFetched().

template<class T >
void MEDCoupling::DataArrayTemplate< T >::alloc ( std::size_t  nbOfTuple,
std::size_t  nbOfCompo = 1 
)
virtual

Allocates the raw data in memory. If the memory was already allocated, then it is freed and re-allocated. See an example of this method use here.

Parameters
[in]nbOfTuple- number of tuples of data to allocate.
[in]nbOfCompo- number of components of data to allocate.
Exceptions
IfnbOfTuple < 0 or nbOfCompo < 0.

Implements MEDCoupling::DataArray.

Referenced by MEDCoupling::DataArrayDouble::accumulatePerChunck(), MEDCoupling::DataArrayInt::accumulatePerChunck(), MEDCoupling::DataArrayDouble::Add(), MEDCoupling::DataArrayInt::Add(), MEDCoupling::DataArrayDouble::Aggregate(), MEDCoupling::DataArrayInt::Aggregate(), MEDCoupling::DataArrayInt::AggregateIndexes(), MEDCoupling::MEDCoupling1DGTUMesh::AggregateNodalConnAndShiftNodeIds(), MEDCoupling::MEDCoupling1GTUMesh::AggregateOnSameCoordsToUMesh(), MEDCoupling::MEDCouplingUMesh::AggregateSortedByTypeMeshesOnSameCoords(), MEDCoupling::DataArrayDouble::applyFunc(), MEDCoupling::DataArrayDouble::applyFuncNamedCompo(), MEDCoupling::MEDCouplingUMesh::areCellsIncludedInPolicy7(), MEDCoupling::MEDCouplingUMesh::Build1DMeshFromCoords(), MEDCoupling::MEDCouplingStructuredMesh::Build1GTNodalConnectivity(), MEDCoupling::DataArrayInt::buildComplement(), MEDCoupling::MEDCouplingUMesh::buildDirectionVectorField(), MEDCoupling::MEDCouplingFieldDiscretizationPerCell::buildDiscrPerCellIfNecessary(), MEDCoupling::DataArrayDouble::buildEuclidianDistanceDenseMatrix(), MEDCoupling::DataArrayDouble::buildEuclidianDistanceDenseMatrixWith(), MEDCoupling::DataArrayInt::buildExplicitArrByRanges(), MEDCoupling::DataArrayInt::buildExplicitArrOfSliceOnScaledArr(), MEDCoupling::MEDCouplingStructuredMesh::BuildExplicitIdsFrom(), MEDCoupling::DataArrayInt::BuildIntersection(), MEDCoupling::DataArrayInt::BuildListOfSwitchedOff(), MEDCoupling::DataArrayInt::BuildListOfSwitchedOn(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::buildNbOfGaussPointPerCellField(), MEDCoupling::MEDCouplingStructuredMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingCurveLinearMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingUMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingStructuredMesh::buildPartAndReduceNodes(), MEDCoupling::MEDCoupling1SGTUMesh::buildPartOfMySelfKeepCoords(), MEDCoupling::MEDCoupling1SGTUMesh::buildPartOfMySelfKeepCoordsSlice(), MEDCoupling::MEDCouplingUMesh::buildPartOrthogonalField(), MEDCoupling::DataArrayInt::buildPermArrPerLevel(), MEDCoupling::DataArrayInt::buildPermutationArr(), MEDCoupling::MEDCouplingGaussLocalization::buildRefCell(), MEDCoupling::MEDCouplingUMesh::buildSetInstanceFromThis(), MEDCoupling::MEDCoupling1SGTUMesh::buildSetInstanceFromThis(), MEDCoupling::MEDCoupling1DGTUMesh::buildSetInstanceFromThis(), MEDCoupling::MEDCouplingFieldDiscretizationP0::buildSubMeshData(), MEDCoupling::DataArrayInt::buildSubstraction(), MEDCoupling::DataArrayInt::buildSubstractionOptimized(), MEDCoupling::DataArrayInt::BuildUnion(), MEDCoupling::MEDCouplingUMesh::buildUnionOf3DMesh(), MEDCoupling::DataArrayInt::buildUnique(), MEDCoupling::DataArrayInt::buildUniqueNotSorted(), MEDCoupling::MEDCoupling1SGTUMesh::buildUnstructured(), MEDCoupling::MEDCoupling1DGTUMesh::buildUnstructured(), MEDCoupling::DataArrayInt::changeSurjectiveFormat(), MEDCoupling::MEDCouplingPointSet::checkDeepEquivalWith(), MEDCoupling::MEDFileField1TSWithoutSDA::CheckSBTMesh(), MEDCoupling::MEDCouplingUMesh::checkTypeConsistencyAndContig(), MEDCoupling::MEDCouplingUMesh::clipSingle3DCellByPlane(), MEDCoupling::MEDCouplingUMesh::colinearize2D(), MEDCoupling::DataArrayDouble::computeAbs(), MEDCoupling::DataArrayInt::computeAbs(), MEDCoupling::DataArrayDouble::computeBBoxPerTuple(), MEDCoupling::MEDCouplingCMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingCurveLinearMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingIMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingUMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingUMesh::computeCellNeighborhoodFromNodesOne(), MEDCoupling::MEDCoupling1SGTUMesh::computeDiameterField(), MEDCoupling::MEDCouplingUMesh::computeDiameterField(), MEDCoupling::MEDCoupling1SGTUMesh::computeEffectiveNbOfNodesPerCell(), MEDCoupling::MEDCouplingUMesh::computeEffectiveNbOfNodesPerCell(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeEvaluationMatrixOnGivenPts(), MEDCoupling::MEDCoupling1SGTUMesh::computeFetchedNodeIds(), MEDCoupling::MEDCoupling1DGTUMesh::computeFetchedNodeIds(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeInverseMatrix(), MEDCoupling::MEDCoupling1SGTUMesh::computeIsoBarycenterOfNodesPerCell(), MEDCoupling::MEDCoupling1DGTUMesh::computeIsoBarycenterOfNodesPerCell(), MEDCoupling::MEDCouplingUMesh::computeIsoBarycenterOfNodesPerCell(), MEDCoupling::MEDCouplingFieldDiscretizationP0::computeMeshRestrictionFromTupleIds(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::computeMeshRestrictionFromTupleIds(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::computeMeshRestrictionFromTupleIds(), MEDCoupling::MEDCouplingStructuredMesh::computeNbOfFacesPerCell(), MEDCoupling::MEDCouplingMappedExtrudedMesh::computeNbOfFacesPerCell(), MEDCoupling::MEDCoupling1SGTUMesh::computeNbOfFacesPerCell(), MEDCoupling::MEDCouplingUMesh::computeNbOfFacesPerCell(), MEDCoupling::MEDCoupling1DGTUMesh::computeNbOfFacesPerCell(), MEDCoupling::DataArrayDouble::computeNbOfInteractionsWith(), MEDCoupling::MEDCouplingStructuredMesh::computeNbOfNodesPerCell(), MEDCoupling::MEDCouplingMappedExtrudedMesh::computeNbOfNodesPerCell(), MEDCoupling::MEDCoupling1SGTUMesh::computeNbOfNodesPerCell(), MEDCoupling::MEDCouplingUMesh::computeNbOfNodesPerCell(), MEDCoupling::MEDCoupling1DGTUMesh::computeNbOfNodesPerCell(), MEDCoupling::MEDCouplingUMesh::ComputeNeighborsOfCellsAdv(), MEDCoupling::MEDCouplingUMesh::computeNeighborsOfNodes(), MEDCoupling::MEDCouplingUMesh::computePlaneEquationOf3DFaces(), MEDCoupling::MEDCouplingUMesh::ComputeSpreadZoneGraduallyFromSeed(), MEDCoupling::MEDCouplingFieldDiscretizationP0::computeTupleIdsToSelectFromCellIds(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeVectorOfCoefficients(), MEDCoupling::MEDCouplingUMesh::conformize3D(), MEDCoupling::MEDCouplingUMesh::convertCellArrayPerGeoType(), MEDCoupling::MEDCouplingUMesh::convertExtrudedPolyhedra(), MEDCoupling::DataArrayInt::ConvertIndexArrayToO2N(), MEDCoupling::MEDCouplingUMesh::convertNodalConnectivityToDynamicGeoTypeMesh(), MEDCoupling::MEDCouplingUMesh::convertNodalConnectivityToStaticGeoTypeMesh(), MEDCoupling::MEDCouplingUMesh::convertQuadraticCellsToLinear(), MEDCoupling::MEDCouplingIMesh::convertToCartesian(), MEDCoupling::DataArrayInt::convertToDblArr(), MEDCoupling::DataArrayDouble::convertToIntArr(), MEDCoupling::MEDCouplingUMesh::convexEnvelop2D(), MEDCoupling::DataArrayDouble::CrossProduct(), MEDCoupling::DataArrayInt::deltaShiftIndex(), MEDCoupling::DataArrayDouble::determinant(), MEDCoupling::DataArrayDouble::deviator(), MEDCoupling::MEDCouplingUMesh::distanceToPoints(), MEDCoupling::DataArrayDouble::Divide(), MEDCoupling::DataArrayInt::Divide(), MEDCoupling::DataArrayDouble::Dot(), MEDCoupling::DataArrayDouble::doublyContractedProduct(), MEDCoupling::DataArrayDouble::duplicateEachTupleNTimes(), MEDCoupling::DataArrayInt::duplicateEachTupleNTimes(), MEDCoupling::DataArrayDouble::eigenValues(), MEDCoupling::DataArrayDouble::eigenVectors(), MEDCoupling::MEDCoupling1SGTUMesh::explodeEachHexa8To6Quad4(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArrays(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArraysSlice(), MEDCoupling::MEDCoupling1SGTUMesh::fillCellIdsToKeepFromNodeIds(), MEDCoupling::MEDCoupling1DGTUMesh::fillCellIdsToKeepFromNodeIds(), MEDCoupling::MEDCouplingUMesh::findAndCorrectBadOriented3DCells(), MEDCoupling::MEDCouplingUMesh::findAndCorrectBadOriented3DExtrudedCells(), MEDCoupling::MEDCouplingUMesh::findCellIdsLyingOn(), MEDCoupling::MEDCouplingUMesh::findCellIdsOnBoundary(), MEDCoupling::DataArrayDouble::findClosestTupleId(), MEDCoupling::MEDCouplingUMesh::FindCommonCellsAlg(), MEDCoupling::DataArrayInt::findIdInRangeForEachTuple(), MEDCoupling::DataArrayInt::findIdsEqual(), MEDCoupling::DataArrayInt::findIdsEqualList(), MEDCoupling::DataArrayInt::findIdsEqualTuple(), MEDCoupling::DataArrayDouble::findIdsInRange(), MEDCoupling::DataArrayInt::findIdsInRange(), MEDCoupling::DataArrayInt::findIdsNotEqual(), MEDCoupling::DataArrayInt::findIdsNotEqualList(), MEDCoupling::DataArrayDouble::findIdsNotInRange(), MEDCoupling::DataArrayInt::findIdsNotInRange(), MEDCoupling::DataArrayInt::findIdsRangesInListOfIds(), MEDCoupling::DataArrayInt::findIdsStricltyNegative(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::findPatchesInTheNeighborhoodOf(), MEDCoupling::DataArrayInt::findRangeIdForEachTuple(), MEDCoupling::DataArrayDouble::fromCartToCyl(), MEDCoupling::DataArrayDouble::fromCartToCylGiven(), MEDCoupling::DataArrayDouble::fromCartToPolar(), MEDCoupling::DataArrayDouble::fromCartToSpher(), MEDCoupling::DataArrayDouble::fromCylToCart(), MEDCoupling::DataArrayDouble::fromPolarToCart(), MEDCoupling::DataArrayDouble::fromSpherToCart(), MEDCoupling::MEDCouplingUMesh::FuseUMeshesOnSameCoords(), MEDCoupling::MEDFileMesh::getAllFamiliesIdsReferenced(), MEDCoupling::MEDCouplingUMesh::getAspectRatioField(), MEDCoupling::MEDCoupling1SGTUMesh::getBoundingBoxForBBTree(), MEDCoupling::MEDCoupling1DGTUMesh::getBoundingBoxForBBTree(), MEDCoupling::MEDCouplingUMesh::getBoundingBoxForBBTree1DQuadratic(), MEDCoupling::MEDCouplingUMesh::getBoundingBoxForBBTree2DQuadratic(), MEDCoupling::MEDCouplingUMesh::getBoundingBoxForBBTreeFast(), MEDCoupling::MEDCouplingMesh::getCellIdsFullyIncludedInNodeIds(), MEDCoupling::MEDCouplingMesh::getCellsContainingPoints(), MEDCoupling::MEDCouplingUMesh::getCellsInBoundingBox(), MEDCoupling::MEDCouplingCMesh::getCoordinatesAndOwner(), MEDCoupling::MEDCouplingIMesh::getCoordinatesAndOwner(), MEDCoupling::DataArrayInt::getDifferentValues(), MEDCoupling::MEDCouplingUMesh::getEdgeRatioField(), MEDCoupling::MEDCouplingUMesh::getLevArrPerCellTypes(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getLocalizationOfDiscValues(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getLocalizationOfDiscValues(), MEDCoupling::MEDCouplingCMesh::getMeasureField(), MEDCoupling::MEDCouplingIMesh::getMeasureField(), MEDCoupling::MEDCouplingMappedExtrudedMesh::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getMeasureFieldOnNode(), MEDCoupling::MEDCouplingUMesh::getNodeIdsInUse(), MEDCoupling::MEDCoupling1SGTUMesh::getNodeIdsInUse(), MEDCoupling::MEDCoupling1DGTUMesh::getNodeIdsInUse(), MEDCoupling::MEDCouplingFieldDiscretizationP0::getOffsetArr(), MEDCoupling::MEDCouplingFieldDiscretizationOnNodes::getOffsetArr(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getOffsetArr(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getOffsetArr(), MEDCoupling::MEDFileMesh::getOrCreateAndGetFamilyFieldAtLevel(), MEDCoupling::MEDCouplingUMesh::getPartBarycenterAndOwner(), MEDCoupling::MEDCouplingUMesh::getPartMeasureField(), MEDCoupling::MEDCouplingUMesh::getSkewField(), MEDCoupling::MEDCouplingFieldDiscretizationP0::getValueOnMulti(), MEDCoupling::MEDCouplingFieldDiscretizationP1::getValueOnMulti(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::getValueOnMulti(), MEDCoupling::MEDCouplingUMesh::getWarpField(), MEDCoupling::MEDCouplingStructuredMesh::giveCellsWithType(), MEDCoupling::MEDCoupling1GTUMesh::giveCellsWithType(), MEDCoupling::MEDCouplingUMesh::giveCellsWithType(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshes(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), MEDCoupling::DataArrayDouble::inverse(), MEDCoupling::DataArrayInt::invertArrayN2O2O2N(), MEDCoupling::DataArrayInt::invertArrayO2N2N2O(), MEDCoupling::DataArrayInt::invertArrayO2N2N2OBis(), MEDCoupling::MEDCouplingUMesh::keepCellIdsByType(), MEDCoupling::MEDCouplingUMesh::keepSpecifiedCells(), MEDCoupling::MEDFileUMesh::linearToQuadratic(), MEDCoupling::DataArrayDouble::magnitude(), MEDCoupling::DataArrayInt::MakePartition(), MEDCoupling::DataArrayDouble::Max(), MEDCoupling::DataArrayDouble::maxPerTuple(), MEDCoupling::DataArrayDouble::maxPerTupleWithCompoId(), MEDCoupling::MEDCouplingUMesh::MergeUMeshesOnSameCoords(), MEDCoupling::DataArrayDouble::Min(), MEDCoupling::DataArrayInt::Modulus(), MEDCoupling::DataArrayDouble::Multiply(), MEDCoupling::DataArrayInt::Multiply(), MEDCoupling::DataArrayDouble::negate(), MEDCoupling::DataArrayInt::negate(), MEDCoupling::MEDCouplingUMesh::orderConsecutiveCells1D(), MEDCoupling::ParaFIELD::ParaFIELD(), MEDCoupling::ParaMESH::ParaMESH(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::partOfThisLyingOnSpecifiedTimeSteps(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::partOfThisNotLyingOnSpecifiedTimeSteps(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::performDrift(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftOfVec(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftRect(), MEDCoupling::DataArrayDouble::Pow(), MEDCoupling::DataArrayInt::Pow(), MEDCoupling::DataArrayInt::Range(), MEDCoupling::MEDCouplingUMesh::rearrange2ConsecutiveCellTypes(), MEDCoupling::MEDCouplingUMesh::RemoveIdsFromIndexedArrays(), MEDCoupling::MEDCoupling1SGTUMesh::renumberCells(), MEDCoupling::MEDCouplingUMesh::renumberCells(), MEDCoupling::MEDCoupling1DGTUMesh::renumberCells(), MEDCoupling::MEDCouplingPointSet::renumberNodesCenter(), MEDCoupling::MEDCouplingCurveLinearMesh::resizeForUnserialization(), MEDCoupling::MEDCouplingCMesh::resizeForUnserialization(), MEDCoupling::MEDCouplingUMesh::resizeForUnserialization(), MEDCoupling::MEDCouplingIMesh::resizeForUnserialization(), MEDCoupling::MEDCouplingMappedExtrudedMesh::resizeForUnserialization(), MEDCoupling::MEDCouplingPointSet::resizeForUnserialization(), MEDCoupling::MEDCouplingTimeDiscretization::resizeForUnserialization(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::resizeForUnserialization(), MEDCoupling::MEDCoupling1DGTUMesh::resizeForUnserialization(), MEDCoupling::MEDCouplingTwoTimeSteps::resizeForUnserialization(), MEDCoupling::MEDCouplingRemapper::reverseTransfer(), MEDCoupling::MEDCouplingCurveLinearMesh::serialize(), MEDCoupling::MEDCouplingCMesh::serialize(), MEDCoupling::MEDCouplingUMesh::serialize(), MEDCoupling::MEDCouplingIMesh::serialize(), MEDCoupling::MEDCouplingMappedExtrudedMesh::serialize(), MEDCoupling::MEDCoupling1SGTUMesh::serialize(), MEDCoupling::MEDCoupling1DGTUMesh::serialize(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArrays(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArraysSlice(), MEDCoupling::MEDCoupling1DGTUMesh::simplexize(), MEDCoupling::MEDCouplingUMesh::simplifyPolyhedra(), MEDCoupling::MEDCouplingUMesh::SimplifyPolyhedronCell(), MEDCoupling::MEDCoupling1SGTUMesh::sortHexa8EachOther(), MEDCoupling::DataArrayInt::splitByValueRange(), MEDCoupling::DataArrayDouble::Substract(), MEDCoupling::DataArrayInt::Substract(), MEDCoupling::DataArrayDouble::sumPerTuple(), MEDCoupling::DataArrayInt::sumPerTuple(), MEDCoupling::DataArrayDouble::symmetry3DPlane(), MEDCoupling::MEDCouplingUMesh::tetrahedrize(), MEDCoupling::DataArrayDouble::trace(), MEDCoupling::DataArrayInt::transformWithIndArrR(), MEDCoupling::MEDCouplingUMesh::unserialization(), MEDCoupling::MEDCouplingMesh::writeVTK(), MEDCoupling::MEDCouplingUMesh::writeVTKLL(), and MEDCoupling::MEDFileUMesh::zipCoords().

template<class T>
void MEDCoupling::DataArrayTemplate< T >::useArray ( const T *  array,
bool  ownership,
DeallocType  type,
int  nbOfTuple,
int  nbOfCompo 
)

Sets a C array to be used as raw data of this. The previously set info of components is retained and re-sized. For more info see Building an array from scratch in C++.

Parameters
[in]array- the C array to be used as raw data of this.
[in]ownership- if true, array will be deallocated at destruction of this.
[in]type- specifies how to deallocate array. If type == MEDCoupling::CPP_DEALLOC, delete [] array; will be called. If type == MEDCoupling::C_DEALLOC, free(array ) will be called.
[in]nbOfTuple- new number of tuples in this.
[in]nbOfCompo- new number of components in this.

Referenced by MEDCoupling::DataArrayInt::checkAndPreparePermutation(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::computeTupleIdsToSelectFromCellIds(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::computeTupleIdsToSelectFromCellIds(), MEDCoupling::MEDCouplingUMesh::distanceToPoint(), MEDCoupling::DataArrayDouble::fromNoInterlace(), MEDCoupling::DataArrayInt::fromNoInterlace(), MEDCoupling::MEDCouplingPointSet::getNodeIdsNearPoints(), MEDCoupling::MEDCouplingUMesh::getReverseNodalConnectivity(), MEDCoupling::MEDCoupling1SGTUMesh::getReverseNodalConnectivity(), MEDCoupling::MEDCoupling1DGTUMesh::getReverseNodalConnectivity(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), MEDCoupling::MEDCoupling1SGTUMesh::renumberCells(), MEDCoupling::MEDCouplingUMesh::renumberCells(), MEDCoupling::MEDCoupling1DGTUMesh::renumberCells(), MEDCoupling::DataArrayDouble::toNoInterlace(), and MEDCoupling::DataArrayInt::toNoInterlace().

template<class T>
void MEDCoupling::DataArrayTemplate< T >::useExternalArrayWithRWAccess ( const T *  array,
int  nbOfTuple,
int  nbOfCompo 
)
template<class T >
T MEDCoupling::DataArrayTemplate< T >::getIJSafe ( int  tupleId,
int  compoId 
) const

Returns a value located at specified tuple and component. This method is equivalent to DataArrayTemplate<T>::getIJ() except that validity of parameters is checked. So this method is safe but expensive if used to go through all values of this.

Parameters
[in]tupleId- index of tuple of interest.
[in]compoId- index of component of interest.
Returns
double - value located by tupleId and compoId.
Exceptions
Ifthis is not allocated.
Ifcondition ( 0 <= tupleId < this->getNumberOfTuples() ) is violated.
Ifcondition ( 0 <= compoId < this->getNumberOfComponents() ) is violated.

Referenced by MEDCoupling::MEDCouplingUMesh::buildSpreadZonesWithPoly().

template<class T>
void MEDCoupling::DataArrayTemplate< T >::setIJSilent ( int  tupleId,
int  compoId,
newVal 
)
template<class T>
T* MEDCoupling::DataArrayTemplate< T >::getPointer ( )

Referenced by MEDCoupling::DataArrayDouble::accumulatePerChunck(), MEDCoupling::DataArrayInt::accumulatePerChunck(), MEDCoupling::DataArrayDouble::Add(), MEDCoupling::DataArrayInt::Add(), MEDCoupling::DataArrayDouble::Aggregate(), MEDCoupling::DataArrayInt::Aggregate(), MEDCoupling::DataArrayInt::AggregateIndexes(), MEDCoupling::MEDCoupling1DGTUMesh::AggregateNodalConnAndShiftNodeIds(), MEDCoupling::MEDCoupling1GTUMesh::AggregateOnSameCoordsToUMesh(), MEDCoupling::DataArrayDouble::applyFunc(), MEDCoupling::DataArrayDouble::applyFuncNamedCompo(), MEDCoupling::MEDCouplingUMesh::areCellsIncludedInPolicy7(), MEDCoupling::DataArrayInt::buildComplement(), MEDCoupling::MEDCouplingUMesh::buildDirectionVectorField(), MEDCoupling::MEDCouplingFieldDiscretizationPerCell::buildDiscrPerCellIfNecessary(), MEDCoupling::DataArrayDouble::buildEuclidianDistanceDenseMatrix(), MEDCoupling::DataArrayDouble::buildEuclidianDistanceDenseMatrixWith(), MEDCoupling::DataArrayInt::buildExplicitArrByRanges(), MEDCoupling::DataArrayInt::buildExplicitArrOfSliceOnScaledArr(), MEDCoupling::MEDCouplingStructuredMesh::BuildExplicitIdsFrom(), MEDCoupling::DataArrayInt::BuildIntersection(), MEDCoupling::DataArrayInt::BuildListOfSwitchedOff(), MEDCoupling::DataArrayInt::BuildListOfSwitchedOn(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::buildNbOfGaussPointPerCellField(), MEDCoupling::MEDCouplingStructuredMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingCurveLinearMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingUMesh::buildOrthogonalField(), MEDCoupling::MEDCoupling1SGTUMesh::buildPartOfMySelfKeepCoords(), MEDCoupling::MEDCoupling1SGTUMesh::buildPartOfMySelfKeepCoordsSlice(), MEDCoupling::MEDCouplingUMesh::buildPartOrthogonalField(), MEDCoupling::DataArrayInt::buildPermArrPerLevel(), MEDCoupling::DataArrayInt::buildPermutationArr(), MEDCoupling::MEDCouplingGaussLocalization::buildRefCell(), MEDCoupling::MEDCouplingFieldDiscretizationP0::buildSubMeshData(), MEDCoupling::DataArrayInt::buildSubstraction(), MEDCoupling::DataArrayInt::BuildUnion(), MEDCoupling::MEDCouplingUMesh::buildUnionOf3DMesh(), MEDCoupling::DataArrayInt::buildUnique(), MEDCoupling::MEDCoupling1SGTUMesh::buildUnstructured(), MEDCoupling::MEDCoupling1DGTUMesh::buildUnstructured(), MEDCoupling::MEDCouplingUMesh::changeOrientationOfCells(), MEDCoupling::DataArrayInt::changeSurjectiveFormat(), MEDCoupling::MEDCouplingPointSet::checkDeepEquivalWith(), MEDCoupling::MEDFileField1TSWithoutSDA::CheckSBTMesh(), MEDCoupling::MEDCouplingUMesh::checkTypeConsistencyAndContig(), MEDCoupling::MEDCouplingUMesh::clipSingle3DCellByPlane(), MEDCoupling::DataArrayDouble::computeAbs(), MEDCoupling::DataArrayInt::computeAbs(), MEDCoupling::DataArrayDouble::computeBBoxPerTuple(), MEDCoupling::MEDCouplingCMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingIMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingUMesh::computeCellCenterOfMass(), MEDCoupling::MEDCoupling1SGTUMesh::computeDiameterField(), MEDCoupling::MEDCouplingUMesh::computeDiameterField(), MEDCoupling::MEDCoupling1SGTUMesh::computeEffectiveNbOfNodesPerCell(), MEDCoupling::MEDCouplingUMesh::computeEffectiveNbOfNodesPerCell(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeEvaluationMatrixOnGivenPts(), MEDCoupling::MEDCoupling1SGTUMesh::computeFetchedNodeIds(), MEDCoupling::MEDCoupling1DGTUMesh::computeFetchedNodeIds(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeInverseMatrix(), MEDCoupling::MEDCoupling1SGTUMesh::computeIsoBarycenterOfNodesPerCell(), MEDCoupling::MEDCoupling1DGTUMesh::computeIsoBarycenterOfNodesPerCell(), MEDCoupling::MEDCouplingUMesh::computeIsoBarycenterOfNodesPerCell(), MEDCoupling::MEDCouplingFieldDiscretizationP0::computeMeshRestrictionFromTupleIds(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::computeMeshRestrictionFromTupleIds(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::computeMeshRestrictionFromTupleIds(), MEDCoupling::MEDCouplingMappedExtrudedMesh::computeNbOfFacesPerCell(), MEDCoupling::MEDCouplingUMesh::computeNbOfFacesPerCell(), MEDCoupling::MEDCoupling1DGTUMesh::computeNbOfFacesPerCell(), MEDCoupling::DataArrayDouble::computeNbOfInteractionsWith(), MEDCoupling::MEDCouplingMappedExtrudedMesh::computeNbOfNodesPerCell(), MEDCoupling::MEDCouplingUMesh::computeNbOfNodesPerCell(), MEDCoupling::MEDCoupling1DGTUMesh::computeNbOfNodesPerCell(), MEDCoupling::MEDCouplingUMesh::ComputeNeighborsOfCellsAdv(), MEDCoupling::MEDCouplingUMesh::computeNeighborsOfNodes(), MEDCoupling::MEDCouplingUMesh::computePlaneEquationOf3DFaces(), MEDCoupling::MEDCouplingFieldDiscretizationP0::computeTupleIdsToSelectFromCellIds(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::computeVectorOfCoefficients(), MEDCoupling::MEDCouplingIMesh::CondenseFineToCoarse(), MEDCoupling::MEDCouplingIMesh::CondenseFineToCoarseGhost(), MEDCoupling::MEDCouplingUMesh::conformize3D(), MEDCoupling::MEDCouplingUMesh::convertCellArrayPerGeoType(), MEDCoupling::MEDCouplingUMesh::convertDegeneratedCells(), MEDCoupling::MEDCouplingUMesh::convertExtrudedPolyhedra(), MEDCoupling::DataArrayInt::ConvertIndexArrayToO2N(), MEDCoupling::MEDCouplingUMesh::convertNodalConnectivityToDynamicGeoTypeMesh(), MEDCoupling::MEDCouplingUMesh::convertNodalConnectivityToStaticGeoTypeMesh(), MEDCoupling::MEDCouplingUMesh::convertQuadraticCellsToLinear(), MEDCoupling::DataArrayInt::convertToDblArr(), MEDCoupling::DataArrayDouble::convertToIntArr(), MEDCoupling::MEDCouplingUMesh::convertToPolyTypes(), MEDCoupling::MEDCouplingUMesh::convexEnvelop2D(), MEDCoupling::DataArrayDouble::CrossProduct(), MEDCoupling::DataArrayDoubleIterator::DataArrayDoubleIterator(), MEDCoupling::DataArrayIntIterator::DataArrayIntIterator(), MEDCoupling::DataArrayInt::deltaShiftIndex(), MEDCoupling::DataArrayDouble::determinant(), MEDCoupling::DataArrayDouble::deviator(), MEDCoupling::MEDCouplingUMesh::distanceToPoints(), MEDCoupling::DataArrayDouble::Divide(), MEDCoupling::DataArrayInt::Divide(), MEDCoupling::DataArrayDouble::Dot(), MEDCoupling::DataArrayDouble::doublyContractedProduct(), MEDCoupling::DataArrayDouble::duplicateEachTupleNTimes(), MEDCoupling::DataArrayInt::duplicateEachTupleNTimes(), MEDCoupling::MEDCouplingUMesh::duplicateNodesInConn(), MEDCoupling::DataArrayDouble::eigenValues(), MEDCoupling::DataArrayDouble::eigenVectors(), MEDCoupling::MEDFileMesh::ensureDifferentFamIdsPerLevel(), MEDCoupling::MEDCoupling1SGTUMesh::explodeEachHexa8To6Quad4(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArrays(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArraysSlice(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::fillCellFieldOnPatch(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::fillCellFieldOnPatchGhost(), MEDCoupling::MEDCouplingUMesh::findAndCorrectBadOriented3DCells(), MEDCoupling::MEDCouplingUMesh::findAndCorrectBadOriented3DExtrudedCells(), MEDCoupling::MEDCouplingUMesh::findCellIdsLyingOn(), MEDCoupling::MEDCouplingUMesh::findCellIdsOnBoundary(), MEDCoupling::DataArrayDouble::findClosestTupleId(), MEDCoupling::DataArrayInt::findIdInRangeForEachTuple(), MEDCoupling::DataArrayInt::findRangeIdForEachTuple(), MEDCoupling::DataArrayDouble::fromCartToCyl(), MEDCoupling::DataArrayDouble::fromCartToCylGiven(), MEDCoupling::DataArrayDouble::fromCartToPolar(), MEDCoupling::DataArrayDouble::fromCartToSpher(), MEDCoupling::DataArrayDouble::fromCylToCart(), MEDCoupling::DataArrayDouble::fromPolarToCart(), MEDCoupling::DataArrayDouble::fromSpherToCart(), MEDCoupling::MEDCouplingUMesh::FuseUMeshesOnSameCoords(), MEDCoupling::MEDFileMesh::getAllFamiliesIdsReferenced(), MEDCoupling::MEDCouplingUMesh::getAspectRatioField(), MEDCoupling::MEDCoupling1SGTUMesh::getBoundingBoxForBBTree(), MEDCoupling::MEDCoupling1DGTUMesh::getBoundingBoxForBBTree(), MEDCoupling::MEDCouplingUMesh::getBoundingBoxForBBTree1DQuadratic(), MEDCoupling::MEDCouplingUMesh::getBoundingBoxForBBTree2DQuadratic(), MEDCoupling::MEDCouplingUMesh::getBoundingBoxForBBTreeFast(), MEDCoupling::MEDCouplingUMesh::getCellIdsCrossingPlane(), MEDCoupling::MEDCouplingMesh::getCellIdsFullyIncludedInNodeIds(), MEDCoupling::MEDCouplingMesh::getCellsContainingPoints(), MEDCoupling::MEDCouplingCMesh::getCoordinatesAndOwner(), MEDCoupling::MEDCouplingIMesh::getCoordinatesAndOwner(), MEDCoupling::DataArrayInt::getDifferentValues(), MEDCoupling::MEDCouplingUMesh::getEdgeRatioField(), MEDCoupling::MEDCouplingUMesh::getLevArrPerCellTypes(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getLocalizationOfDiscValues(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getLocalizationOfDiscValues(), MEDCoupling::MEDCouplingCMesh::getMeasureField(), MEDCoupling::MEDCouplingMappedExtrudedMesh::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getMeasureFieldOnNode(), MEDCoupling::MEDCouplingUMesh::getNodeIdsInUse(), MEDCoupling::MEDCoupling1SGTUMesh::getNodeIdsInUse(), MEDCoupling::MEDCoupling1DGTUMesh::getNodeIdsInUse(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getOffsetArr(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getOffsetArr(), MEDCoupling::MEDCouplingUMesh::getPartBarycenterAndOwner(), MEDCoupling::MEDCouplingUMesh::getPartMeasureField(), MEDCoupling::MEDCouplingUMesh::getSkewField(), MEDCoupling::MEDCouplingFieldDiscretizationP0::getValueOnMulti(), MEDCoupling::MEDCouplingFieldDiscretizationP1::getValueOnMulti(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::getValueOnMulti(), MEDCoupling::DataArrayTemplate< char >::getVoidStarPointer(), MEDCoupling::MEDCouplingUMesh::getWarpField(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshes(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), MEDCoupling::DataArrayDouble::inverse(), MEDCoupling::DataArrayInt::invertArrayN2O2O2N(), MEDCoupling::DataArrayInt::invertArrayO2N2N2O(), MEDCoupling::DataArrayInt::invertArrayO2N2N2OBis(), MEDCoupling::MEDCouplingUMesh::keepSpecifiedCells(), MEDCoupling::DataArrayDouble::magnitude(), MEDCoupling::DataArrayInt::MakePartition(), MEDCoupling::DataArrayDouble::Max(), MEDCoupling::DataArrayDouble::maxPerTuple(), MEDCoupling::DataArrayDouble::maxPerTupleWithCompoId(), MEDCoupling::MEDCouplingUMeshCell::MEDCouplingUMeshCell(), MEDCoupling::MEDCouplingUMesh::MergeUMeshesOnSameCoords(), MEDCoupling::DataArrayDouble::Min(), MEDCoupling::DataArrayInt::Modulus(), MEDCoupling::DataArrayDouble::Multiply(), MEDCoupling::DataArrayInt::Multiply(), MEDCoupling::MEDCouplingStructuredMesh::MultiplyPartOf(), MEDCoupling::DataArrayDouble::negate(), MEDCoupling::DataArrayInt::negate(), MEDCoupling::MEDCouplingUMesh::orderConsecutiveCells1D(), MEDCoupling::MEDCouplingUMesh::orientCorrectly2DCells(), MEDCoupling::MEDCouplingUMesh::orientCorrectlyPolyhedrons(), MEDCoupling::ParaMESH::ParaMESH(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::performDrift(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftOfVec(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftRect(), MEDCoupling::DataArrayDouble::Pow(), MEDCoupling::DataArrayInt::Pow(), MEDCoupling::MEDCouplingMappedExtrudedMesh::Project1DMeshes(), MEDCoupling::DataArrayInt::Range(), MEDCoupling::MEDCouplingUMesh::rearrange2ConsecutiveCellTypes(), MEDCoupling::MEDCouplingUMesh::RemoveIdsFromIndexedArrays(), MEDCoupling::MEDCoupling1SGTUMesh::renumberCells(), MEDCoupling::MEDCouplingUMesh::renumberCells(), MEDCoupling::MEDCoupling1DGTUMesh::renumberCells(), MEDCoupling::MEDCouplingFieldDiscretization::RenumberEntitiesFromN2OArr(), MEDCoupling::MEDCouplingFieldDiscretization::RenumberEntitiesFromO2NArr(), MEDCoupling::MEDCouplingPointSet::renumberNodesCenter(), MEDCoupling::MEDCouplingUMesh::renumberNodesInConn(), MEDCoupling::MEDCouplingPointSet::rotate2D(), MEDCoupling::MEDCouplingPointSet::rotate3D(), MEDCoupling::MEDCouplingCMesh::scale(), MEDCoupling::MEDCouplingPointSet::scale(), MEDCoupling::MEDCouplingCurveLinearMesh::serialize(), MEDCoupling::MEDCouplingCMesh::serialize(), MEDCoupling::MEDCouplingUMesh::serialize(), MEDCoupling::MEDCouplingMappedExtrudedMesh::serialize(), MEDCoupling::MEDCoupling1SGTUMesh::serialize(), MEDCoupling::MEDCoupling1DGTUMesh::serialize(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::setGaussLocalizationOnCells(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::setGaussLocalizationOnType(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArrays(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArraysSameIdx(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArraysSameIdxSlice(), MEDCoupling::MEDCouplingUMesh::SetPartOfIndexedArraysSlice(), MEDCoupling::MEDCouplingUMesh::shiftNodeNumbersInConn(), MEDCoupling::MEDCouplingUMesh::simplifyPolyhedra(), MEDCoupling::MEDCouplingUMesh::SimplifyPolyhedronCell(), MEDCoupling::MEDCoupling1SGTUMesh::sortHexa8EachOther(), MEDCoupling::DataArrayInt::splitByValueRange(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFine(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFineGhost(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFineGhostZone(), MEDCoupling::DataArrayDouble::Substract(), MEDCoupling::DataArrayInt::Substract(), MEDCoupling::DataArrayDouble::sumPerTuple(), MEDCoupling::DataArrayInt::sumPerTuple(), MEDCoupling::DataArrayDouble::symmetry3DPlane(), MEDCoupling::MEDCouplingUMesh::tetrahedrize(), MEDCoupling::DataArrayDouble::trace(), MEDCoupling::DataArrayInt::transformWithIndArrR(), MEDCoupling::MEDCouplingCMesh::translate(), MEDCoupling::MEDCouplingPointSet::translate(), MEDCoupling::MEDCouplingUMesh::unPolyze(), MEDCoupling::MEDCouplingUMesh::unserialization(), MEDCoupling::MEDCouplingMappedExtrudedMesh::unserialization(), MEDCoupling::MEDCoupling1SGTUMesh::unserialization(), MEDCoupling::MEDCoupling1DGTUMesh::unserialization(), MEDCoupling::MEDCouplingUMesh::writeVTKLL(), MEDCoupling::MEDFileUMesh::zipCoords(), and MEDCoupling::MEDCouplingFieldDiscretizationGauss::zipGaussLocalizations().

template<class T >
void MEDCoupling::DataArrayTemplate< T >::pack ( ) const

This method do not modify content of this. It only modify its memory footprint if the allocated memory is to high regarding real data to store.

See Also
DataArray::getHeapMemorySizeWithoutChildren, DataArrayTemplate<T>::reserve

Referenced by MEDCoupling::MEDCouplingUMesh::finishInsertingCells().

template<class T >
bool MEDCoupling::DataArrayTemplate< T >::isAllocated ( ) const
virtual

Checks if raw data is allocated. Read more on the raw data in DataArrays infos for more information.

Returns
bool - true if the raw data is allocated, false else.

Implements MEDCoupling::DataArray.

Referenced by MEDCoupling::MEDCoupling1SGTUMesh::checkFastEquivalWith(), MEDCoupling::MEDCoupling1DGTUMesh::checkFastEquivalWith(), MEDCoupling::DataArrayDouble::computeNbOfInteractionsWith(), MEDCoupling::MEDCouplingIMesh::CondenseFineToCoarse(), MEDCoupling::MEDCouplingIMesh::CondenseFineToCoarseGhost(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::createCellFieldOnPatch(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::createPatchesFromCriterion(), MEDCoupling::DataArrayDoubleIterator::DataArrayDoubleIterator(), MEDCoupling::DataArrayIntIterator::DataArrayIntIterator(), MEDCoupling::MEDCouplingStructuredMesh::ExtractFieldOfDoubleFrom(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::fillCellFieldComingFromPatch(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::fillCellFieldComingFromPatchGhost(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::fillCellFieldOnPatch(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::fillCellFieldOnPatchGhost(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::fillCellFieldOnPatchOnlyOnGhostZone(), MEDCoupling::DataArrayInt::FindPermutationFromFirstToSecond(), MEDCoupling::MEDCoupling1GTUMesh::getNodalConnectivityLength(), MEDCoupling::MEDCouplingCMesh::getNodeGridStructure(), MEDCoupling::MEDCouplingFieldDiscretizationP0::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationOnNodes::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getStringRepr(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::getValueOnMulti(), MEDCoupling::MEDCouplingPointSet::MergeNodesArray(), MEDCoupling::MEDCouplingStructuredMesh::MultiplyPartOf(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftOfVec(), MEDCoupling::MEDCouplingFieldDiscretizationKriging::PerformDriftRect(), MEDCoupling::MEDCouplingCurveLinearMesh::reprQuickOverview(), MEDCoupling::MEDCouplingUMesh::reprQuickOverview(), MEDCoupling::MEDCoupling1SGTUMesh::reprQuickOverview(), MEDCoupling::MEDCoupling1DGTUMesh::reprQuickOverview(), MEDCoupling::MEDCoupling1SGTUMesh::serialize(), MEDCoupling::MEDCoupling1DGTUMesh::serialize(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::setFieldProfile(), MEDCoupling::MEDCouplingStructuredMesh::splitProfilePerType(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFine(), MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFineGhost(), and MEDCoupling::MEDCouplingIMesh::SpreadCoarseToFineGhostZone().

template<class T >
void MEDCoupling::DataArrayTemplate< T >::checkAllocated ( ) const
virtual

Checks if raw data is allocated and throws an exception if it is not the case.

Exceptions
Ifthe raw data is not allocated.

Implements MEDCoupling::DataArray.

Referenced by MEDCoupling::DataArrayDouble::addEqual(), MEDCoupling::DataArrayInt::addEqual(), MEDCoupling::DataArrayInt::AggregateIndexes(), MEDCoupling::DataArrayDouble::areIncludedInMe(), MEDCoupling::MEDCouplingUMesh::Build0DMeshFromCoords(), MEDCoupling::MEDCouplingUMesh::Build1DMeshFromCoords(), MEDCoupling::DataArrayDouble::buildEuclidianDistanceDenseMatrixWith(), MEDCoupling::DataArrayInt::buildExplicitArrByRanges(), MEDCoupling::DataArrayInt::BuildIntersection(), MEDCoupling::DataArrayInt::buildPermutationArr(), MEDCoupling::DataArrayInt::buildSubstraction(), MEDCoupling::DataArrayInt::buildSubstractionOptimized(), MEDCoupling::DataArrayInt::BuildUnion(), MEDCoupling::MEDCoupling1SGTUMesh::checkConsistencyOfConnectivity(), MEDCoupling::MEDCoupling1DGTUMesh::checkConsistencyOfConnectivity(), MEDCoupling::MEDCouplingUMesh::checkTypeConsistencyAndContig(), MEDCoupling::MEDCouplingUMesh::computeCellNeighborhoodFromNodesOne(), MEDCoupling::DataArrayDouble::computeTupleIdsNearTuples(), MEDCoupling::DataArrayTemplate< T >::deepCopyFrom(), MEDCoupling::MEDCouplingUMesh::distanceToPoints(), MEDCoupling::DataArrayDouble::divideEqual(), MEDCoupling::DataArrayInt::divideEqual(), MEDCoupling::DataArrayDouble::Dot(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArrays(), MEDCoupling::MEDCouplingUMesh::ExtractFromIndexedArraysSlice(), MEDCoupling::DataArrayDouble::findClosestTupleId(), MEDCoupling::DataArrayInt::findIdsRangesInListOfIds(), MEDCoupling::DataArrayDouble::fromCartToCylGiven(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), MEDCoupling::DataArrayInt::indicesOfSubPart(), MEDCoupling::MEDCouplingGaussLocalization::localizePtsInRefCooForEachCell(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::makeReduction(), MEDCoupling::DataArrayDouble::Meld(), MEDCoupling::DataArrayInt::Meld(), MEDCoupling::DataArrayDouble::meldWith(), MEDCoupling::DataArrayInt::meldWith(), MEDCoupling::DataArrayInt::modulusEqual(), MEDCoupling::DataArrayDouble::multiplyEqual(), MEDCoupling::DataArrayInt::multiplyEqual(), MEDCoupling::MEDCouplingUMesh::PartitionBySpreadZone(), MEDCoupling::DataArrayTemplate< T >::setContigPartOfSelectedValues(), MEDCoupling::MEDFileUMesh::setCoords(), MEDCoupling::MEDFileUMesh::setCoordsForced(), MEDCoupling::DataArrayTemplate< T >::setPartOfValuesAdv(), MEDCoupling::DataArrayInt::setSelectedComponents(), MEDCoupling::MEDCouplingUMesh::split2DCells(), MEDCoupling::DataArrayDouble::substractEqual(), and MEDCoupling::DataArrayInt::substractEqual().

template<class T >
void MEDCoupling::DataArrayTemplate< T >::desallocate ( )
virtual

This method desallocated this without modification of informations relative to the components. After call of this method, DataArrayDouble::isAllocated will return false. If this is already not allocated, this is let unchanged.

Implements MEDCoupling::DataArray.

template<class T >
void MEDCoupling::DataArrayTemplate< T >::reserve ( std::size_t  nbOfElems)

This method reserve nbOfElems elements in memory ( nbOfElems*8 bytes ) without impacting the number of tuples in this. If this has already been allocated, this method checks that this has only one component. If not an INTERP_KERNEL::Exception will be thrown. If this has not already been allocated, number of components is set to one. This method allows to reduce number of reallocations on invokation of DataArrayDouble::pushBackSilent and DataArrayDouble::pushBackValsSilent on this.

See Also
DataArrayDouble::pack, DataArrayDouble::pushBackSilent, DataArrayDouble::pushBackValsSilent

Referenced by MEDCoupling::MEDCouplingUMesh::allocateCells(), and MEDCoupling::MEDCouplingUMesh::ComputeNeighborsOfCellsAdv().

template<class T >
void MEDCoupling::DataArrayTemplate< T >::rearrange ( int  newNbOfCompo)
virtual

Changes the number of components within this array so that its raw data does not change, instead splitting this data into tuples changes.

Warning
This method erases all (name and unit) component info set before!
Parameters
[in]newNbOfComp- number of components for this array to have.
Exceptions
Ifthis is not allocated
IfgetNbOfElems() % newNbOfCompo != 0.
IfnewNbOfCompo is lower than 1.
Ifthe rearrange method would lead to a number of tuples higher than 2147483647 (maximal capacity of int32 !).
Warning
This method erases all (name and unit) component info set before!

Implements MEDCoupling::DataArray.

Referenced by MEDCoupling::DataArrayDouble::applyFunc(), MEDCoupling::MEDCouplingUMesh::colinearize2D(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), MEDCoupling::MEDCouplingUMesh::tetrahedrize(), and MEDCoupling::MEDFileUMesh::unserialize().

template<class T >
void MEDCoupling::DataArrayTemplate< T >::transpose ( )

Changes the number of components within this array to be equal to its number of tuples, and inversely its number of tuples to become equal to its number of components. So that its raw data does not change, instead splitting this data into tuples changes.

Warning
This method erases all (name and unit) component info set before!
Do not confuse this method with fromNoInterlace() and toNoInterlace()!
Exceptions
Ifthis is not allocated.
See Also
rearrange()
template<class T>
void MEDCoupling::DataArrayTemplate< T >::pushBackSilent ( val)

This method adds at the end of this the single value val. This method do not update its time label to avoid useless incrementation of counter. So the caller is expected to call TimeLabel::declareAsNew on this at the end of the push session.

Parameters
[in]valthe value to be added in this
Exceptions
Ifthis has already been allocated with number of components different from one.
See Also
DataArrayDouble::pushBackValsSilent

Referenced by MEDCoupling::MEDCouplingUMesh::AggregateSortedByTypeMeshesOnSameCoords(), MEDCoupling::MEDCouplingUMesh::allocateCells(), MEDCoupling::MEDCouplingUMesh::BuildConvexEnvelopOf2DCellJarvis(), MEDCoupling::DataArrayInt::buildSubstractionOptimized(), MEDCoupling::DataArrayInt::buildUniqueNotSorted(), MEDCoupling::MEDCouplingUMesh::clipSingle3DCellByPlane(), MEDCoupling::MEDCouplingUMesh::colinearize2D(), MEDCoupling::MEDCouplingUMesh::computeCellNeighborhoodFromNodesOne(), MEDCoupling::DataArrayDouble::computeTupleIdsNearTuples(), MEDCoupling::MEDCouplingUMesh::convexEnvelop2D(), MEDCoupling::MEDCoupling1SGTUMesh::fillCellIdsToKeepFromNodeIds(), MEDCoupling::MEDCoupling1DGTUMesh::fillCellIdsToKeepFromNodeIds(), MEDCoupling::MEDCouplingUMesh::findAndCorrectBadOriented3DCells(), MEDCoupling::MEDCouplingUMesh::findAndCorrectBadOriented3DExtrudedCells(), MEDCoupling::DataArrayDouble::findCommonTuples(), MEDCoupling::DataArrayDouble::findCommonTuplesAlg(), MEDCoupling::DataArrayInt::findIdsEqual(), MEDCoupling::DataArrayInt::findIdsEqualList(), MEDCoupling::DataArrayInt::findIdsEqualTuple(), MEDCoupling::DataArrayDouble::findIdsInRange(), MEDCoupling::DataArrayInt::findIdsInRange(), MEDCoupling::DataArrayInt::findIdsNotEqual(), MEDCoupling::DataArrayInt::findIdsNotEqualList(), MEDCoupling::DataArrayDouble::findIdsNotInRange(), MEDCoupling::DataArrayInt::findIdsNotInRange(), MEDCoupling::DataArrayInt::findIdsRangesInListOfIds(), MEDCoupling::DataArrayInt::findIdsStricltyNegative(), MEDCoupling::MEDCouplingCartesianAMRMeshGen::findPatchesInTheNeighborhoodOf(), MEDCoupling::DataArrayDouble::FindTupleIdsNearTuplesAlg(), MEDCoupling::MEDCouplingUMesh::getCellsInBoundingBox(), MEDCoupling::MEDCouplingUMesh::giveCellsWithType(), MEDCoupling::MEDCouplingUMesh::insertNextCell(), MEDCoupling::MEDCoupling1DGTUMesh::insertNextCell(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), MEDCoupling::MEDCouplingUMesh::keepCellIdsByType(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::partOfThisLyingOnSpecifiedTimeSteps(), MEDCoupling::MEDFileAnyTypeFieldMultiTSWithoutSDA::partOfThisNotLyingOnSpecifiedTimeSteps(), MEDCoupling::MEDCouplingUMesh::SimplifyPolyhedronCell(), and MEDCoupling::MEDCoupling1SGTUMesh::sortHexa8EachOther().

template<class T>
void MEDCoupling::DataArrayTemplate< T >::pushBackValsSilent ( const T *  valsBg,
const T *  valsEnd 
)

This method adds at the end of this a serie of values [valsBg,valsEnd). This method do not update its time label to avoid useless incrementation of counter. So the caller is expected to call TimeLabel::declareAsNew on this at the end of the push session.

Parameters
[in]valsBg- an array of values to push at the end of this.
[in]valsEnd- specifies the end of the array valsBg, so that the last value of valsBg is valsEnd[ -1 ].
Exceptions
Ifthis has already been allocated with number of components different from one.
See Also
DataArrayDouble::pushBackSilent

Referenced by MEDCoupling::DataArrayInt::findIdsRangesInListOfIds(), MEDCoupling::MEDCoupling1SGTUMesh::insertNextCell(), and MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine().

template<class T >
T MEDCoupling::DataArrayTemplate< T >::popBackSilent ( )

This method returns silently ( without updating time label in this ) the last value, if any and suppress it.

Exceptions
Ifthis is already empty.
Ifthis has number of components different from one.

Referenced by MEDCoupling::MEDCouplingUMesh::SimplifyPolyhedronCell().

template<class T >
T MEDCoupling::DataArrayTemplate< T >::front ( ) const
template<class T>
std::size_t MEDCoupling::DataArrayTemplate< T >::getNbOfElemAllocated ( ) const
virtual
template<class T >
void MEDCoupling::DataArrayTemplate< T >::allocIfNecessary ( int  nbOfTuple,
int  nbOfCompo 
)

Allocates the raw data in memory. If exactly same memory as needed already allocated, it is not re-allocated.

Parameters
[in]nbOfTuple- number of tuples of data to allocate.
[in]nbOfCompo- number of components of data to allocate.
Exceptions
IfnbOfTuple < 0 or nbOfCompo < 0.
template<class T>
void MEDCoupling::DataArrayTemplate< T >::deepCopyFrom ( const DataArrayTemplate< T > &  other)
template<class T >
void MEDCoupling::DataArrayTemplate< T >::reverse ( )

Reverse the array values.

Exceptions
Ifthis->getNumberOfComponents() < 1.
Ifthis is not allocated.
template<class T >
void MEDCoupling::DataArrayTemplate< T >::reAlloc ( std::size_t  nbOfTuples)
virtual

Changes number of tuples in the array. If the new number of tuples is smaller than the current number the array is truncated, otherwise the array is extended.

Parameters
[in]nbOfTuples- new number of tuples.
Exceptions
Ifthis is not allocated.
IfnbOfTuples is negative.

Implements MEDCoupling::DataArray.

Referenced by MEDCoupling::MEDCouplingUMesh::convertDegeneratedCells(), MEDCoupling::MEDCouplingFieldDiscretization::RenumberEntitiesFromN2OArr(), MEDCoupling::MEDCouplingFieldDiscretization::RenumberEntitiesFromO2NArr(), MEDCoupling::MEDCouplingUMesh::unPolyze(), and MEDCoupling::MEDCouplingUMesh::writeVTKLL().

template<class T >
void MEDCoupling::DataArrayTemplate< T >::renumberInPlace ( const int *  old2New)
virtual

Permutes values of this array as required by old2New array. The values are permuted so that new[ old2New[ i ]] = old[ i ]. Number of tuples remains the same as in this one. If a permutation reduction is needed, subArray() or selectByTupleId() should be used. For more info on renumbering see Array indexing and numbering.

Parameters
[in]old2New- C array of length equal to this->getNumberOfTuples() giving a new position for i-th old value.

Implements MEDCoupling::DataArray.

Referenced by MEDCoupling::MEDFileUMesh::Aggregate().

template<class T >
void MEDCoupling::DataArrayTemplate< T >::renumberInPlaceR ( const int *  new2Old)
virtual

Permutes values of this array as required by new2Old array. The values are permuted so that new[ i ] = old[ new2Old[ i ]]. Number of tuples remains the same as in this one. For more info on renumbering see Array indexing and numbering.

Parameters
[in]new2Old- C array of length equal to this->getNumberOfTuples() giving a previous position of i-th new value.
Returns
DataArrayDouble * - the new instance of DataArrayDouble that the caller is to delete using decrRef() as it is no more needed.

Implements MEDCoupling::DataArray.

template<class T >
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::renumber ( const int *  old2New) const

Returns a copy of this array with values permuted as required by old2New array. The values are permuted so that new[ old2New[ i ]] = old[ i ]. Number of tuples in the result array remains the same as in this one. If a permutation reduction is needed, renumberAndReduce() should be used. For more info on renumbering see Array indexing and numbering.

Parameters
[in]old2New- C array of length equal to this->getNumberOfTuples() giving a new position for i-th old value.
Returns
DataArrayDouble * - the new instance of DataArrayDouble that the caller is to delete using decrRef() as it is no more needed.
Exceptions
Ifthis is not allocated.

References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().

Referenced by MEDCoupling::MEDCouplingUMesh::AggregateSortedByTypeMeshesOnSameCoords(), MEDCoupling::MEDCouplingFieldDiscretizationPerCell::renumberCells(), and MEDCoupling::MEDFileUMesh::unPolyze().

template<class T >
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::renumberR ( const int *  new2Old) const

Returns a copy of this array with values permuted as required by new2Old array. The values are permuted so that new[ i ] = old[ new2Old[ i ]]. Number of tuples in the result array remains the same as in this one. If a permutation reduction is needed, subArray() or selectByTupleId() should be used. For more info on renumbering see Array indexing and numbering.

Parameters
[in]new2Old- C array of length equal to this->getNumberOfTuples() giving a previous position of i-th new value.
Returns
DataArrayDouble * - the new instance of DataArrayDouble that the caller is to delete using decrRef() as it is no more needed.

References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().

Referenced by MEDCoupling::MEDCouplingMappedExtrudedMesh::computeNbOfFacesPerCell(), and MEDCoupling::MEDCouplingMappedExtrudedMesh::computeNbOfNodesPerCell().

template<class T >
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::renumberAndReduce ( const int *  old2New,
int  newNbOfTuple 
) const

Returns a shorten and permuted copy of this array. The new DataArrayDouble is of size newNbOfTuple and it's values are permuted as required by old2New array. The values are permuted so that new[ old2New[ i ]] = old[ i ] for all old2New[ i ] >= 0. In other words every i-th tuple in this array, for which old2New[ i ] is negative, is missing from the result array. For more info on renumbering see Array indexing and numbering.

Parameters
[in]old2New- C array of length equal to this->getNumberOfTuples() giving a new position for i-th old tuple and giving negative position for for i-th old tuple that should be omitted.
Returns
DataArrayDouble * - the new instance of DataArrayDouble that the caller is to delete using decrRef() as it is no more needed.

References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().

Referenced by MEDCoupling::MEDCouplingUMesh::MergeNodesOnUMeshesSharingSameCoords(), and MEDCoupling::MEDCouplingPointSet::renumberNodes().

template<class T>
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::changeNbOfComponents ( int  newNbOfComp,
dftValue 
) const

Returns a shorten or extended copy of this array. If newNbOfComp is less than this->getNumberOfComponents() then the result array is shorten as each tuple is truncated to have newNbOfComp components, keeping first components. If newNbOfComp is more than this->getNumberOfComponents() then the result array is expanded as each tuple is populated with dftValue to have newNbOfComp components.

Parameters
[in]newNbOfComp- number of components for the new array to have.
[in]dftValue- value assigned to new values added to the new array.
Returns
DataArrayDouble * - the new instance of DataArrayDouble that the caller is to delete using decrRef() as it is no more needed.
Exceptions
Ifthis is not allocated.

References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().

Referenced by MEDCoupling::MEDCouplingPointSet::changeSpaceDimension(), and MEDCoupling::MEDCouplingUMesh::writeVTKLL().

template<class T >
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::subArray ( int  tupleIdBg,
int  tupleIdEnd = -1 
) const

Returns a shorten copy of this array. The new DataArrayDouble contains all tuples starting from the tupleIdBg-th tuple and including all tuples located before the tupleIdEnd-th one. This methods has a similar behavior as std::string::substr(). This method is a specialization of selectByTupleIdSafeSlice().

Parameters
[in]tupleIdBg- index of the first tuple to copy from this array.
[in]tupleIdEnd- index of the tuple before which the tuples to copy are located. If tupleIdEnd == -1, all the tuples till the end of this array are copied.
Returns
DataArrayDouble * - the new instance of DataArrayDouble that the caller is to delete using decrRef() as it is no more needed.
Exceptions
IftupleIdBg < 0.
IftupleIdBg > this->getNumberOfTuples().
IftupleIdEnd != -1 && tupleIdEnd < this->getNumberOfTuples().
See Also
DataArrayDouble::selectByTupleIdSafeSlice

References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().

Referenced by MEDCoupling::MEDCouplingUMesh::areCellsIncludedIn(), and MEDCoupling::MEDCouplingPointSet::checkDeepEquivalWith().

template<class T >
MCAuto< typename Traits< T >::ArrayTypeCh > MEDCoupling::DataArrayTemplate< T >::selectPartDef ( const PartDefinition *  pd) const
template<class T >
void MEDCoupling::DataArrayTemplate< T >::circularPermutation ( int  nbOfShift = 1)
virtual
template<class T >
void MEDCoupling::DataArrayTemplate< T >::circularPermutationPerTuple ( int  nbOfShift = 1)
virtual
template<class T >
void MEDCoupling::DataArrayTemplate< T >::reversePerTuple ( )
virtual
template<class T>
void MEDCoupling::DataArrayTemplate< T >::setPartOfValues1 ( const typename Traits< T >::ArrayType *  a,
int  bgTuples,
int  endTuples,
int  stepTuples,
int  bgComp,
int  endComp,
int  stepComp,
bool  strictCompoCompare = true 
)

Copy all values from another DataArrayDouble into specified tuples and components of this array. Textual data is not copied. The tree parameters defining set of indices of tuples and components are similar to the tree parameters of the Python function range(start,stop,step).

Parameters
[in]a- the array to copy values from.
[in]bgTuples- index of the first tuple of this array to assign values to.
[in]endTuples- index of the tuple before which the tuples to assign to are located.
[in]stepTuples- index increment to get index of the next tuple to assign to.
[in]bgComp- index of the first component of this array to assign values to.
[in]endComp- index of the component before which the components to assign to are located.
[in]stepComp- index increment to get index of the next component to assign to.
[in]strictCompoCompare- if true (by default), then a->getNumberOfComponents() must be equal to the number of columns to assign to, else an exception is thrown; if false, then it is only required that a->getNbOfElems() equals to number of values to assign to (this condition must be respected even if strictCompoCompare is true). The number of values to assign to is given by following Python expression: nbTargetValues = len(range(bgTuples,endTuples,stepTuples)) * len(range(bgComp,endComp,stepComp)).
Exceptions
Ifa is NULL.
Ifa is not allocated.
Ifthis is not allocated.
Ifparameters specifying tuples and components to assign to do not give a non-empty range of increasing indices.
Ifa->getNbOfElems() != nbTargetValues.
IfstrictCompoCompare == true && a->getNumberOfComponents() != len(range(bgComp,endComp,stepComp)).

Here is a Python example.

References MEDCoupling::DataArray::CheckValueInRangeEx(), and MEDCoupling::DataArray::GetNumberOfItemGivenBES().

Referenced by MEDCoupling::MEDFileUMesh::buildInnerBoundaryAlongM1Group(), and MEDCoupling::MEDFileUMesh::linearToQuadratic().

template<class T>
void MEDCoupling::DataArrayTemplate< T >::setPartOfValuesSimple1 ( a,
int  bgTuples,
int  endTuples,
int  stepTuples,
int  bgComp,
int  endComp,
int  stepComp 
)

Assign a given value to values at specified tuples and components of this array. The tree parameters defining set of indices of tuples and components are similar to the tree parameters of the Python function range(start,stop,step)..

Parameters
[in]a- the value to assign.
[in]bgTuples- index of the first tuple of this array to assign to.
[in]endTuples- index of the tuple before which the tuples to assign to are located.
[in]stepTuples- index increment to get index of the next tuple to assign to.
[in]bgComp- index of the first component of this array to assign to.
[in]endComp- index of the component before which the components to assign to are located.
[in]stepComp- index increment to get index of the next component to assign to.
Exceptions
Ifthis is not allocated.
Ifparameters specifying tuples and components to assign to, do not give a non-empty range of increasing indices or indices are out of a valid range for this array.

Here is a Python example.

References MEDCoupling::DataArray::CheckValueInRangeEx(), and MEDCoupling::DataArray::GetNumberOfItemGivenBES().

template<class T>
void MEDCoupling::DataArrayTemplate< T >::setPartOfValues2 ( const typename Traits< T >::ArrayType *  a,
const int *  bgTuples,
const int *  endTuples,
const int *  bgComp,
const int *  endComp,
bool  strictCompoCompare = true 
)

Copy all values from another DataArrayDouble (a) into specified tuples and components of this array. Textual data is not copied. The tuples and components to assign to are defined by C arrays of indices. There are two modes of usage:

  • If a->getNbOfElems() equals to number of values to assign to, then every value of a is assigned to its own location within this array.
  • If a includes one tuple, then all values of a are assigned to the specified components of every specified tuple of this array. In this mode it is required that a->getNumberOfComponents() equals to the number of specified components.
Parameters
[in]a- the array to copy values from.
[in]bgTuples- pointer to an array of tuple indices of this array to assign values of a to.
[in]endTuples- specifies the end of the array bgTuples, so that pointer to a tuple index (pi) varies as this: bgTuples <= pi < endTuples.
[in]bgComp- pointer to an array of component indices of this array to assign values of a to.
[in]endComp- specifies the end of the array bgTuples, so that pointer to a component index (pi) varies as this: bgComp <= pi < endComp.
[in]strictCompoCompare- this parameter is checked only if the mode of usage is the first; if it is true (default), then a->getNumberOfComponents() must be equal to the number of specified columns, else this is not required.
Exceptions
Ifa is NULL.
Ifa is not allocated.
Ifthis is not allocated.
Ifany index of tuple/component given by bgTuples / bgComp is out of a valid range for this array.
Inthe first mode of usage, if strictCompoCompare == true and if a->getNumberOfComponents() != (endComp - bgComp) .
Inthe second mode of usage, if a->getNumberOfTuples() != 1 or a->getNumberOfComponents() != (endComp - bgComp).

Here is a Python example.

References MEDCoupling::DataArray::CheckValueInRange().

template<class T>
void MEDCoupling::DataArrayTemplate< T >::setPartOfValuesSimple2 ( a,
const int *  bgTuples,
const int *  endTuples,
const int *  bgComp,
const int *  endComp 
)

Assign a given value to values at specified tuples and components of this array. The tuples and components to assign to are defined by C arrays of indices.

Parameters
[in]a- the value to assign.
[in]bgTuples- pointer to an array of tuple indices of this array to assign a to.
[in]endTuples- specifies the end of the array bgTuples, so that pointer to a tuple index (pi) varies as this: bgTuples <= pi < endTuples.
[in]bgComp- pointer to an array of component indices of this array to assign a to.
[in]endComp- specifies the end of the array bgTuples, so that pointer to a component index (pi) varies as this: bgComp <= pi < endComp.
Exceptions
Ifthis is not allocated.
Ifany index of tuple/component given by bgTuples / bgComp is out of a valid range for this array.

Here is a Python example.

References MEDCoupling::DataArray::CheckValueInRange().

template<class T>
void MEDCoupling::DataArrayTemplate< T >::setPartOfValues3 ( const typename Traits< T >::ArrayType *  a,
const int *  bgTuples,
const int *  endTuples,
int  bgComp,
int  endComp,
int  stepComp,
bool  strictCompoCompare = true 
)

Copy all values from another DataArrayDouble (a) into specified tuples and components of this array. Textual data is not copied. The tuples to assign to are defined by a C array of indices. The components to assign to are defined by three values similar to parameters of the Python function range(start,stop,step). There are two modes of usage:

  • If a->getNbOfElems() equals to number of values to assign to, then every value of a is assigned to its own location within this array.
  • If a includes one tuple, then all values of a are assigned to the specified components of every specified tuple of this array. In this mode it is required that a->getNumberOfComponents() equals to the number of specified components.
Parameters
[in]a- the array to copy values from.
[in]bgTuples- pointer to an array of tuple indices of this array to assign values of a to.
[in]endTuples- specifies the end of the array bgTuples, so that pointer to a tuple index (pi) varies as this: bgTuples <= pi < endTuples.
[in]bgComp- index of the first component of this array to assign to.
[in]endComp- index of the component before which the components to assign to are located.
[in]stepComp- index increment to get index of the next component to assign to.
[in]strictCompoCompare- this parameter is checked only in the first mode of usage; if strictCompoCompare is true (default), then a->getNumberOfComponents() must be equal to the number of specified columns, else this is not required.
Exceptions
Ifa is NULL.
Ifa is not allocated.
Ifthis is not allocated.
Ifany index of tuple given by bgTuples is out of a valid range for this array.
Inthe first mode of usage, if strictCompoCompare == true and if a->getNumberOfComponents() is unequal to the number of components defined by (bgComp,endComp,stepComp).
Inthe second mode of usage, if a->getNumberOfTuples() != 1 or a->getNumberOfComponents() is unequal to the number of components defined by (bgComp,endComp,stepComp).
Ifparameters specifying components to assign to, do not give a non-empty range of increasing indices or indices are out of a valid range for this array.

Here is a Python example.

References MEDCoupling::DataArray::CheckValueInRange(), MEDCoupling::DataArray::CheckValueInRangeEx(), and MEDCoupling::DataArray::GetNumberOfItemGivenBES().

Referenced by MEDCoupling::MEDCouplingStructuredMesh::buildPartAndReduceNodes(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), and MEDCoupling::DataArray::setPartOfValuesBase3().

template<class T>
void MEDCoupling::DataArrayTemplate< T >::setPartOfValuesSimple3 ( a,
const int *  bgTuples,
const int *  endTuples,
int  bgComp,
int  endComp,
int  stepComp 
)

Assign a given value to values at specified tuples and components of this array. The tuples to assign to are defined by a C array of indices. The components to assign to are defined by three values similar to parameters of the Python function range(start,stop,step).

Parameters
[in]a- the value to assign.
[in]bgTuples- pointer to an array of tuple indices of this array to assign a to.
[in]endTuples- specifies the end of the array bgTuples, so that pointer to a tuple index (pi) varies as this: bgTuples <= pi < endTuples.
[in]bgComp- index of the first component of this array to assign to.
[in]endComp- index of the component before which the components to assign to are located.
[in]stepComp- index increment to get index of the next component to assign to.
Exceptions
Ifthis is not allocated.
Ifany index of tuple given by bgTuples is out of a valid range for this array.
Ifparameters specifying components to assign to, do not give a non-empty range of increasing indices or indices are out of a valid range for this array.

Here is a Python example.

References MEDCoupling::DataArray::CheckValueInRange(), MEDCoupling::DataArray::CheckValueInRangeEx(), and MEDCoupling::DataArray::GetNumberOfItemGivenBES().

Referenced by MEDCoupling::MEDFileMesh::addGroupUnderground().

template<class T>
void MEDCoupling::DataArrayTemplate< T >::setPartOfValues4 ( const typename Traits< T >::ArrayType *  a,
int  bgTuples,
int  endTuples,
int  stepTuples,
const int *  bgComp,
const int *  endComp,
bool  strictCompoCompare = true 
)

Copy all values from another DataArrayDouble into specified tuples and components of this array. Textual data is not copied. The tree parameters defining set of indices of tuples and components are similar to the tree parameters of the Python function range(start,stop,step).

Parameters
[in]a- the array to copy values from.
[in]bgTuples- index of the first tuple of this array to assign values to.
[in]endTuples- index of the tuple before which the tuples to assign to are located.
[in]stepTuples- index increment to get index of the next tuple to assign to.
[in]bgComp- pointer to an array of component indices of this array to assign a to.
[in]endComp- specifies the end of the array bgTuples, so that pointer to a component index (pi) varies as this: bgComp <= pi < endComp.
[in]strictCompoCompare- if true (by default), then a->getNumberOfComponents() must be equal to the number of columns to assign to, else an exception is thrown; if false, then it is only required that a->getNbOfElems() equals to number of values to assign to (this condition must be respected even if strictCompoCompare is true). The number of values to assign to is given by following Python expression: nbTargetValues = len(range(bgTuples,endTuples,stepTuples)) * len(range(bgComp,endComp,stepComp)).
Exceptions
Ifa is NULL.
Ifa is not allocated.
Ifthis is not allocated.
Ifparameters specifying tuples and components to assign to do not give a non-empty range of increasing indices.
Ifa->getNbOfElems() != nbTargetValues.
IfstrictCompoCompare == true && a->getNumberOfComponents() != len(range(bgComp,endComp,stepComp)).

References MEDCoupling::DataArray::CheckValueInRange(), MEDCoupling::DataArray::CheckValueInRangeEx(), and MEDCoupling::DataArray::GetNumberOfItemGivenBES().

template<class T>
void MEDCoupling::DataArrayTemplate< T >::setPartOfValuesSimple4 ( a,
int  bgTuples,
int  endTuples,
int  stepTuples,
const int *  bgComp,
const int *  endComp 
)
template<class T>
void MEDCoupling::DataArrayTemplate< T >::setPartOfValuesAdv ( const typename Traits< T >::ArrayType *  a,
const DataArrayInt tuplesSelec 
)

Copy some tuples from another DataArrayDouble into specified tuples of this array. Textual data is not copied. Both arrays must have equal number of components. Both the tuples to assign and the tuples to assign to are defined by a DataArrayInt. All components of selected tuples are copied.

Parameters
[in]a- the array to copy values from.
[in]tuplesSelec- the array specifying both source tuples of a and target tuples of this. tuplesSelec has two components, and the first component specifies index of the source tuple and the second one specifies index of the target tuple.
Exceptions
Ifthis is not allocated.
Ifa is NULL.
Ifa is not allocated.
IftuplesSelec is NULL.
IftuplesSelec is not allocated.
Ifthis->getNumberOfComponents() != a->getNumberOfComponents().
IftuplesSelec->getNumberOfComponents() != 2.
Ifany tuple index given by tuplesSelec is out of a valid range for the corresponding (this or a) array.

References MEDCoupling::DataArrayTemplate< T >::begin(), MEDCoupling::DataArrayTemplate< T >::checkAllocated(), MEDCoupling::DataArrayTemplate< T >::end(), and MEDCoupling::DataArray::getNumberOfComponents().

template<class T >
void MEDCoupling::DataArrayTemplate< T >::setContigPartOfSelectedValues ( int  tupleIdStart,
const DataArray aBase,
const DataArrayInt tuplesSelec 
)
virtual

Copy some tuples from another DataArrayDouble (aBase) into contiguous tuples of this array. Textual data is not copied. Both arrays must have equal number of components. The tuples to assign to are defined by index of the first tuple, and their number is defined by tuplesSelec->getNumberOfTuples(). The tuples to copy are defined by values of a DataArrayInt. All components of selected tuples are copied.

Parameters
[in]tupleIdStart- index of the first tuple of this array to assign values to.
[in]aBase- the array to copy values from.
[in]tuplesSelec- the array specifying tuples of a to copy.
Exceptions
Ifthis is not allocated.
IfaBase is NULL.
IfaBase is not allocated.
IftuplesSelec is NULL.
IftuplesSelec is not allocated.
Ifthis->getNumberOfComponents() != aBase->getNumberOfComponents().
IftuplesSelec->getNumberOfComponents() != 1.
IftupleIdStart + tuplesSelec->getNumberOfTuples() > this->getNumberOfTuples().
Ifany tuple index given by tuplesSelec is out of a valid range for aBase array.

Implements MEDCoupling::DataArray.

References MEDCoupling::DataArrayTemplate< T >::begin(), MEDCoupling::DataArrayTemplate< T >::checkAllocated(), MEDCoupling::DataArrayTemplate< T >::end(), MEDCoupling::DataArray::getNumberOfComponents(), and MEDCoupling::DataArrayTemplate< T >::getNumberOfTuples().

template<class T >
void MEDCoupling::DataArrayTemplate< T >::setContigPartOfSelectedValuesSlice ( int  tupleIdStart,
const DataArray aBase,
int  bg,
int  end2,
int  step 
)
virtual

Copy some tuples from another DataArrayDouble (aBase) into contiguous tuples of this array. Textual data is not copied. Both arrays must have equal number of components. The tuples to copy are defined by three values similar to parameters of the Python function range(start,stop,step). The tuples to assign to are defined by index of the first tuple, and their number is defined by number of tuples to copy. All components of selected tuples are copied.

Parameters
[in]tupleIdStart- index of the first tuple of this array to assign values to.
[in]aBase- the array to copy values from.
[in]bg- index of the first tuple to copy of the array aBase.
[in]end2- index of the tuple of aBase before which the tuples to copy are located.
[in]step- index increment to get index of the next tuple to copy.
Exceptions
Ifthis is not allocated.
IfaBase is NULL.
IfaBase is not allocated.
Ifthis->getNumberOfComponents() != aBase->getNumberOfComponents().
IftupleIdStart + len(range(bg,end2,step)) > this->getNumberOfTuples().
Ifparameters specifying tuples to copy, do not give a non-empty range of increasing indices or indices are out of a valid range for the array aBase.

Implements MEDCoupling::DataArray.

References MEDCoupling::DataArray::GetNumberOfItemGivenBES().

template<class T >
T MEDCoupling::DataArrayTemplate< T >::getMaxValue ( int &  tupleId) const

Returns the maximal value and its location within this one-dimensional array.

Parameters
[out]tupleId- index of the tuple holding the maximal value.
Returns
double - the maximal value among all values of this array.
Exceptions
Ifthis->getNumberOfComponents() != 1
Ifthis->getNumberOfTuples() < 1

Referenced by MEDCoupling::MEDCouplingUMesh::areCellsIncludedIn(), MEDCoupling::MEDCouplingUMesh::emulateMEDMEMBDC(), MEDCoupling::MEDFileUMesh::getMaxAbsFamilyIdInArrays(), and MEDCoupling::MEDFileUMesh::getMaxFamilyIdInArrays().

template<class T >
T MEDCoupling::DataArrayTemplate< T >::getMaxValueInArray ( ) const

Returns the maximal value within this array that is allowed to have more than one component.

Returns
double - the maximal value among all values of this array.
Exceptions
Ifthis is not allocated.
template<class T >
T MEDCoupling::DataArrayTemplate< T >::getMinValue ( int &  tupleId) const

Returns the minimal value and its location within this one-dimensional array.

Parameters
[out]tupleId- index of the tuple holding the minimal value.
Returns
double - the minimal value among all values of this array.
Exceptions
Ifthis->getNumberOfComponents() != 1
Ifthis->getNumberOfTuples() < 1

Referenced by MEDCoupling::MEDFileUMesh::getMinFamilyIdInArrays().

template<class T >
T MEDCoupling::DataArrayTemplate< T >::getMinValueInArray ( ) const
template<class T >
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::mySelectByTupleId ( const int *  new2OldBg,
const int *  new2OldEnd 
) const
protected

Returns a shorten and permuted copy of this array. The new DataArrayDouble is of size new2OldEnd - new2OldBg and it's values are permuted as required by new2OldBg array. The values are permuted so that new[ i ] = old[ new2OldBg[ i ]]. This method is equivalent to renumberAndReduce() except that convention in input is new2old and not old2new. For more info on renumbering see Array indexing and numbering.

Parameters
[in]new2OldBg- pointer to the beginning of a permutation array that gives a tuple index in this array to fill the i-th tuple in the new array.
[in]new2OldEnd- specifies the end of the permutation array that starts at new2OldBg, so that pointer to a tuple index (pi) varies as this: new2OldBg <= pi < new2OldEnd.
Returns
DataArrayDouble * - the new instance of DataArrayDouble that the caller is to delete using decrRef() as it is no more needed.

References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().

Referenced by MEDCoupling::DataArrayTemplate< T >::mySelectByTupleId(), MEDCoupling::DataArrayDouble::selectByTupleId(), MEDCoupling::DataArrayInt::selectByTupleId(), and MEDCoupling::DataArrayChar::selectByTupleId().

template<class T >
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::mySelectByTupleId ( const DataArrayInt di) const
protected
template<class T >
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::mySelectByTupleIdSafe ( const int *  new2OldBg,
const int *  new2OldEnd 
) const
protected

Returns a shorten and permuted copy of this array. The new DataArrayDouble is of size new2OldEnd - new2OldBg and it's values are permuted as required by new2OldBg array. The values are permuted so that new[ i ] = old[ new2OldBg[ i ]]. This method is equivalent to renumberAndReduce() except that convention in input is new2old and not old2new. This method is equivalent to selectByTupleId() except that it prevents coping data from behind the end of this array. For more info on renumbering see Array indexing and numbering.

Parameters
[in]new2OldBg- pointer to the beginning of a permutation array that gives a tuple index in this array to fill the i-th tuple in the new array.
[in]new2OldEnd- specifies the end of the permutation array that starts at new2OldBg, so that pointer to a tuple index (pi) varies as this: new2OldBg <= pi < new2OldEnd.
Returns
DataArrayDouble * - the new instance of DataArrayDouble that the caller is to delete using decrRef() as it is no more needed.
Exceptions
Ifnew2OldEnd - new2OldBg > this->getNumberOfTuples().

References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().

Referenced by MEDCoupling::DataArrayDouble::selectByTupleIdSafe(), MEDCoupling::DataArrayInt::selectByTupleIdSafe(), and MEDCoupling::DataArrayChar::selectByTupleIdSafe().

template<class T >
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::myKeepSelectedComponents ( const std::vector< int > &  compoIds) const
protected

Returns a copy of this array composed of selected components. The new DataArrayDouble has the same number of tuples but includes components specified by compoIds parameter. So that getNbOfElems() of the result array can be either less, same or more than this->getNbOfElems().

Parameters
[in]compoIds- sequence of zero based indices of components to include into the new array.
Returns
DataArrayDouble * - the new instance of DataArrayDouble that the caller is to delete using decrRef() as it is no more needed.
Exceptions
Ifthis is not allocated.
Ifa component index (i) is not valid: i < 0 || i >= this->getNumberOfComponents().

Here is a Python example.

References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().

Referenced by MEDCoupling::DataArrayDouble::keepSelectedComponents(), MEDCoupling::DataArrayInt::keepSelectedComponents(), and MEDCoupling::DataArrayChar::keepSelectedComponents().

template<class T >
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::mySelectByTupleIdSafeSlice ( int  bg,
int  end2,
int  step 
) const
protected

Returns a shorten copy of this array. The new DataArrayDouble contains every (bg + i * step)-th tuple of this array located before the end2-th tuple. Indices of the selected tuples are the same as ones returned by the Python command range( bg, end2, step ). This method is equivalent to selectByTupleIdSafe() except that the input array is not constructed explicitly. For more info on renumbering see Array indexing and numbering.

Parameters
[in]bg- index of the first tuple to copy from this array.
[in]end2- index of the tuple before which the tuples to copy are located.
[in]step- index increment to get index of the next tuple to copy.
Returns
DataArrayDouble * - the new instance of DataArrayDouble that the caller is to delete using decrRef() as it is no more needed.
See Also
DataArrayDouble::subArray.

References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().

Referenced by MEDCoupling::DataArrayDouble::selectByTupleIdSafeSlice(), MEDCoupling::DataArrayInt::selectByTupleIdSafeSlice(), and MEDCoupling::DataArrayChar::selectByTupleIdSafeSlice().

template<class T >
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::mySelectByTupleRanges ( const std::vector< std::pair< int, int > > &  ranges) const
protected

Returns a shorten copy of this array. The new DataArrayDouble contains ranges of tuples specified by ranges parameter. For more info on renumbering see Array indexing and numbering.

Parameters
[in]ranges- std::vector of std::pair's each of which defines a range of tuples in [begin,end) format.
Returns
DataArrayDouble * - the new instance of DataArrayDouble that the caller is to delete using decrRef() as it is no more needed.
Exceptions
Ifend < begin.
Ifend > this->getNumberOfTuples().
Ifthis is not allocated.

References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().

Referenced by MEDCoupling::DataArrayDouble::selectByTupleRanges(), MEDCoupling::DataArrayInt::selectByTupleRanges(), and MEDCoupling::DataArrayChar::selectByTupleRanges().

Member Data Documentation