Memory improvements

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

No files matched your search

@@ -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());