a1->checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array Add !");
DataArrayDouble *ret=DataArrayDouble::New();
ret->alloc(nbOfTuple,nbOfComp);
- std::transform(a1->getConstPointer(),a1->getConstPointer()+nbOfTuple*nbOfComp,a2->getConstPointer(),ret->getPointer(),std::plus<double>());
+ std::transform(a1->begin(),a1->end(),a2->begin(),ret->getPointer(),std::plus<double>());
ret->copyStringInfoFrom(*a1);
return ret;
}
int nbOfTuple=other->getNumberOfTuples();
int nbOfComp=other->getNumberOfComponents();
checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array add equal !");
- std::transform(getConstPointer(),getConstPointer()+nbOfTuple*nbOfComp,other->getConstPointer(),getPointer(),std::plus<double>());
+ std::transform(begin(),end(),other->begin(),getPointer(),std::plus<double>());
declareAsNew();
}
a1->checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array Substract !");
DataArrayDouble *ret=DataArrayDouble::New();
ret->alloc(nbOfTuple,nbOfComp);
- std::transform(a1->getConstPointer(),a1->getConstPointer()+nbOfTuple*nbOfComp,a2->getConstPointer(),ret->getPointer(),std::minus<double>());
+ std::transform(a1->begin(),a1->end(),a2->begin(),ret->getPointer(),std::minus<double>());
ret->copyStringInfoFrom(*a1);
return ret;
}
int nbOfTuple=other->getNumberOfTuples();
int nbOfComp=other->getNumberOfComponents();
checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array substract equal !");
- std::transform(getConstPointer(),getConstPointer()+nbOfTuple*nbOfComp,other->getConstPointer(),getPointer(),std::minus<double>());
+ std::transform(begin(),end(),other->begin(),getPointer(),std::minus<double>());
declareAsNew();
}
{
ret=DataArrayDouble::New();
ret->alloc(nbOfTuple,nbOfComp);
- std::transform(a1->getConstPointer(),a1->getConstPointer()+nbOfTuple*nbOfComp,a2->getConstPointer(),ret->getPointer(),std::multiplies<double>());
+ std::transform(a1->begin(),a1->end(),a2->begin(),ret->getPointer(),std::multiplies<double>());
ret->copyStringInfoFrom(*a1);
}
else
throw INTERP_KERNEL::Exception("Nb of tuples mismatch for array multiplyEqual !");
if(nbOfComp==nbOfComp2)
{
- std::transform(getConstPointer(),getConstPointer()+nbOfTuple*nbOfComp,other->getConstPointer(),getPointer(),std::multiplies<double>());
+ std::transform(begin(),end(),other->begin(),getPointer(),std::multiplies<double>());
}
else
{
{
ret=DataArrayDouble::New();
ret->alloc(nbOfTuple,nbOfComp);
- std::transform(a1->getConstPointer(),a1->getConstPointer()+nbOfTuple*nbOfComp,a2->getConstPointer(),ret->getPointer(),std::divides<double>());
+ std::transform(a1->begin(),a1->end(),a2->begin(),ret->getPointer(),std::divides<double>());
ret->copyStringInfoFrom(*a1);
}
else
throw INTERP_KERNEL::Exception("Nb of tuples mismatch for array divideEqual !");
if(nbOfComp==nbOfComp2)
{
- std::transform(getConstPointer(),getConstPointer()+nbOfTuple*nbOfComp,other->getConstPointer(),getPointer(),std::divides<double>());
+ std::transform(begin(),end(),other->begin(),getPointer(),std::divides<double>());
}
else
{
a1->checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array Add !");
DataArrayInt *ret=DataArrayInt::New();
ret->alloc(nbOfTuple,nbOfComp);
- std::transform(a1->getConstPointer(),a1->getConstPointer()+nbOfTuple*nbOfComp,a2->getConstPointer(),ret->getPointer(),std::plus<int>());
+ std::transform(a1->begin(),a1->end(),a2->begin(),ret->getPointer(),std::plus<int>());
ret->copyStringInfoFrom(*a1);
return ret;
}
int nbOfTuple=other->getNumberOfTuples();
int nbOfComp=other->getNumberOfComponents();
checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array add equal !");
- std::transform(getConstPointer(),getConstPointer()+nbOfTuple*nbOfComp,other->getConstPointer(),getPointer(),std::plus<int>());
+ std::transform(begin(),end(),other->begin(),getPointer(),std::plus<int>());
declareAsNew();
}
a1->checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array Substract !");
DataArrayInt *ret=DataArrayInt::New();
ret->alloc(nbOfTuple,nbOfComp);
- std::transform(a1->getConstPointer(),a1->getConstPointer()+nbOfTuple*nbOfComp,a2->getConstPointer(),ret->getPointer(),std::minus<int>());
+ std::transform(a1->begin(),a1->end(),a2->begin(),ret->getPointer(),std::minus<int>());
ret->copyStringInfoFrom(*a1);
return ret;
}
int nbOfTuple=other->getNumberOfTuples();
int nbOfComp=other->getNumberOfComponents();
checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array substract equal !");
- std::transform(getConstPointer(),getConstPointer()+nbOfTuple*nbOfComp,other->getConstPointer(),getPointer(),std::minus<int>());
+ std::transform(begin(),end(),other->begin(),getPointer(),std::minus<int>());
declareAsNew();
}
{
ret=DataArrayInt::New();
ret->alloc(nbOfTuple,nbOfComp);
- std::transform(a1->getConstPointer(),a1->getConstPointer()+nbOfTuple*nbOfComp,a2->getConstPointer(),ret->getPointer(),std::multiplies<int>());
+ std::transform(a1->begin(),a1->end(),a2->begin(),ret->getPointer(),std::multiplies<int>());
ret->copyStringInfoFrom(*a1);
}
else
throw INTERP_KERNEL::Exception("Nb of tuples mismatch for array multiplyEqual !");
if(nbOfComp==nbOfComp2)
{
- std::transform(getConstPointer(),getConstPointer()+nbOfTuple*nbOfComp,other->getConstPointer(),getPointer(),std::multiplies<int>());
+ std::transform(begin(),end(),other->begin(),getPointer(),std::multiplies<int>());
}
else
{
{
ret=DataArrayInt::New();
ret->alloc(nbOfTuple,nbOfComp);
- std::transform(a1->getConstPointer(),a1->getConstPointer()+nbOfTuple*nbOfComp,a2->getConstPointer(),ret->getPointer(),std::divides<int>());
+ std::transform(a1->begin(),a1->end(),a2->begin(),ret->getPointer(),std::divides<int>());
ret->copyStringInfoFrom(*a1);
}
else
throw INTERP_KERNEL::Exception("Nb of tuples mismatch for array divideEqual !");
if(nbOfComp==nbOfComp2)
{
- std::transform(getConstPointer(),getConstPointer()+nbOfTuple*nbOfComp,other->getConstPointer(),getPointer(),std::divides<int>());
+ std::transform(begin(),end(),other->begin(),getPointer(),std::divides<int>());
}
else
{
a1->checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array Modulus");
DataArrayInt *ret=DataArrayInt::New();
ret->alloc(nbOfTuple,nbOfComp);
- std::transform(a1->getConstPointer(),a1->getConstPointer()+nbOfTuple*nbOfComp,a2->getConstPointer(),ret->getPointer(),std::modulus<int>());
+ std::transform(a1->begin(),a1->end(),a2->begin(),ret->getPointer(),std::modulus<int>());
ret->copyStringInfoFrom(*a1);
return ret;
}
int nbOfTuple=other->getNumberOfTuples();
int nbOfComp=other->getNumberOfComponents();
checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array modulus equal");
- std::transform(getConstPointer(),getConstPointer()+nbOfTuple*nbOfComp,other->getConstPointer(),getPointer(),std::modulus<int>());
+ std::transform(begin(),end(),other->begin(),getPointer(),std::modulus<int>());
declareAsNew();
}