jessicapriebe commented on code in PR #1983:
URL: https://github.com/apache/systemds/pull/1983#discussion_r1460444395
##########
src/test/java/org/apache/sysds/test/component/matrix/FourierTest.java:
##########
@@ -0,0 +1,112 @@
+package org.apache.sysds.test.component.matrix;
+
+import org.apache.sysds.runtime.matrix.data.MatrixBlock;
+import org.junit.Test;
+import static org.apache.sysds.runtime.matrix.data.LibMatrixFourier.*;
+import static org.junit.Assert.assertArrayEquals;
+
+public class FourierTest {
+
+ @Test
+ public void simple_test_one_dim() {
+ // 1st row real part, 2nd row imaginary part
+ double[][] in = {{0, 18, -15, 3},{0, 0, 0, 0}};
+ double[][] expected = {{6, 15, -36, 15},{0, -15, 0, 15}};
+
+ double[][] res = fft_one_dim(in);
+ for(double[] row : res){
+ for (double elem : row){
+ System.out.print(elem + " ");
+ }
+ System.out.println();
Review Comment:
resolved
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]