mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare] Add some missing std::move
This commit is contained in:
committed by
LeaNumworks
parent
84f6b179de
commit
bfb39618e1
@@ -50,7 +50,7 @@ Evaluation<T> NthRootNode::templatedApproximate(Context * context, Preferences::
|
||||
// root(x, q) with q integer and x real
|
||||
Complex<T> result = PowerNode::computeNotPrincipalRealRootOfRationalPow(basec, (T)1.0, indexc.real());
|
||||
if (!result.isUndefined()) {
|
||||
return result;
|
||||
return std::move(result);
|
||||
}
|
||||
}
|
||||
result = PowerNode::compute(basec, std::complex<T>(1.0)/(indexc), complexFormat);
|
||||
|
||||
@@ -325,7 +325,7 @@ template<typename T> Evaluation<T> PowerNode::templatedApproximate(Context * con
|
||||
}
|
||||
Complex<T> result = computeNotPrincipalRealRootOfRationalPow(c, p, q);
|
||||
if (!result.isUndefined()) {
|
||||
return result;
|
||||
return std::move(result);
|
||||
}
|
||||
}
|
||||
defaultApproximation:
|
||||
|
||||
Reference in New Issue
Block a user