void DataArrayDouble::addEqual(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception)
{
- int nbOfTuple=other->getNumberOfTuples();
- int nbOfComp=other->getNumberOfComponents();
- checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array add equal !");
- std::transform(begin(),end(),other->begin(),getPointer(),std::plus<double>());
+ const char *msg="Nb of tuples mismatch for DataArrayDouble::addEqual !";
+ int nbOfTuple=getNumberOfTuples();
+ int nbOfTuple2=other->getNumberOfTuples();
+ int nbOfComp=getNumberOfComponents();
+ int nbOfComp2=other->getNumberOfComponents();
+ if(nbOfTuple==nbOfTuple2)
+ {
+ if(nbOfComp==nbOfComp2)
+ {
+ std::transform(begin(),end(),other->begin(),getPointer(),std::plus<double>());
+ }
+ else if(nbOfComp2==1)
+ {
+ double *ptr=getPointer();
+ const double *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptr+i*nbOfComp,std::bind2nd(std::plus<double>(),*ptrc++));
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
+ }
+ else if(nbOfTuple2==1)
+ {
+ double *ptr=getPointer();
+ const double *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptrc,ptr+i*nbOfComp,std::plus<double>());
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
declareAsNew();
}
void DataArrayDouble::substractEqual(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception)
{
- int nbOfTuple=other->getNumberOfTuples();
- int nbOfComp=other->getNumberOfComponents();
- checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array substract equal !");
- std::transform(begin(),end(),other->begin(),getPointer(),std::minus<double>());
+ const char *msg="Nb of tuples mismatch for DataArrayDouble::substractEqual !";
+ int nbOfTuple=getNumberOfTuples();
+ int nbOfTuple2=other->getNumberOfTuples();
+ int nbOfComp=getNumberOfComponents();
+ int nbOfComp2=other->getNumberOfComponents();
+ if(nbOfTuple==nbOfTuple2)
+ {
+ if(nbOfComp==nbOfComp2)
+ {
+ std::transform(begin(),end(),other->begin(),getPointer(),std::minus<double>());
+ }
+ else if(nbOfComp2==1)
+ {
+ double *ptr=getPointer();
+ const double *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptr+i*nbOfComp,std::bind2nd(std::minus<double>(),*ptrc++));
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
+ }
+ else if(nbOfTuple2==1)
+ {
+ double *ptr=getPointer();
+ const double *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptrc,ptr+i*nbOfComp,std::minus<double>());
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
declareAsNew();
}
void DataArrayDouble::multiplyEqual(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception)
{
+ const char *msg="Nb of tuples mismatch for DataArrayDouble::multiplyEqual !";
int nbOfTuple=getNumberOfTuples();
int nbOfTuple2=other->getNumberOfTuples();
int nbOfComp=getNumberOfComponents();
int nbOfComp2=other->getNumberOfComponents();
- if(nbOfTuple!=nbOfTuple2)
- throw INTERP_KERNEL::Exception("Nb of tuples mismatch for array multiplyEqual !");
- if(nbOfComp==nbOfComp2)
- {
- std::transform(begin(),end(),other->begin(),getPointer(),std::multiplies<double>());
- }
- else
+ if(nbOfTuple==nbOfTuple2)
{
- if(nbOfComp2==1)
+ if(nbOfComp==nbOfComp2)
+ {
+ std::transform(begin(),end(),other->begin(),getPointer(),std::multiplies<double>());
+ }
+ else if(nbOfComp2==1)
{
- const double *ptr=other->getConstPointer();
- double *myPtr=getPointer();
+ double *ptr=getPointer();
+ const double *ptrc=other->getConstPointer();
for(int i=0;i<nbOfTuple;i++)
- myPtr=std::transform(myPtr,myPtr+nbOfComp,myPtr,std::bind2nd(std::multiplies<double>(),ptr[i]));
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptr+i*nbOfComp,std::bind2nd(std::multiplies<double>(),*ptrc++));
}
else
- throw INTERP_KERNEL::Exception("Nb of components mismatch for array multiplyEqual !");
+ throw INTERP_KERNEL::Exception(msg);
}
+ else if(nbOfTuple2==1)
+ {
+ double *ptr=getPointer();
+ const double *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptrc,ptr+i*nbOfComp,std::multiplies<double>());
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
declareAsNew();
}
void DataArrayDouble::divideEqual(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception)
{
+ const char *msg="Nb of tuples mismatch for DataArrayDouble::divideEqual !";
int nbOfTuple=getNumberOfTuples();
int nbOfTuple2=other->getNumberOfTuples();
int nbOfComp=getNumberOfComponents();
int nbOfComp2=other->getNumberOfComponents();
- if(nbOfTuple!=nbOfTuple2)
- throw INTERP_KERNEL::Exception("Nb of tuples mismatch for array divideEqual !");
- if(nbOfComp==nbOfComp2)
- {
- std::transform(begin(),end(),other->begin(),getPointer(),std::divides<double>());
- }
- else
+ if(nbOfTuple==nbOfTuple2)
{
- if(nbOfComp2==1)
+ if(nbOfComp==nbOfComp2)
+ {
+ std::transform(begin(),end(),other->begin(),getPointer(),std::divides<double>());
+ }
+ else if(nbOfComp2==1)
{
- const double *ptr=other->getConstPointer();
- double *myPtr=getPointer();
+ double *ptr=getPointer();
+ const double *ptrc=other->getConstPointer();
for(int i=0;i<nbOfTuple;i++)
- myPtr=std::transform(myPtr,myPtr+nbOfComp,myPtr,std::bind2nd(std::divides<double>(),ptr[i]));
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptr+i*nbOfComp,std::bind2nd(std::divides<double>(),*ptrc++));
}
else
- throw INTERP_KERNEL::Exception("Nb of components mismatch for array divideEqual !");
+ throw INTERP_KERNEL::Exception(msg);
}
+ else if(nbOfTuple2==1)
+ {
+ double *ptr=getPointer();
+ const double *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptrc,ptr+i*nbOfComp,std::divides<double>());
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
declareAsNew();
}
void DataArrayInt::addEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception)
{
- int nbOfTuple=other->getNumberOfTuples();
- int nbOfComp=other->getNumberOfComponents();
- checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array add equal !");
- std::transform(begin(),end(),other->begin(),getPointer(),std::plus<int>());
+ const char *msg="Nb of tuples mismatch for DataArrayInt::addEqual !";
+ int nbOfTuple=getNumberOfTuples();
+ int nbOfTuple2=other->getNumberOfTuples();
+ int nbOfComp=getNumberOfComponents();
+ int nbOfComp2=other->getNumberOfComponents();
+ if(nbOfTuple==nbOfTuple2)
+ {
+ if(nbOfComp==nbOfComp2)
+ {
+ std::transform(begin(),end(),other->begin(),getPointer(),std::plus<int>());
+ }
+ else if(nbOfComp2==1)
+ {
+ int *ptr=getPointer();
+ const int *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptr+i*nbOfComp,std::bind2nd(std::plus<int>(),*ptrc++));
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
+ }
+ else if(nbOfTuple2==1)
+ {
+ int *ptr=getPointer();
+ const int *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptrc,ptr+i*nbOfComp,std::plus<int>());
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
declareAsNew();
}
void DataArrayInt::substractEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception)
{
- int nbOfTuple=other->getNumberOfTuples();
- int nbOfComp=other->getNumberOfComponents();
- checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array substract equal !");
- std::transform(begin(),end(),other->begin(),getPointer(),std::minus<int>());
+ const char *msg="Nb of tuples mismatch for DataArrayInt::substractEqual !";
+ int nbOfTuple=getNumberOfTuples();
+ int nbOfTuple2=other->getNumberOfTuples();
+ int nbOfComp=getNumberOfComponents();
+ int nbOfComp2=other->getNumberOfComponents();
+ if(nbOfTuple==nbOfTuple2)
+ {
+ if(nbOfComp==nbOfComp2)
+ {
+ std::transform(begin(),end(),other->begin(),getPointer(),std::minus<int>());
+ }
+ else if(nbOfComp2==1)
+ {
+ int *ptr=getPointer();
+ const int *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptr+i*nbOfComp,std::bind2nd(std::minus<int>(),*ptrc++));
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
+ }
+ else if(nbOfTuple2==1)
+ {
+ int *ptr=getPointer();
+ const int *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptrc,ptr+i*nbOfComp,std::minus<int>());
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
declareAsNew();
}
void DataArrayInt::multiplyEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception)
{
+ const char *msg="Nb of tuples mismatch for DataArrayInt::multiplyEqual !";
int nbOfTuple=getNumberOfTuples();
int nbOfTuple2=other->getNumberOfTuples();
int nbOfComp=getNumberOfComponents();
int nbOfComp2=other->getNumberOfComponents();
- if(nbOfTuple!=nbOfTuple2)
- throw INTERP_KERNEL::Exception("Nb of tuples mismatch for array multiplyEqual !");
- if(nbOfComp==nbOfComp2)
- {
- std::transform(begin(),end(),other->begin(),getPointer(),std::multiplies<int>());
- }
- else
+ if(nbOfTuple==nbOfTuple2)
{
- if(nbOfComp2==1)
+ if(nbOfComp==nbOfComp2)
+ {
+ std::transform(begin(),end(),other->begin(),getPointer(),std::multiplies<int>());
+ }
+ else if(nbOfComp2==1)
{
- const int *ptr=other->getConstPointer();
- int *myPtr=getPointer();
+ int *ptr=getPointer();
+ const int *ptrc=other->getConstPointer();
for(int i=0;i<nbOfTuple;i++)
- myPtr=std::transform(myPtr,myPtr+nbOfComp,myPtr,std::bind2nd(std::multiplies<int>(),ptr[i]));
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptr+i*nbOfComp,std::bind2nd(std::multiplies<int>(),*ptrc++));
}
else
- throw INTERP_KERNEL::Exception("Nb of components mismatch for array multiplyEqual !");
+ throw INTERP_KERNEL::Exception(msg);
}
+ else if(nbOfTuple2==1)
+ {
+ int *ptr=getPointer();
+ const int *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptrc,ptr+i*nbOfComp,std::multiplies<int>());
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
declareAsNew();
}
void DataArrayInt::divideEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception)
{
+ const char *msg="Nb of tuples mismatch for DataArrayInt::divideEqual !";
int nbOfTuple=getNumberOfTuples();
int nbOfTuple2=other->getNumberOfTuples();
int nbOfComp=getNumberOfComponents();
int nbOfComp2=other->getNumberOfComponents();
- if(nbOfTuple!=nbOfTuple2)
- throw INTERP_KERNEL::Exception("Nb of tuples mismatch for array divideEqual !");
- if(nbOfComp==nbOfComp2)
- {
- std::transform(begin(),end(),other->begin(),getPointer(),std::divides<int>());
- }
- else
+ if(nbOfTuple==nbOfTuple2)
{
- if(nbOfComp2==1)
+ if(nbOfComp==nbOfComp2)
+ {
+ std::transform(begin(),end(),other->begin(),getPointer(),std::divides<int>());
+ }
+ else if(nbOfComp2==1)
{
- const int *ptr=other->getConstPointer();
- int *myPtr=getPointer();
+ int *ptr=getPointer();
+ const int *ptrc=other->getConstPointer();
for(int i=0;i<nbOfTuple;i++)
- myPtr=std::transform(myPtr,myPtr+nbOfComp,myPtr,std::bind2nd(std::divides<int>(),ptr[i]));
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptr+i*nbOfComp,std::bind2nd(std::divides<int>(),*ptrc++));
}
else
- throw INTERP_KERNEL::Exception("Nb of components mismatch for array divideEqual !");
+ throw INTERP_KERNEL::Exception(msg);
}
+ else if(nbOfTuple2==1)
+ {
+ int *ptr=getPointer();
+ const int *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptrc,ptr+i*nbOfComp,std::divides<int>());
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
declareAsNew();
}
void DataArrayInt::modulusEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception)
{
- int nbOfTuple=other->getNumberOfTuples();
- int nbOfComp=other->getNumberOfComponents();
- checkNbOfTuplesAndComp(nbOfTuple,nbOfComp,"Nb of components mismatch for array modulus equal");
- std::transform(begin(),end(),other->begin(),getPointer(),std::modulus<int>());
+ const char *msg="Nb of tuples mismatch for DataArrayInt::modulusEqual !";
+ int nbOfTuple=getNumberOfTuples();
+ int nbOfTuple2=other->getNumberOfTuples();
+ int nbOfComp=getNumberOfComponents();
+ int nbOfComp2=other->getNumberOfComponents();
+ if(nbOfTuple==nbOfTuple2)
+ {
+ if(nbOfComp==nbOfComp2)
+ {
+ std::transform(begin(),end(),other->begin(),getPointer(),std::modulus<int>());
+ }
+ else if(nbOfComp2==1)
+ {
+ int *ptr=getPointer();
+ const int *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptr+i*nbOfComp,std::bind2nd(std::modulus<int>(),*ptrc++));
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
+ }
+ else if(nbOfTuple2==1)
+ {
+ int *ptr=getPointer();
+ const int *ptrc=other->getConstPointer();
+ for(int i=0;i<nbOfTuple;i++)
+ std::transform(ptr+i*nbOfComp,ptr+(i+1)*nbOfComp,ptrc,ptr+i*nbOfComp,std::modulus<int>());
+ }
+ else
+ throw INTERP_KERNEL::Exception(msg);
declareAsNew();
}
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
self->addEqual(aaa);
return self;
}
+ case 4:
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=DataArrayDouble::New(); aaa->useArray(&bb[0],false,CPP_DEALLOC,1,(int)bb.size());
+ self->addEqual(aaa);
+ return self;
+ }
default:
throw INTERP_KERNEL::Exception(msg);
}
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=aa->buildDADouble(self->getNumberOfTuples(),self->getNumberOfComponents());
return DataArrayDouble::Substract(self,aaa);
}
+ case 4:
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=DataArrayDouble::New(); aaa->useArray(&bb[0],false,CPP_DEALLOC,1,(int)bb.size());
+ return DataArrayDouble::Substract(self,aaa);
+ }
default:
throw INTERP_KERNEL::Exception(msg);
}
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=aa->buildDADouble(self->getNumberOfTuples(),self->getNumberOfComponents());
return DataArrayDouble::Substract(aaa,self);
}
+ case 4:
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=DataArrayDouble::New(); aaa->useArray(&bb[0],false,CPP_DEALLOC,1,(int)bb.size());
+ return DataArrayDouble::Substract(aaa,self);
+ }
default:
throw INTERP_KERNEL::Exception(msg);
}
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
self->substractEqual(aaa);
return self;
}
+ case 4:
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=DataArrayDouble::New(); aaa->useArray(&bb[0],false,CPP_DEALLOC,1,(int)bb.size());
+ self->substractEqual(aaa);
+ return self;
+ }
default:
throw INTERP_KERNEL::Exception(msg);
}
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=aa->buildDADouble(self->getNumberOfTuples(),self->getNumberOfComponents());
return DataArrayDouble::Multiply(self,aaa);
}
+ case 4:
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=DataArrayDouble::New(); aaa->useArray(&bb[0],false,CPP_DEALLOC,1,(int)bb.size());
+ return DataArrayDouble::Multiply(self,aaa);
+ }
default:
throw INTERP_KERNEL::Exception(msg);
}
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=aa->buildDADouble(self->getNumberOfTuples(),self->getNumberOfComponents());
return DataArrayDouble::Multiply(self,aaa);
}
+ case 4:
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=DataArrayDouble::New(); aaa->useArray(&bb[0],false,CPP_DEALLOC,1,(int)bb.size());
+ return DataArrayDouble::Multiply(self,aaa);
+ }
default:
throw INTERP_KERNEL::Exception(msg);
}
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
self->multiplyEqual(aaa);
return self;
}
+ case 4:
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=DataArrayDouble::New(); aaa->useArray(&bb[0],false,CPP_DEALLOC,1,(int)bb.size());
+ self->multiplyEqual(aaa);
+ return self;
+ }
default:
throw INTERP_KERNEL::Exception(msg);
}
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=aa->buildDADouble(self->getNumberOfTuples(),self->getNumberOfComponents());
return DataArrayDouble::Divide(self,aaa);
}
+ case 4:
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=DataArrayDouble::New(); aaa->useArray(&bb[0],false,CPP_DEALLOC,1,(int)bb.size());
+ return DataArrayDouble::Divide(self,aaa);
+ }
default:
throw INTERP_KERNEL::Exception(msg);
}
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=aa->buildDADouble(self->getNumberOfTuples(),self->getNumberOfComponents());
return DataArrayDouble::Divide(aaa,self);
}
+ case 4:
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=DataArrayDouble::New(); aaa->useArray(&bb[0],false,CPP_DEALLOC,1,(int)bb.size());
+ return DataArrayDouble::Divide(aaa,self);
+ }
default:
throw INTERP_KERNEL::Exception(msg);
}
double val;
DataArrayDouble *a;
DataArrayDoubleTuple *aa;
+ std::vector<double> bb;
int sw;
- convertObjToPossibleCpp5(obj,sw,val,a,aa);
+ convertObjToPossibleCpp5(obj,sw,val,a,aa,bb);
switch(sw)
{
case 1:
self->divideEqual(aaa);
return self;
}
+ case 4:
+ {
+ MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> aaa=DataArrayDouble::New(); aaa->useArray(&bb[0],false,CPP_DEALLOC,1,(int)bb.size());
+ self->divideEqual(aaa);
+ return self;
+ }
default:
throw INTERP_KERNEL::Exception(msg);
}