Class FJUtils

java.lang.Object
jline.lib.fjcodes.FJUtils

public final class FJUtils extends Object
  • Method Details

    • kronsum

      public static Matrix kronsum(Matrix A, Matrix B)
      Compute Kronecker sum of two matrices. Returns: A (+) B = A (x) I + I (x) B
    • vectmatch

      public static int vectmatch(double[] row, Matrix matrix)
      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

      public static Matrix build_index(int m, int cr)
      Build combinatorial index patterns.
    • getRowAsArray

      public static double[] getRowAsArray(Matrix matrix, int row)
      Extract a row from a Matrix as a double[].
    • setSubMatrix

      public static void setSubMatrix(Matrix target, int startRow, int startCol, Matrix source)
      Copy a submatrix into a target matrix at specified position.