Public Member Functions | |
void | alloc (std::size_t nbOfTuple, std::size_t nbOfCompo=1) |
void | allocIfNecessary (int nbOfTuple, int nbOfCompo) |
T | 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) |
T | front () const |
const T * | getConstPointer () const |
std::size_t | getHeapMemorySizeWithoutChildren () const |
T | getIJ (int tupleId, int compoId) const |
T | getIJSafe (int tupleId, int compoId) const |
T | getMaxValue (int &tupleId) const |
T | getMaxValueInArray () const |
T | getMinValue (int &tupleId) const |
T | 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 |
T | 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 DataArray * | buildNewEmptyInstance () 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 DataArray * | deepCopy () 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 DataArray * | keepSelectedComponents (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 DataArray * | selectByTupleId (const int *new2OldBg, const int *new2OldEnd) const =0 |
virtual DataArray * | selectByTupleIdSafe (const int *new2OldBg, const int *new2OldEnd) const =0 |
virtual DataArray * | selectByTupleIdSafeSlice (int bg, int end2, int step) const =0 |
virtual DataArray * | selectByTupleRanges (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 |
TimeLabel & | operator= (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 DataArray * | Aggregate (const std::vector< const DataArray * > &arrs) |
static std::string | BuildInfoFromVarAndUnit (const std::string &var, const std::string &unit) |
static std::string | GetAxisTypeRepr (MEDCouplingAxisType at) |
static 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) |
|
static |
std::vector< MCAuto< typename Traits< T >::ArrayTypeCh > > MEDCoupling::DataArrayTemplate< T >::explodeComponents | ( | ) | const |
|
virtual |
Reimplemented from MEDCoupling::DataArray.
References MEDCoupling::DataArray::getHeapMemorySizeWithoutChildren().
|
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().
|
virtual |
Implements MEDCoupling::DataArray.
Referenced by MEDCoupling::BlockTopology::BlockTopology(), MEDCoupling::MEDCouplingCMesh::checkConsistencyLight(), MEDCoupling::MEDCouplingPointSet::checkDeepEquivalOnSameNodesWith(), MEDCoupling::MEDCouplingPointSet::checkDeepEquivalWith(), MEDCoupling::MEDCouplingCMesh::computeCellCenterOfMass(), MEDCoupling::MEDCouplingUMesh::conformize3D(), MEDCoupling::MEDCouplingUMesh::convertCellArrayPerGeoType(), MEDCoupling::MEDCouplingUMesh::emulateMEDMEMBDC(), MEDCoupling::DataArrayTemplate< char >::end(), MEDCoupling::MEDCouplingCMesh::getBoundingBox(), MEDCoupling::MEDCouplingPointSet::getCaracteristicDimension(), MEDCoupling::MEDCouplingCMesh::getCellContainingPoint(), MEDCoupling::MEDFileUMesh::getFamilies(), MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::getFieldOnMeshAtLevel(), MEDCoupling::MEDCouplingUMesh::getNodalConnectivityArrayLen(), MEDCoupling::MEDCouplingUMesh::getTypeOfCell(), MEDCoupling::MEDCouplingMappedExtrudedMesh::resizeForUnserialization(), MEDCoupling::MEDCoupling1DGTUMesh::resizeForUnserialization(), MEDCoupling::MEDCouplingCMesh::scale(), MEDCoupling::MEDCouplingMappedExtrudedMesh::serialize(), MEDCoupling::MEDCoupling1SGTUMesh::serialize(), MEDCoupling::MEDCoupling1DGTUMesh::serialize(), MEDCoupling::MEDCouplingCMesh::translate(), MEDCoupling::MEDCouplingPointSet::tryToShareSameCoordsPermute(), and MEDCoupling::MEDCouplingMappedExtrudedMesh::unserialization().
bool MEDCoupling::DataArrayTemplate< T >::empty | ( | ) | const |
Checks the number of tuples.
If | this is not allocated. |
Referenced by MEDCoupling::MEDFileAnyTypeField1TSWithoutSDA::addNewEntryIfNecessary(), MEDCoupling::MEDFileUMesh::buildExtrudedMesh(), MEDCoupling::MEDCouplingUMesh::buildSlice3D(), MEDCoupling::MEDCouplingUMesh::buildSlice3DSurf(), MEDCoupling::MEDCouplingUMesh::clipSingle3DCellByPlane(), MEDCoupling::MEDCouplingUMesh::colinearize2D(), MEDCoupling::MEDCouplingUMesh::convexEnvelop2D(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), MEDCoupling::MEDFileMesh::rearrangeFamilies(), MEDCoupling::MEDCoupling1SGTUMesh::sortHexa8EachOther(), and MEDCoupling::MEDCouplingUMesh::tetrahedrize().
|
virtual |
Implements MEDCoupling::DataArray.
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().
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().
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().
|
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.
[in] | nbOfTuple | - number of tuples of data to allocate. |
[in] | nbOfCompo | - number of components of data to allocate. |
If | nbOfTuple < 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().
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++.
[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().
void MEDCoupling::DataArrayTemplate< T >::useExternalArrayWithRWAccess | ( | const T * | array, |
int | nbOfTuple, | ||
int | nbOfCompo | ||
) |
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.
[in] | tupleId | - index of tuple of interest. |
[in] | compoId | - index of component of interest. |
If | this is not allocated. |
If | condition ( 0 <= tupleId < this->getNumberOfTuples() ) is violated. |
If | condition ( 0 <= compoId < this->getNumberOfComponents() ) is violated. |
Referenced by MEDCoupling::MEDCouplingUMesh::buildSpreadZonesWithPoly().
T MEDCoupling::DataArrayTemplate< T >::getIJ | ( | int | tupleId, |
int | compoId | ||
) | const |
Referenced by MEDCoupling::MEDCouplingUMesh::AggregateSortedByTypeMeshesOnSameCoords(), MEDCoupling::DataArrayInt::changeSurjectiveFormat(), MEDCoupling::MEDCouplingUMesh::clipSingle3DCellByPlane(), MEDCoupling::MEDCouplingUMesh::conformize3D(), MEDCoupling::MEDCouplingUMesh::convexEnvelop2D(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getIJK(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getIJK(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), and MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine().
void MEDCoupling::DataArrayTemplate< T >::setIJ | ( | int | tupleId, |
int | compoId, | ||
T | newVal | ||
) |
Referenced by MEDCoupling::MEDCouplingStructuredMesh::Build1GTNodalConnectivity(), MEDCoupling::MEDCouplingUMesh::buildSetInstanceFromThis(), MEDCoupling::MEDCoupling1DGTUMesh::buildSetInstanceFromThis(), MEDCoupling::MEDCouplingUMesh::computeCellNeighborhoodFromNodesOne(), MEDCoupling::MEDCouplingMesh::getCellsContainingPoints(), and MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine().
void MEDCoupling::DataArrayTemplate< T >::setIJSilent | ( | int | tupleId, |
int | compoId, | ||
T | newVal | ||
) |
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().
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.
Referenced by MEDCoupling::MEDCouplingUMesh::finishInsertingCells().
|
virtual |
Checks if raw data is allocated. Read more on the raw data in DataArrays infos for more information.
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().
|
virtual |
Checks if raw data is allocated and throws an exception if it is not the case.
If | the 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().
|
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.
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.
Referenced by MEDCoupling::MEDCouplingUMesh::allocateCells(), and MEDCoupling::MEDCouplingUMesh::ComputeNeighborsOfCellsAdv().
|
virtual |
Changes the number of components within this array so that its raw data does not change, instead splitting this data into tuples changes.
[in] | newNbOfComp | - number of components for this array to have. |
If | this is not allocated |
If | getNbOfElems() % newNbOfCompo != 0. |
If | newNbOfCompo is lower than 1. |
If | the rearrange method would lead to a number of tuples higher than 2147483647 (maximal capacity of int32 !). |
Implements MEDCoupling::DataArray.
Referenced by MEDCoupling::DataArrayDouble::applyFunc(), MEDCoupling::MEDCouplingUMesh::colinearize2D(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), MEDCoupling::MEDCouplingUMesh::tetrahedrize(), and MEDCoupling::MEDFileUMesh::unserialize().
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.
If | this is not allocated. |
void MEDCoupling::DataArrayTemplate< T >::pushBackSilent | ( | T | 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.
[in] | val | the value to be added in this |
If | this has already been allocated with number of components different from one. |
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().
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.
[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 ]. |
If | this has already been allocated with number of components different from one. |
Referenced by MEDCoupling::DataArrayInt::findIdsRangesInListOfIds(), MEDCoupling::MEDCoupling1SGTUMesh::insertNextCell(), and MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine().
T MEDCoupling::DataArrayTemplate< T >::popBackSilent | ( | ) |
This method returns silently ( without updating time label in this ) the last value, if any and suppress it.
If | this is already empty. |
If | this has number of components different from one. |
Referenced by MEDCoupling::MEDCouplingUMesh::SimplifyPolyhedronCell().
T MEDCoupling::DataArrayTemplate< T >::front | ( | ) | const |
Returns the first value of this.
If | this is not allocated. |
If | this->getNumberOfComponents() != 1. |
If | this->getNumberOfTuples() < 1. |
Referenced by MEDCoupling::MEDCoupling1DGTUMesh::checkConsistencyOfConnectivity(), MEDCoupling::MEDCouplingUMesh::MergeUMeshesOnSameCoords(), MEDCoupling::MEDFileFieldGlobsReal::zipLocsNames(), and MEDCoupling::MEDFileFieldGlobsReal::zipPflsNames().
T MEDCoupling::DataArrayTemplate< T >::back | ( | ) | const |
Returns the last value of this.
If | this is not allocated. |
If | this->getNumberOfComponents() != 1. |
If | this->getNumberOfTuples() < 1. |
Referenced by MEDCoupling::MEDCoupling1DGTUMesh::checkConsistencyOfConnectivity(), MEDCoupling::DataArrayDouble::findCommonTuplesAlg(), MEDCoupling::DataArrayDouble::FindTupleIdsNearTuplesAlg(), MEDCoupling::MEDCouplingUMesh::insertNextCell(), MEDCoupling::MEDCoupling1DGTUMesh::insertNextCell(), and MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine().
|
virtual |
Implements MEDCoupling::DataArray.
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.
[in] | nbOfTuple | - number of tuples of data to allocate. |
[in] | nbOfCompo | - number of components of data to allocate. |
If | nbOfTuple < 0 or nbOfCompo < 0. |
void MEDCoupling::DataArrayTemplate< T >::deepCopyFrom | ( | const DataArrayTemplate< T > & | other | ) |
Copies all the data from another DataArrayDouble. For more info see MEDCouplingArrayBasicsCopyDeepAssign.
[in] | other | - another instance of DataArrayDouble to copy data from. |
If | the other is not allocated. |
References MEDCoupling::DataArrayTemplate< T >::begin(), MEDCoupling::DataArrayTemplate< T >::checkAllocated(), MEDCoupling::DataArray::getNumberOfComponents(), and MEDCoupling::DataArrayTemplate< T >::getNumberOfTuples().
Referenced by MEDCoupling::MEDCouplingCartesianAMRMesh::createPatchesFromCriterionML().
void MEDCoupling::DataArrayTemplate< T >::reverse | ( | ) |
Reverse the array values.
If | this->getNumberOfComponents() < 1. |
If | this is not allocated. |
void MEDCoupling::DataArrayTemplate< T >::fillWithValue | ( | T | val | ) |
Assign val to all values in this array. To know more on filling arrays see Filling DataArray with values.
[in] | val | - the value to fill with. |
If | this is not allocated. |
Referenced by MEDCoupling::DataArrayDouble::applyFunc(), MEDCoupling::MEDCouplingStructuredMesh::buildPartAndReduceNodes(), MEDCoupling::DataArrayInt::buildPermutationArr(), MEDCoupling::MEDCouplingStructuredMesh::computeNbOfFacesPerCell(), MEDCoupling::MEDCoupling1SGTUMesh::computeNbOfFacesPerCell(), MEDCoupling::MEDCouplingStructuredMesh::computeNbOfNodesPerCell(), MEDCoupling::MEDCoupling1SGTUMesh::computeNbOfNodesPerCell(), MEDCoupling::MEDCouplingUMesh::conformize3D(), MEDCoupling::MEDCouplingIMesh::getMeasureField(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), and MEDCoupling::DataArrayInt::transformWithIndArrR().
|
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.
[in] | nbOfTuples | - new number of tuples. |
If | this is not allocated. |
If | nbOfTuples is negative. |
Implements MEDCoupling::DataArray.
Referenced by MEDCoupling::MEDCouplingUMesh::convertDegeneratedCells(), MEDCoupling::MEDCouplingFieldDiscretization::RenumberEntitiesFromN2OArr(), MEDCoupling::MEDCouplingFieldDiscretization::RenumberEntitiesFromO2NArr(), MEDCoupling::MEDCouplingUMesh::unPolyze(), and MEDCoupling::MEDCouplingUMesh::writeVTKLL().
|
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.
[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().
|
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.
[in] | new2Old | - C array of length equal to this->getNumberOfTuples() giving a previous position of i-th new value. |
Implements MEDCoupling::DataArray.
void MEDCoupling::DataArrayTemplate< T >::sort | ( | bool | asc = true | ) |
Sorts values of the array.
[in] | asc | - true means ascending order, false, descending. |
If | this is not allocated. |
If | this->getNumberOfComponents() != 1. |
Referenced by MEDCoupling::MEDCouplingPointSet::checkDeepEquivalWith(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::computeMeshRestrictionFromTupleIds(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::computeMeshRestrictionFromTupleIds(), MEDCoupling::MEDCouplingUMesh::findCellIdsLyingOn(), MEDCoupling::MEDCouplingMappedExtrudedMesh::giveCellsWithType(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), MEDCoupling::DataArrayInt::isEqualWithoutConsideringStrAndOrder(), and MEDCoupling::MEDCoupling1SGTUMesh::structurizeMe().
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.
[in] | old2New | - C array of length equal to this->getNumberOfTuples() giving a new position for i-th old value. |
If | this is not allocated. |
References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().
Referenced by MEDCoupling::MEDCouplingUMesh::AggregateSortedByTypeMeshesOnSameCoords(), MEDCoupling::MEDCouplingFieldDiscretizationPerCell::renumberCells(), and MEDCoupling::MEDFileUMesh::unPolyze().
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.
[in] | new2Old | - C array of length equal to this->getNumberOfTuples() giving a previous position of i-th new value. |
References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().
Referenced by MEDCoupling::MEDCouplingMappedExtrudedMesh::computeNbOfFacesPerCell(), and MEDCoupling::MEDCouplingMappedExtrudedMesh::computeNbOfNodesPerCell().
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.
[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. |
References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().
Referenced by MEDCoupling::MEDCouplingUMesh::MergeNodesOnUMeshesSharingSameCoords(), and MEDCoupling::MEDCouplingPointSet::renumberNodes().
Traits< T >::ArrayType * MEDCoupling::DataArrayTemplate< T >::changeNbOfComponents | ( | int | newNbOfComp, |
T | 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.
[in] | newNbOfComp | - number of components for the new array to have. |
[in] | dftValue | - value assigned to new values added to the new array. |
If | this is not allocated. |
References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().
Referenced by MEDCoupling::MEDCouplingPointSet::changeSpaceDimension(), and MEDCoupling::MEDCouplingUMesh::writeVTKLL().
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().
[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. |
If | tupleIdBg < 0. |
If | tupleIdBg > this->getNumberOfTuples(). |
If | tupleIdEnd != -1 && tupleIdEnd < this->getNumberOfTuples(). |
References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().
Referenced by MEDCoupling::MEDCouplingUMesh::areCellsIncludedIn(), and MEDCoupling::MEDCouplingPointSet::checkDeepEquivalWith().
MCAuto< typename Traits< T >::ArrayTypeCh > MEDCoupling::DataArrayTemplate< T >::selectPartDef | ( | const PartDefinition * | pd | ) | const |
References MEDCoupling::RefCountObjectOnly::incrRef().
|
virtual |
Implements MEDCoupling::DataArray.
|
virtual |
Implements MEDCoupling::DataArray.
|
virtual |
Implements MEDCoupling::DataArray.
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
).
[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)). |
If | a is NULL. |
If | a is not allocated. |
If | this is not allocated. |
If | parameters specifying tuples and components to assign to do not give a non-empty range of increasing indices. |
If | a->getNbOfElems() != nbTargetValues. |
If | strictCompoCompare == true && a->getNumberOfComponents() != len (range (bgComp,endComp,stepComp)). |
References MEDCoupling::DataArray::CheckValueInRangeEx(), and MEDCoupling::DataArray::GetNumberOfItemGivenBES().
Referenced by MEDCoupling::MEDFileUMesh::buildInnerBoundaryAlongM1Group(), and MEDCoupling::MEDFileUMesh::linearToQuadratic().
void MEDCoupling::DataArrayTemplate< T >::setPartOfValuesSimple1 | ( | T | 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
)..
[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. |
If | this is not allocated. |
If | parameters 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. |
References MEDCoupling::DataArray::CheckValueInRangeEx(), and MEDCoupling::DataArray::GetNumberOfItemGivenBES().
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:
[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. |
If | a is NULL. |
If | a is not allocated. |
If | this is not allocated. |
If | any index of tuple/component given by bgTuples / bgComp is out of a valid range for this array. |
In | the first mode of usage, if strictCompoCompare == true and if a->getNumberOfComponents() != (endComp - bgComp) . |
In | the second mode of usage, if a->getNumberOfTuples() != 1 or a->getNumberOfComponents() != (endComp - bgComp). |
References MEDCoupling::DataArray::CheckValueInRange().
void MEDCoupling::DataArrayTemplate< T >::setPartOfValuesSimple2 | ( | T | 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.
[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. |
If | this is not allocated. |
If | any index of tuple/component given by bgTuples / bgComp is out of a valid range for this array. |
References MEDCoupling::DataArray::CheckValueInRange().
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:
[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. |
If | a is NULL. |
If | a is not allocated. |
If | this is not allocated. |
If | any index of tuple given by bgTuples is out of a valid range for this array. |
In | the first mode of usage, if strictCompoCompare == true and if a->getNumberOfComponents() is unequal to the number of components defined by (bgComp,endComp,stepComp). |
In | the second mode of usage, if a->getNumberOfTuples() != 1 or a->getNumberOfComponents() is unequal to the number of components defined by (bgComp,endComp,stepComp). |
If | parameters 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. |
References MEDCoupling::DataArray::CheckValueInRange(), MEDCoupling::DataArray::CheckValueInRangeEx(), and MEDCoupling::DataArray::GetNumberOfItemGivenBES().
Referenced by MEDCoupling::MEDCouplingStructuredMesh::buildPartAndReduceNodes(), MEDCoupling::MEDCouplingUMesh::Intersect2DMeshWith1DLine(), and MEDCoupling::DataArray::setPartOfValuesBase3().
void MEDCoupling::DataArrayTemplate< T >::setPartOfValuesSimple3 | ( | T | 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
).
[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. |
If | this is not allocated. |
If | any index of tuple given by bgTuples is out of a valid range for this array. |
If | parameters 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. |
References MEDCoupling::DataArray::CheckValueInRange(), MEDCoupling::DataArray::CheckValueInRangeEx(), and MEDCoupling::DataArray::GetNumberOfItemGivenBES().
Referenced by MEDCoupling::MEDFileMesh::addGroupUnderground().
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
).
[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)). |
If | a is NULL. |
If | a is not allocated. |
If | this is not allocated. |
If | parameters specifying tuples and components to assign to do not give a non-empty range of increasing indices. |
If | a->getNbOfElems() != nbTargetValues. |
If | strictCompoCompare == true && a->getNumberOfComponents() != len (range (bgComp,endComp,stepComp)). |
References MEDCoupling::DataArray::CheckValueInRange(), MEDCoupling::DataArray::CheckValueInRangeEx(), and MEDCoupling::DataArray::GetNumberOfItemGivenBES().
void MEDCoupling::DataArrayTemplate< T >::setPartOfValuesSimple4 | ( | T | a, |
int | bgTuples, | ||
int | endTuples, | ||
int | stepTuples, | ||
const int * | bgComp, | ||
const int * | endComp | ||
) |
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.
[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. |
If | this is not allocated. |
If | a is NULL. |
If | a is not allocated. |
If | tuplesSelec is NULL. |
If | tuplesSelec is not allocated. |
If | this->getNumberOfComponents() != a->getNumberOfComponents(). |
If | tuplesSelec->getNumberOfComponents() != 2. |
If | any 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().
|
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.
[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. |
If | this is not allocated. |
If | aBase is NULL. |
If | aBase is not allocated. |
If | tuplesSelec is NULL. |
If | tuplesSelec is not allocated. |
If | this->getNumberOfComponents() != aBase->getNumberOfComponents(). |
If | tuplesSelec->getNumberOfComponents() != 1. |
If | tupleIdStart + tuplesSelec->getNumberOfTuples() > this->getNumberOfTuples(). |
If | any 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().
|
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.
[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. |
If | this is not allocated. |
If | aBase is NULL. |
If | aBase is not allocated. |
If | this->getNumberOfComponents() != aBase->getNumberOfComponents(). |
If | tupleIdStart + len(range(bg,end2,step)) > this->getNumberOfTuples(). |
If | parameters 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().
T MEDCoupling::DataArrayTemplate< T >::getMaxValue | ( | int & | tupleId | ) | const |
Returns the maximal value and its location within this one-dimensional array.
[out] | tupleId | - index of the tuple holding the maximal value. |
If | this->getNumberOfComponents() != 1 |
If | this->getNumberOfTuples() < 1 |
Referenced by MEDCoupling::MEDCouplingUMesh::areCellsIncludedIn(), MEDCoupling::MEDCouplingUMesh::emulateMEDMEMBDC(), MEDCoupling::MEDFileUMesh::getMaxAbsFamilyIdInArrays(), and MEDCoupling::MEDFileUMesh::getMaxFamilyIdInArrays().
T MEDCoupling::DataArrayTemplate< T >::getMaxValueInArray | ( | ) | const |
Returns the maximal value within this array that is allowed to have more than one component.
If | this is not allocated. |
T MEDCoupling::DataArrayTemplate< T >::getMinValue | ( | int & | tupleId | ) | const |
Returns the minimal value and its location within this one-dimensional array.
[out] | tupleId | - index of the tuple holding the minimal value. |
If | this->getNumberOfComponents() != 1 |
If | this->getNumberOfTuples() < 1 |
Referenced by MEDCoupling::MEDFileUMesh::getMinFamilyIdInArrays().
T MEDCoupling::DataArrayTemplate< T >::getMinValueInArray | ( | ) | const |
Returns the minimal value within this array that is allowed to have more than one component.
If | this is not allocated. |
Referenced by MEDCoupling::MEDCouplingFieldDiscretizationP0::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationOnNodes::getNumberOfTuplesExpectedRegardingCode(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getNumberOfTuplesExpectedRegardingCode(), and MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getNumberOfTuplesExpectedRegardingCode().
|
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.
[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. |
References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().
Referenced by MEDCoupling::DataArrayTemplate< T >::mySelectByTupleId(), MEDCoupling::DataArrayDouble::selectByTupleId(), MEDCoupling::DataArrayInt::selectByTupleId(), and MEDCoupling::DataArrayChar::selectByTupleId().
|
protected |
|
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.
[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. |
If | new2OldEnd - new2OldBg > this->getNumberOfTuples(). |
References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().
Referenced by MEDCoupling::DataArrayDouble::selectByTupleIdSafe(), MEDCoupling::DataArrayInt::selectByTupleIdSafe(), and MEDCoupling::DataArrayChar::selectByTupleIdSafe().
|
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().
[in] | compoIds | - sequence of zero based indices of components to include into the new array. |
If | this is not allocated. |
If | a component index (i) is not valid: i < 0 || i >= this->getNumberOfComponents(). |
References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().
Referenced by MEDCoupling::DataArrayDouble::keepSelectedComponents(), MEDCoupling::DataArrayInt::keepSelectedComponents(), and MEDCoupling::DataArrayChar::keepSelectedComponents().
|
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.
[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. |
References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().
Referenced by MEDCoupling::DataArrayDouble::selectByTupleIdSafeSlice(), MEDCoupling::DataArrayInt::selectByTupleIdSafeSlice(), and MEDCoupling::DataArrayChar::selectByTupleIdSafeSlice().
|
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.
[in] | ranges | - std::vector of std::pair's each of which defines a range of tuples in [begin ,end ) format. |
If | end < begin. |
If | end > this->getNumberOfTuples(). |
If | this is not allocated. |
References MEDCoupling::DynamicCastSafe(), and MEDCoupling::MCAuto< T >::retn().
Referenced by MEDCoupling::DataArrayDouble::selectByTupleRanges(), MEDCoupling::DataArrayInt::selectByTupleRanges(), and MEDCoupling::DataArrayChar::selectByTupleRanges().
|
protected |
Referenced by MEDCoupling::DataArrayTemplate< char >::getConstPointer(), MEDCoupling::DataArrayTemplate< char >::getIJ(), MEDCoupling::DataArrayTemplate< char >::getNbOfElemAllocated(), MEDCoupling::DataArrayTemplate< char >::getNbOfElems(), MEDCoupling::DataArrayTemplate< char >::getNumberOfTuples(), MEDCoupling::DataArrayTemplate< char >::getPointer(), MEDCoupling::DataArrayDouble::isEqualIfNotWhy(), MEDCoupling::DataArrayInt::isEqualIfNotWhy(), MEDCoupling::DataArrayDouble::isEqualWithoutConsideringStr(), MEDCoupling::DataArrayInt::isEqualWithoutConsideringStr(), MEDCoupling::DataArrayTemplate< char >::setIJ(), and MEDCoupling::DataArrayTemplate< char >::setIJSilent().