Class AbstractMatrix

  • All Implemented Interfaces:
    Matrix, java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    MatrixD

    public abstract class AbstractMatrix
    extends java.lang.Object
    implements Matrix
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int m  
      protected int n  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractMatrix()  
    • Field Detail

      • m

        protected int m
      • n

        protected int n
    • Constructor Detail

      • AbstractMatrix

        public AbstractMatrix()
    • Method Detail

      • getColumnDimension

        public int getColumnDimension()
        Get column dimension.
        Specified by:
        getColumnDimension in interface Matrix
        Returns:
        n, the number of columns.
      • getRowDimension

        public int getRowDimension()
        Get row dimension
        Specified by:
        getRowDimension in interface Matrix
        Returns:
        m, the number of rows.
      • norm1

        public double norm1()
        One norm
        Returns:
        maximum column sum.
      • norm2

        public double norm2()
        Two norm
        Returns:
        maximum singular value.
      • normF

        public double normF()
        Frobenius norm
        Returns:
        sqrt of sum of squares of all elements.
      • normInf

        public double normInf()
        Infinity norm
        Returns:
        maximum row sum.