Class IdentityMatrix


  • public class IdentityMatrix
    extends SquareMatrix
    From: Java Number Cruncher The Java Programmer's Guide to Numerical Computation by Ronald Mak
    • Constructor Detail

      • IdentityMatrix

        public IdentityMatrix​(int n)
        Constructor.
        Parameters:
        n - the number of rows == the number of columns
    • Method Detail

      • convert

        public static void convert​(SquareMatrix sm)
        Convert a square matrix into an identity matrix.
        Parameters:
        sm - the square matrix to convert