Package PamUtils
Class MatrixOps
java.lang.Object
PamUtils.MatrixOps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
applyMask
(double[] ary, double[] windowFunction) static boolean
static boolean
checkRectangular
(double[][] a) static boolean
checkRectangular
(Complex[][] a) Check the array is rectangular, => all sub arrays are same length.static Complex[][]
complexMatrixCross
(Complex[][] a, Complex[][] b) static BufferedImage
createImage
(double[][] surfaceData, ColourArray colorArray, boolean logScale, double intensityScaleFactor) static Complex
det33Matrix
(Complex[][] A) static Complex
detNnMatrix
(Complex[][] A) static double[][]
getAbsMatrix
(double[][] matrix) Make a new matrix with abs values of the original.static double[][]
getRealMatrix
(Complex[][] a) static Complex[][]
inverse33Matrix
(Complex[][] A) static Complex[][]
inverseNnMatrix
(Complex[][] A) static void
printMatrix
(Complex[][] a) debug tool
print a complex matrix (with no null entries) to std outstatic Complex
static Complex[][]
scalarMultMatrix
(Complex[][] a, Complex scalar) static Complex[][]
transposeMatrix
(Complex[][] a)
-
Constructor Details
-
MatrixOps
public MatrixOps()
-
-
Method Details
-
checkRectangular
Check the array is rectangular, => all sub arrays are same length.- Parameters:
a
- A 2D Complex Array- Returns:
- false if null,
true if 0-length or is rectangular
-
complexMatrixCross
-
transposeMatrix
-
scalarMultMatrix
-
printMatrix
debug tool
print a complex matrix (with no null entries) to std out- Parameters:
a
-
-
getRealMatrix
- Parameters:
a
- Complex 2D array- Returns:
- the real parts in a double 2d array
-
det33Matrix
- Returns:
- determinant
-
detNnMatrix
-
inverse33Matrix
-
inverseNnMatrix
-
recipComp
-
getAbsMatrix
public static double[][] getAbsMatrix(double[][] matrix) Make a new matrix with abs values of the original.- Parameters:
matrix
-- Returns:
-
createImage
public static BufferedImage createImage(double[][] surfaceData, ColourArray colorArray, boolean logScale, double intensityScaleFactor) -
checkRectangular
public static boolean checkRectangular(double[][] a) -
applyMask
-
applyMask
public static boolean applyMask(double[] ary, double[] windowFunction)
-