commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [commons-math] 02/02: Method "ofReal" was removed from the API.
Date Mon, 16 Dec 2019 12:57:13 GMT
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 49f3afd6b8caaa81da842495ffb016379b029432
Author: Gilles Sadowski <gilles@harfang.homelinux.org>
AuthorDate: Mon Dec 16 13:55:52 2019 +0100

    Method "ofReal" was removed from the API.
---
 .../org/apache/commons/math4/transform/FastFourierTransformerTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/math4/transform/FastFourierTransformerTest.java
b/src/test/java/org/apache/commons/math4/transform/FastFourierTransformerTest.java
index 5a2f3ca..b49d964 100644
--- a/src/test/java/org/apache/commons/math4/transform/FastFourierTransformerTest.java
+++ b/src/test/java/org/apache/commons/math4/transform/FastFourierTransformerTest.java
@@ -301,7 +301,7 @@ public final class FastFourierTransformerTest {
         final Complex[] x = new Complex[n];
         for (int i = 0; i < n; i++) {
             final double t = min + i * (max - min) / n;
-            x[i] = Complex.ofReal(f.value(t));
+            x[i] = Complex.ofCartesian(f.value(t), 0);
         }
         final Complex[] expected;
         final double s;


Mime
View raw message