Memory improvements

This commit is contained in:
serso
2016-03-05 12:33:43 +01:00
parent b1a0e588c1
commit a81ce84aff
5 changed files with 93 additions and 31 deletions

View File

@@ -93,7 +93,7 @@ public class ExpressionFunction extends Function {
public float unwrap(Numeric content) {
if (content instanceof Real) {
return (float) ((Real) content).doubleValue();
return (float) content.doubleValue();
}
if (content instanceof Complex) {
return (float) (imaginary ? ((Complex) content).imaginaryPart() : ((Complex) content).realPart());