Package org.ejml.ops

Class MatrixFeatures

java.lang.Object
org.ejml.ops.MatrixFeatures

public class MatrixFeatures extends Object
Determines which features a matrix has that do not rely on inner data type
  • Constructor Details

    • MatrixFeatures

      public MatrixFeatures()
  • Method Details

    • isVector

      public static boolean isVector(Matrix mat)
      Checks to see if the matrix is a vector or not.
      Parameters:
      mat - A matrix. Not modified.
      Returns:
      True if it is a vector and false if it is not.
    • isSquare

      public static boolean isSquare(Matrix mat)
      Checks to see if it is a square matrix. A square matrix has the same number of rows and columns.
      Parameters:
      mat - A matrix. Not modified.
      Returns:
      True if it is a square matrix and false if it is not.