ret=DataArrayDouble::New();
ret->alloc(nbOfTuple,nbOfComp);
std::transform(a1->getConstPointer(),a1->getConstPointer()+nbOfTuple*nbOfComp,a2->getConstPointer(),ret->getPointer(),std::multiplies<double>());
+ ret->copyStringInfoFrom(*a1);
}
else
{
double *res=ret->getPointer();
for(int i=0;i<nbOfTuple;i++)
res=std::transform(aMaxPtr+i*nbOfCompMax,aMaxPtr+(i+1)*nbOfCompMax,res,std::bind2nd(std::multiplies<double>(),aMinPtr[i]));
+ ret->copyStringInfoFrom(*aMax);
}
else
throw INTERP_KERNEL::Exception("Nb of components mismatch for array multiply !");
}
- ret->copyStringInfoFrom(*a1);
return ret;
}
for(int i=0;i<15;i++)
CPPUNIT_ASSERT_DOUBLES_EQUAL(expected2[i],val[i],1.e-12);
f3->decrRef();
+ //
+ f3=(*f2)*(*f1);
+ val=f3->getArray()->getConstPointer();
+ for(int i=0;i<15;i++)
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(expected2[i],val[i],1.e-12);
+ f3->decrRef();
+ //
f1->decrRef();
f2->decrRef();
//