Package jline.lib.fjcodes
Class FJUtils
java.lang.Object
jline.lib.fjcodes.FJUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Matrixbuild_index(int m, int cr) Build combinatorial index patterns.static double[]getRowAsArray(Matrix matrix, int row) Extract a row from a Matrix as a double[].static MatrixCompute Kronecker sum of two matrices.static voidsetSubMatrix(Matrix target, int startRow, int startCol, Matrix source) Copy a submatrix into a target matrix at specified position.static intFind the row index in a matrix that matches a given row vector.
-
Method Details
-
kronsum
Compute Kronecker sum of two matrices. Returns: A (+) B = A (x) I + I (x) B -
vectmatch
Find the row index in a matrix that matches a given row vector. Returns 1-based index (MATLAB convention) or -1 if not found. -
build_index
Build combinatorial index patterns. -
getRowAsArray
Extract a row from a Matrix as a double[]. -
setSubMatrix
Copy a submatrix into a target matrix at specified position.
-