class: CommonUtils
[26:21] static (extern: com.lehman.aussom.AussomCommonUtils) extends: object
Threading and configuration helpers from org.jtransforms.utils.CommonUtils. These set or read the thresholds at which JTransforms switches between single and multi-threaded paths, plus a few small power-of-two utilities.
Methods
-
getThreadsBeginN_1D_FFT_2Threads ()
Returns the threshold at which 1D FFTs switch to two threads.
- @r
Along with the threshold.
- @r
-
setThreadsBeginN_1D_FFT_2Threads (
int N)Sets the threshold at which 1D FFTs switch to two threads.
- @p
Nis the new threshold.
- @p
-
getThreadsBeginN_1D_FFT_4Threads ()
Returns the threshold at which 1D FFTs switch to four threads.
- @r
Along with the threshold.
- @r
-
setThreadsBeginN_1D_FFT_4Threads (
int N)Sets the threshold at which 1D FFTs switch to four threads.
- @p
Nis the new threshold.
- @p
-
getThreadsBeginN_2D ()
Returns the 2D transform multi-thread threshold.
- @r
Along with the threshold.
- @r
-
setThreadsBeginN_2D (
int N)Sets the 2D transform multi-thread threshold.
- @p
Nis the new threshold.
- @p
-
getThreadsBeginN_3D ()
Returns the 3D transform multi-thread threshold.
- @r
Along with the threshold.
- @r
-
setThreadsBeginN_3D (
int N)Sets the 3D transform multi-thread threshold.
- @p
Nis the new threshold.
- @p
-
resetThreadsBeginN_FFT ()
Resets all FFT thread thresholds to their defaults.
-
resetThreadsBeginN ()
Resets all transform thread thresholds to their defaults.
-
isUseLargeArrays ()
Returns whether JTransforms uses LargeArrays for storage.
- @r
Abool indicating LargeArrays usage.
- @r
-
setUseLargeArrays (
bool On)Sets whether JTransforms uses LargeArrays for storage.
- @p
Onis a bool to enable or disable LargeArray storage.
- @p
-
nextPow2 (
int X)Returns the next power of two greater than or equal to X.
- @p
Xis an int. - @r
Thenext int power of two.
- @p
-
nextPow2Long (
int X)Returns the next power of two greater than or equal to X for long values.
- @p
Xis a long. - @r
Thenext long power of two.
- @p
-
prevPow2 (
int X)Returns the previous power of two less than or equal to X.
- @p
Xis an int. - @r
Theprevious int power of two.
- @p
-
prevPow2Long (
int X)Returns the previous power of two less than or equal to X for long values.
- @p
Xis a long. - @r
Theprevious long power of two.
- @p
-
isPowerOf2 (
int X)Returns true when X is a power of two.
- @p
Xis an int. - @r
Abool with true when X is a power of two.
- @p
-
isPowerOf2Long (
int X)Returns true when X is a power of two for long values.
- @p
Xis a long. - @r
Abool with true when X is a power of two.
- @p
-
getReminder (
int N, list Factors)Computes the largest factor remainder of N divided by the supplied factors.
- @p
Nis the long value. - @p
Factorsis a list of int factors. - @r
Along with the remainder.
- @p
-
sleep (
int Millis)Sleeps for the given number of milliseconds.
- @p
Millisis a long with the sleep duration.
- @p
class: IOUtils
[168:21] static (extern: com.lehman.aussom.AussomIOUtils) extends: object
Static helpers from org.jtransforms.utils.IOUtils. Provides
RMSE computation, random matrix fillers, pretty printers, and
file writers for JTransforms data. Each JTransforms IOUtils
overload becomes its own Aussom method with a descriptive
suffix so the surface is unambiguous.
Naming convention: the suffix D denotes double precision,
F denotes float precision, Large denotes a LargeArray, and
Jagged denotes a nested-list shape.
Methods
-
computeRmseDouble (
double A, double B)Computes the RMSE between two doubles. Returns the absolute difference for scalar inputs.
- @p
Ais a double. - @p
Bis a double. - @r
Adouble with the RMSE.
- @p
-
computeRmseFloat (
double A, double B)Computes the RMSE between two single precision floats.
- @p
Ais a float represented as a number. - @p
Bis a float represented as a number. - @r
Adouble with the RMSE.
- @p
-
computeRmseListD (
list A, list B)Computes the RMSE between two double-precision lists.
- @p
Ais a list of numbers. - @p
Bis a list of numbers. - @r
Adouble with the RMSE.
- @p
-
computeRmseListF (
list A, list B)Computes the RMSE between two float-precision lists.
- @p
Ais a list of numbers. - @p
Bis a list of numbers. - @r
Adouble with the RMSE.
- @p
-
computeRmseLargeD (
object A, object B)Computes the RMSE between two DoubleLargeArrays.
- @p
Ais a DoubleLargeArray. - @p
Bis a DoubleLargeArray. - @r
Adouble with the RMSE.
- @p
-
computeRmseLargeF (
object A, object B)Computes the RMSE between two FloatLargeArrays.
- @p
Ais a FloatLargeArray. - @p
Bis a FloatLargeArray. - @r
Adouble with the RMSE.
- @p
-
computeRmse2DListD (
list A, list B)Computes the RMSE between two 2D double lists.
- @p
Ais a 2D list of numbers. - @p
Bis a 2D list of numbers. - @r
Adouble with the RMSE.
- @p
-
computeRmse2DListF (
list A, list B)Computes the RMSE between two 2D float lists.
- @p
Ais a 2D list of numbers. - @p
Bis a 2D list of numbers. - @r
Adouble with the RMSE.
- @p
-
computeRmse3DListD (
list A, list B)Computes the RMSE between two 3D double lists.
- @p
Ais a 3D list of numbers. - @p
Bis a 3D list of numbers. - @r
Adouble with the RMSE.
- @p
-
computeRmse3DListF (
list A, list B)Computes the RMSE between two 3D float lists.
- @p
Ais a 3D list of numbers. - @p
Bis a 3D list of numbers. - @r
Adouble with the RMSE.
- @p
-
fillMatrix1DD (
int N)Generates a 1D double list filled with random numbers.
- @p
Nis the long length of the matrix. - @r
Alist of doubles.
- @p
-
fillMatrix1DF (
int N)Generates a 1D float list filled with random numbers.
- @p
Nis the long length of the matrix. - @r
Alist of doubles.
- @p
-
fillMatrix1DLargeD (
int N)Generates a DoubleLargeArray filled with random numbers.
- @p
Nis the long length of the array. - @r
ADoubleLargeArray.
- @p
-
fillMatrix1DLargeF (
int N)Generates a FloatLargeArray filled with random numbers.
- @p
Nis the long length of the array. - @r
AFloatLargeArray.
- @p
-
fillMatrix2DD (
int N1, int N2)Generates a 2D-flat double list filled with random numbers.
- @p
N1is the row count. - @p
N2is the column count. - @r
Alist of doubles of length N1*N2.
- @p
-
fillMatrix2DF (
int N1, int N2)Generates a 2D-flat float list filled with random numbers.
- @p
N1is the row count. - @p
N2is the column count. - @r
Alist of doubles of length N1*N2.
- @p
-
fillMatrix2DLargeD (
int N1, int N2)Generates a flat DoubleLargeArray filled with random numbers for a 2D matrix.
- @p
N1is the row count. - @p
N2is the column count. - @r
ADoubleLargeArray of length N1*N2.
- @p
-
fillMatrix2DLargeF (
int N1, int N2)Generates a flat FloatLargeArray filled with random numbers for a 2D matrix.
- @p
N1is the row count. - @p
N2is the column count. - @r
AFloatLargeArray of length N1*N2.
- @p
-
fillMatrix2DJaggedD (
int N1, int N2)Generates a nested 2D double list filled with random numbers.
- @p
N1is the row count. - @p
N2is the column count. - @r
A2D list of doubles.
- @p
-
fillMatrix2DJaggedF (
int N1, int N2)Generates a nested 2D float list filled with random numbers.
- @p
N1is the row count. - @p
N2is the column count. - @r
A2D list of doubles.
- @p
-
fillMatrix3DD (
int N1, int N2, int N3)Generates a 3D-flat double list filled with random numbers.
- @p
N1is the slice count. - @p
N2is the row count. - @p
N3is the column count. - @r
Alist of doubles of length N1N2N3.
- @p
-
fillMatrix3DF (
int N1, int N2, int N3)Generates a 3D-flat float list filled with random numbers.
- @p
N1is the slice count. - @p
N2is the row count. - @p
N3is the column count. - @r
Alist of doubles of length N1N2N3.
- @p
-
fillMatrix3DLargeD (
int N1, int N2, int N3)Generates a flat DoubleLargeArray filled with random numbers for a 3D matrix.
- @p
N1is the slice count. - @p
N2is the row count. - @p
N3is the column count. - @r
ADoubleLargeArray of length N1N2N3.
- @p
-
fillMatrix3DLargeF (
int N1, int N2, int N3)Generates a flat FloatLargeArray filled with random numbers for a 3D matrix.
- @p
N1is the slice count. - @p
N2is the row count. - @p
N3is the column count. - @r
AFloatLargeArray of length N1N2N3.
- @p
-
fillMatrix3DJaggedD (
int N1, int N2, int N3)Generates a nested 3D double list filled with random numbers.
- @p
N1is the slice count. - @p
N2is the row count. - @p
N3is the column count. - @r
A3D list of doubles.
- @p
-
fillMatrix3DJaggedF (
int N1, int N2, int N3)Generates a nested 3D float list filled with random numbers.
- @p
N1is the slice count. - @p
N2is the row count. - @p
N3is the column count. - @r
A3D list of doubles.
- @p
-
showComplex1D (
list A, string Title)Returns a string-formatted view of a 1D complex array.
- @p
Ais a list of doubles in interleaved real/imaginary order. - @p
Titleis the title string. - @r
Aformatted string.
- @p
-
showComplex2D (
int Rows, int Columns, list A, string Title)Returns a string-formatted view of a 2D complex matrix stored row-major in a flat list.
- @p
Rowsis the row count. - @p
Columnsis the column count. - @p
Ais the flat data list. - @p
Titleis the title string. - @r
Aformatted string.
- @p
-
showComplex2DJagged (
list A, string Title)Returns a string-formatted view of a 2D complex matrix stored as a nested list.
- @p
Ais the 2D nested list. - @p
Titleis the title string. - @r
Aformatted string.
- @p
-
showComplex3D (
int N1, int N2, int N3, list A, string Title)Returns a string-formatted view of a 3D complex matrix stored slice-row-major in a flat list.
- @p
N1is the slice count. - @p
N2is the row count. - @p
N3is the column count. - @p
Ais the flat data list. - @p
Titleis the title string. - @r
Aformatted string.
- @p
-
showComplex3DJagged (
list A, string Title)Returns a string-formatted view of a 3D complex matrix stored as a nested list.
- @p
Ais the 3D nested list. - @p
Titleis the title string. - @r
Aformatted string.
- @p
-
showComplex3DFloat (
int N1, int N2, int N3, list A, string Title)Returns a string-formatted view of a 3D complex float matrix stored slice-row-major in a flat list.
- @p
N1is the slice count. - @p
N2is the row count. - @p
N3is the column count. - @p
Ais the flat data list. - @p
Titleis the title string. - @r
Aformatted string.
- @p
-
showReal1D (
list A, string Title)Returns a string-formatted view of a 1D real array.
- @p
Ais the data list. - @p
Titleis the title string. - @r
Aformatted string.
- @p
-
showReal2D (
int N1, int N2, list A, string Title)Returns a string-formatted view of a 2D real matrix stored row-major in a flat list.
- @p
N1is the row count. - @p
N2is the column count. - @p
Ais the flat data list. - @p
Titleis the title string. - @r
Aformatted string.
- @p
-
showReal3D (
int N1, int N2, int N3, list A, string Title)Returns a string-formatted view of a 3D real matrix stored slice-row-major in a flat list.
- @p
N1is the slice count. - @p
N2is the row count. - @p
N3is the column count. - @p
Ais the flat data list. - @p
Titleis the title string. - @r
Aformatted string.
- @p
-
showReal3DJagged (
list A, string Title)Returns a string-formatted view of a 3D real matrix stored as a nested list.
- @p
Ais the 3D nested list. - @p
Titleis the title string. - @r
Aformatted string.
- @p
-
writeToFileComplex1D (
list A, string Path)Writes a 1D complex double array to a file.
- @p
Ais the data list. - @p
Pathis the output file path.
- @p
-
writeToFileComplex1DFloat (
list A, string Path)Writes a 1D complex float array to a file.
- @p
Ais the data list. - @p
Pathis the output file path.
- @p
-
writeToFileComplex2D (
int N1, int N2, list A, string Path)Writes a 2D complex double matrix to a file.
- @p
N1is the row count. - @p
N2is the column count. - @p
Ais the flat data list. - @p
Pathis the output file path.
- @p
-
writeToFileComplex2DFloat (
int N1, int N2, list A, string Path)Writes a 2D complex float matrix to a file.
- @p
N1is the row count. - @p
N2is the column count. - @p
Ais the flat data list. - @p
Pathis the output file path.
- @p
-
writeToFileComplex2DJagged (
list A, string Path)Writes a 2D complex double matrix stored as a nested list to a file.
- @p
Ais the 2D nested list. - @p
Pathis the output file path.
- @p
-
writeToFileComplex3D (
int N1, int N2, int N3, list A, string Path)Writes a 3D complex double matrix to a file.
- @p
N1is the slice count. - @p
N2is the row count. - @p
N3is the column count. - @p
Ais the flat data list. - @p
Pathis the output file path.
- @p
-
writeToFileComplex3DJagged (
list A, string Path)Writes a 3D complex double matrix stored as a nested list to a file.
- @p
Ais the 3D nested list. - @p
Pathis the output file path.
- @p
-
writeToFileReal1D (
list A, string Path)Writes a 1D real double array to a file.
- @p
Ais the data list. - @p
Pathis the output file path.
- @p
-
writeToFileReal1DFloat (
list A, string Path)Writes a 1D real float array to a file.
- @p
Ais the data list. - @p
Pathis the output file path.
- @p
-
writeToFileReal2D (
int N1, int N2, list A, string Path)Writes a 2D real double matrix to a file.
- @p
N1is the row count. - @p
N2is the column count. - @p
Ais the flat data list. - @p
Pathis the output file path.
- @p
-
writeToFileReal2DFloat (
int N1, int N2, list A, string Path)Writes a 2D real float matrix to a file.
- @p
N1is the row count. - @p
N2is the column count. - @p
Ais the flat data list. - @p
Pathis the output file path.
- @p
-
writeToFileReal3D (
int N1, int N2, int N3, list A, string Path)Writes a 3D real double matrix to a file.
- @p
N1is the slice count. - @p
N2is the row count. - @p
N3is the column count. - @p
Ais the flat data list. - @p
Pathis the output file path.
- @p