public class IOUtils extends Object
Constructor and Description |
---|
IOUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
fillMatrix_1D(int N,
double[] m)
Fills 1D matrix with random numbers.
|
static void |
fillMatrix_1D(int N,
float[] m)
Fills 1D matrix with random numbers.
|
static void |
fillMatrix_2D(int n1,
int n2,
double[] m)
Fills 2D matrix with random numbers.
|
static void |
fillMatrix_2D(int n1,
int n2,
double[][] m)
Fills 2D matrix with random numbers.
|
static void |
fillMatrix_2D(int n1,
int n2,
float[] m)
Fills 2D matrix with random numbers.
|
static void |
fillMatrix_2D(int n1,
int n2,
float[][] m)
Fills 2D matrix with random numbers.
|
static void |
fillMatrix_3D(int n1,
int n2,
int n3,
double[] m)
Fills 3D matrix with random numbers.
|
static void |
fillMatrix_3D(int n1,
int n2,
int n3,
double[][][] m)
Fills 3D matrix with random numbers.
|
static void |
fillMatrix_3D(int n1,
int n2,
int n3,
float[] m)
Fills 3D matrix with random numbers.
|
static void |
fillMatrix_3D(int n1,
int n2,
int n3,
float[][][] m)
Fills 3D matrix with random numbers.
|
static void |
showComplex_1D(String format,
double[] x,
String title)
Displays elements of
x , assuming that it is 1D complex
array. |
static void |
showComplex_2D(String format,
int rows,
int columns,
double[] x,
String title)
Displays elements of
x , assuming that it is 2D complex
array. |
static void |
showComplex_3D(String format,
int n1,
int n2,
int n3,
double[] x,
String title)
Displays elements of
x , assuming that it is 3D complex
array. |
static void |
showReal_1D(String format,
double[] x,
String title)
Displays elements of
x , assuming that it is 1D real array. |
static void |
showReal_2D(String format,
int n1,
int n2,
double[] x,
String title)
Displays elements of
x , assuming that it is 2D real array. |
static void |
showReal_3D(String format,
int n1,
int n2,
int n3,
double[] x,
String title)
Displays elements of
x , assuming that it is 3D real array. |
static void |
writeFFTBenchmarkResultsToFile(String filename,
int nthread,
int niter,
boolean doWarmup,
boolean doScaling,
int[] sizes,
double[] times)
Saves results of the benchmark in a file
|
static void |
writeToFileComplex_1D(String format,
double[] x,
String filename)
Saves elements of
x in a file filename ,
assuming that it is 1D complex array. |
static void |
writeToFileComplex_2D(String format,
int n1,
int n2,
double[][] x,
String filename)
Saves elements of
x in a file filename . |
static void |
writeToFileComplex_2D(String format,
int n1,
int n2,
double[] x,
String filename)
Saves elements of
x in a file filename ,
assuming that it is 2D complex array. |
static void |
writeToFileComplex_3D(String format,
int n1,
int n2,
int n3,
double[][][] x,
String filename)
Saves elements of
x in a file filename . |
static void |
writeToFileComplex_3D(String format,
int n1,
int n2,
int n3,
double[] x,
String filename)
Saves elements of
x in a file filename ,
assuming that it is 3D complex array. |
static void |
writeToFileReal_1D(int[] x,
String filename)
Saves elements of
x in a file filename ,
assuming that it is 2D real array. |
static void |
writeToFileReal_1D(String format,
double[] x,
String filename)
Saves elements of
x in a file filename ,
assuming that it is 2D real array. |
static void |
writeToFileReal_1D(String format,
float[] x,
String filename)
Saves elements of
x in a file filename ,
assuming that it is 2D real array. |
static void |
writeToFileReal_2D(String format,
double[][] x,
String filename)
Saves elements of
x in a file filename , |
static void |
writeToFileReal_2D(String format,
float[][] x,
String filename)
Saves elements of
x in a file filename , |
static void |
writeToFileReal_2D(String format,
int n1,
int n2,
double[] x,
String filename)
Saves elements of
x in a file filename ,
assuming that it is 2D real array. |
static void |
writeToFileReal_2D(String format,
int n1,
int n2,
float[] x,
String filename)
Saves elements of
x in a file filename ,
assuming that it is 2D real array. |
static void |
writeToFileReal_3D(String format,
int slices,
int rows,
int columns,
double[] x,
String filename)
Saves elements of
x in a file filename ,
assuming that it is 3D real array. |
static void |
writeToFileReal_3D(String format,
int n1,
int n2,
int n3,
float[] x,
String filename)
Saves elements of
x in a file filename ,
assuming that it is 3D real array. |
public static void fillMatrix_1D(int N, double[] m)
N
- sizem
- 1D matrixpublic static void fillMatrix_1D(int N, float[] m)
N
- sizem
- 1D matrixpublic static void fillMatrix_2D(int n1, int n2, double[] m)
n1
- rowsn2
- columnsm
- 2D matrixpublic static void fillMatrix_2D(int n1, int n2, float[] m)
n1
- rowsn2
- columnsm
- 2D matrixpublic static void fillMatrix_2D(int n1, int n2, double[][] m)
n1
- rowsn2
- columnsm
- 2D matrixpublic static void fillMatrix_2D(int n1, int n2, float[][] m)
n1
- rowsn2
- columnsm
- 2D matrixpublic static void fillMatrix_3D(int n1, int n2, int n3, double[] m)
n1
- slicesn2
- rowsn3
- columnsm
- 3D matrixpublic static void fillMatrix_3D(int n1, int n2, int n3, float[] m)
n1
- slicesn2
- rowsn3
- columnsm
- 3D matrixpublic static void fillMatrix_3D(int n1, int n2, int n3, double[][][] m)
n1
- slicesn2
- rowsn3
- columnsm
- 3D matrixpublic static void fillMatrix_3D(int n1, int n2, int n3, float[][][] m)
n1
- slicesn2
- rowsn3
- columnsm
- 3D matrixpublic static void showComplex_1D(String format, double[] x, String title)
x
, assuming that it is 1D complex
array. Complex data is represented by 2 double values in sequence: the
real and imaginary parts.x
- title
- public static void showComplex_2D(String format, int rows, int columns, double[] x, String title)
x
, assuming that it is 2D complex
array. Complex data is represented by 2 double values in sequence: the
real and imaginary parts.rows
- columns
- x
- title
- public static void showComplex_3D(String format, int n1, int n2, int n3, double[] x, String title)
x
, assuming that it is 3D complex
array. Complex data is represented by 2 double values in sequence: the
real and imaginary parts.n1
- n2
- n3
- x
- title
- public static void showReal_1D(String format, double[] x, String title)
x
, assuming that it is 1D real array.x
- title
- public static void showReal_2D(String format, int n1, int n2, double[] x, String title)
x
, assuming that it is 2D real array.n1
- n2
- x
- title
- public static void showReal_3D(String format, int n1, int n2, int n3, double[] x, String title)
x
, assuming that it is 3D real array.n1
- n2
- n3
- x
- title
- public static void writeToFileComplex_1D(String format, double[] x, String filename)
x
in a file filename
,
assuming that it is 1D complex array. Complex data is represented by 2
double values in sequence: the real and imaginary parts.x
- filename
- public static void writeToFileComplex_2D(String format, int n1, int n2, double[] x, String filename)
x
in a file filename
,
assuming that it is 2D complex array. Complex data is represented by 2
double values in sequence: the real and imaginary parts.n1
- n2
- x
- filename
- public static void writeToFileComplex_2D(String format, int n1, int n2, double[][] x, String filename)
x
in a file filename
. Complex
data is represented by 2 double values in sequence: the real and
imaginary parts.n1
- n2
- x
- filename
- public static void writeToFileComplex_3D(String format, int n1, int n2, int n3, double[] x, String filename)
x
in a file filename
,
assuming that it is 3D complex array. Complex data is represented by 2
double values in sequence: the real and imaginary parts.n1
- n2
- n3
- x
- filename
- public static void writeToFileComplex_3D(String format, int n1, int n2, int n3, double[][][] x, String filename)
x
in a file filename
. Complex
data is represented by 2 double values in sequence: the real and
imaginary parts.n1
- n2
- n3
- x
- filename
- public static void writeToFileReal_1D(String format, double[] x, String filename)
x
in a file filename
,
assuming that it is 2D real array.x
- filename
- public static void writeToFileReal_1D(int[] x, String filename)
x
in a file filename
,
assuming that it is 2D real array.x
- filename
- public static void writeToFileReal_2D(String format, int n1, int n2, double[] x, String filename)
x
in a file filename
,
assuming that it is 2D real array.n1
- n2
- x
- filename
- public static void writeToFileReal_2D(String format, double[][] x, String filename)
x
in a file filename
,x
- filename
- public static void writeToFileReal_2D(String format, float[][] x, String filename)
x
in a file filename
,x
- filename
- public static void writeToFileReal_3D(String format, int slices, int rows, int columns, double[] x, String filename)
x
in a file filename
,
assuming that it is 3D real array.slices
- rows
- columns
- x
- filename
- public static void writeToFileReal_1D(String format, float[] x, String filename)
x
in a file filename
,
assuming that it is 2D real array.x
- filename
- public static void writeToFileReal_2D(String format, int n1, int n2, float[] x, String filename)
x
in a file filename
,
assuming that it is 2D real array.n1
- n2
- x
- filename
- public static void writeToFileReal_3D(String format, int n1, int n2, int n3, float[] x, String filename)
x
in a file filename
,
assuming that it is 3D real array.n1
- n2
- n3
- x
- filename
- public static void writeFFTBenchmarkResultsToFile(String filename, int nthread, int niter, boolean doWarmup, boolean doScaling, int[] sizes, double[] times)
filename
- nthread
- niter
- doWarmup
- doScaling
- times
- sizes
- Jump to the Parallel Colt Homepage