Package PamUtils
Class MatrixOps
java.lang.Object
PamUtils.MatrixOps
Matrix operations for arrays of Complex data
 Really need to write these for ComplexArray rather than Complex[] since
 it's a lot faster. 
 Widely used in the DIFAR module.
- Author:
 - dg50
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanapplyMask(double[] ary, double[] windowFunction) static booleanstatic booleancheckRectangular(double[][] a) static booleancheckRectangular(Complex[][] a) Check the array is rectangular, => all sub arrays are same length.static Complex[][]complexMatrixCross(Complex[][] a, Complex[][] b) static BufferedImagecreateImage(double[][] surfaceData, ColourArray colorArray, boolean logScale, double intensityScaleFactor) static Complexdet33Matrix(Complex[][] A) static ComplexdetNnMatrix(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 voidprintMatrix(Complex[][] a) debug tool
print a complex matrix (with no null entries) to std outstatic Complexstatic 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)  
 -