|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.jtransforms.IOUtils
public class IOUtils
I/O utilities.
Method Summary | |
---|---|
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(double[] x,
java.lang.String title)
Displays elements of x , assuming that it is 1D complex
array. |
static void |
showComplex_2D(int rows,
int columns,
double[] x,
java.lang.String title)
Displays elements of x , assuming that it is 2D complex
array. |
static void |
showComplex_3D(int n1,
int n2,
int n3,
double[][][] x,
java.lang.String title)
Displays elements of x . |
static void |
showComplex_3D(int n1,
int n2,
int n3,
double[] x,
java.lang.String title)
Displays elements of x , assuming that it is 3D complex
array. |
static void |
showComplex_3D(int n1,
int n2,
int n3,
float[] x,
java.lang.String title)
Displays elements of x , assuming that it is 3D complex
array. |
static void |
showReal_1D(double[] x,
java.lang.String title)
Displays elements of x , assuming that it is 1D real array. |
static void |
showReal_2D(int n1,
int n2,
double[] x,
java.lang.String title)
Displays elements of x , assuming that it is 2D real array. |
static void |
showReal_3D(int n1,
int n2,
int n3,
double[][][] x,
java.lang.String title)
Displays elements of x . |
static void |
showReal_3D(int n1,
int n2,
int n3,
double[] x,
java.lang.String title)
Displays elements of x , assuming that it is 3D real array. |
static void |
writeFFTBenchmarkResultsToFile(java.lang.String filename,
int nthread,
int niter,
boolean doWarmup,
boolean doScaling,
int[] sizes,
double[] times)
Saves benchmark results in a file. |
static void |
writeToFileComplex_1D(double[] x,
java.lang.String filename)
Saves elements of x in a file filename ,
assuming that it is 1D complex array. |
static void |
writeToFileComplex_1D(float[] x,
java.lang.String filename)
Saves elements of x in a file filename ,
assuming that it is 1D complex array. |
static void |
writeToFileComplex_2D(int n1,
int n2,
double[][] x,
java.lang.String filename)
Saves elements of x in a file filename . |
static void |
writeToFileComplex_2D(int n1,
int n2,
double[] x,
java.lang.String filename)
Saves elements of x in a file filename ,
assuming that it is 2D complex array. |
static void |
writeToFileComplex_2D(int n1,
int n2,
float[] x,
java.lang.String filename)
Saves elements of x in a file filename ,
assuming that it is 2D complex array. |
static void |
writeToFileComplex_3D(int n1,
int n2,
int n3,
double[][][] x,
java.lang.String filename)
Saves elements of x in a file filename . |
static void |
writeToFileComplex_3D(int n1,
int n2,
int n3,
double[] x,
java.lang.String filename)
Saves elements of x in a file filename ,
assuming that it is 3D complex array. |
static void |
writeToFileReal_1D(double[] x,
java.lang.String filename)
Saves elements of x in a file filename ,
assuming that it is 2D real array. |
static void |
writeToFileReal_1D(float[] x,
java.lang.String filename)
Saves elements of x in a file filename ,
assuming that it is 2D real array. |
static void |
writeToFileReal_2D(int n1,
int n2,
double[] x,
java.lang.String filename)
Saves elements of x in a file filename ,
assuming that it is 2D real array. |
static void |
writeToFileReal_2D(int n1,
int n2,
float[] x,
java.lang.String filename)
Saves elements of x in a file filename ,
assuming that it is 2D real array. |
static void |
writeToFileReal_3D(int n1,
int n2,
int n3,
double[] x,
java.lang.String filename)
Saves elements of x in a file filename ,
assuming that it is 3D real array. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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(double[] x, java.lang.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(int rows, int columns, double[] x, java.lang.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(int n1, int n2, int n3, double[] x, java.lang.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 showComplex_3D(int n1, int n2, int n3, double[][][] x, java.lang.String title)
x
. Complex data is represented by 2
double values in sequence: the real and imaginary parts.
n1
- n2
- n3
- x
- title
- public static void showComplex_3D(int n1, int n2, int n3, float[] x, java.lang.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(double[] x, java.lang.String title)
x
, assuming that it is 1D real array.
x
- title
- public static void showReal_2D(int n1, int n2, double[] x, java.lang.String title)
x
, assuming that it is 2D real array.
n1
- n2
- x
- title
- public static void showReal_3D(int n1, int n2, int n3, double[] x, java.lang.String title)
x
, assuming that it is 3D real array.
n1
- n2
- n3
- x
- title
- public static void showReal_3D(int n1, int n2, int n3, double[][][] x, java.lang.String title)
x
.
n1
- n2
- n3
- x
- title
- public static void writeToFileComplex_1D(double[] x, java.lang.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_1D(float[] x, java.lang.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(int n1, int n2, double[] x, java.lang.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(int n1, int n2, float[] x, java.lang.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(int n1, int n2, double[][] x, java.lang.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(int n1, int n2, int n3, double[] x, java.lang.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(int n1, int n2, int n3, double[][][] x, java.lang.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(double[] x, java.lang.String filename)
x
in a file filename
,
assuming that it is 2D real array.
x
- filename
- public static void writeToFileReal_1D(float[] x, java.lang.String filename)
x
in a file filename
,
assuming that it is 2D real array.
x
- filename
- public static void writeToFileReal_2D(int n1, int n2, double[] x, java.lang.String filename)
x
in a file filename
,
assuming that it is 2D real array.
n1
- n2
- x
- filename
- public static void writeToFileReal_2D(int n1, int n2, float[] x, java.lang.String filename)
x
in a file filename
,
assuming that it is 2D real array.
n1
- n2
- x
- filename
- public static void writeToFileReal_3D(int n1, int n2, int n3, double[] x, java.lang.String filename)
x
in a file filename
,
assuming that it is 3D real array.
n1
- n2
- n3
- x
- filename
- public static void writeFFTBenchmarkResultsToFile(java.lang.String filename, int nthread, int niter, boolean doWarmup, boolean doScaling, int[] sizes, double[] times)
filename
- nthread
- niter
- doWarmup
- doScaling
- times
- sizes
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |