Kaydet (Commit) f4844297 authored tarafından Eike Rathke's avatar Eike Rathke

Related: tdf#44076 use sc::power() in ScMatrix::PowOp()

Change-Id: I13a47419bd57d71482793d5f9a8429101793aad7
Reviewed-on: https://gerrit.libreoffice.org/66092Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: Jenkins
üst 3827fec6
...@@ -3441,13 +3441,13 @@ void ScMatrix::PowOp( bool bFlag, double fVal, ScMatrix& rMat) ...@@ -3441,13 +3441,13 @@ void ScMatrix::PowOp( bool bFlag, double fVal, ScMatrix& rMat)
{ {
if (bFlag) if (bFlag)
{ {
auto pow_ = [](double a, double b){return pow(b, a);}; auto pow_ = [](double a, double b){return sc::power(b, a);};
matop::MatOp<decltype(pow_)> aOp(pow_, pImpl->GetErrorInterpreter(), fVal); matop::MatOp<decltype(pow_)> aOp(pow_, pImpl->GetErrorInterpreter(), fVal);
pImpl->ApplyOperation(aOp, *rMat.pImpl); pImpl->ApplyOperation(aOp, *rMat.pImpl);
} }
else else
{ {
auto pow_ = [](double a, double b){return pow(a, b);}; auto pow_ = [](double a, double b){return sc::power(a, b);};
matop::MatOp<decltype(pow_)> aOp(pow_, pImpl->GetErrorInterpreter(), fVal); matop::MatOp<decltype(pow_)> aOp(pow_, pImpl->GetErrorInterpreter(), fVal);
pImpl->ApplyOperation(aOp, *rMat.pImpl); pImpl->ApplyOperation(aOp, *rMat.pImpl);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment