Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicapriebe committed Feb 19, 2024
1 parent d0cf71d commit 0248dca
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@

import org.apache.commons.math3.util.FastMath;

import org.apache.sysds.runtime.util.CommonThreadPool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;

public class LibMatrixFourier {

/**
Expand Down Expand Up @@ -180,7 +175,6 @@ private static void ifft_one_dim(double[] re, double[] im, double[] re_inter, do
}

// apply fft
//fft_one_dim_recursive(re, im, re_inter, im_inter, start, step, num, subArraySize);
fft_one_dim(re, im, re_inter, im_inter, start, stop, num, minStep);

// conjugate and scale result
Expand Down Expand Up @@ -225,17 +219,4 @@ public static MatrixBlock[] ifft(MatrixBlock re){
return ifft(re, new MatrixBlock(re.getNumRows(),re.getNumColumns(), new double[re.getNumRows()*re.getNumColumns()]));
}

public static void awaitParallelExecution(ExecutorService pool) {

try {
int timeout = 100;
if(!pool.awaitTermination(timeout, TimeUnit.SECONDS)) {
pool.shutdownNow();
}
}
catch(InterruptedException e) {
e.printStackTrace();
}
}

}

0 comments on commit 0248dca

Please sign in to comment.