Interface Matrix

  • All Superinterfaces:
    java.lang.Cloneable, java.io.Serializable
    All Known Implementing Classes:
    AbstractMatrix, MatrixD

    public interface Matrix
    extends java.lang.Cloneable, java.io.Serializable
    • Method Detail

      • checkMatrixDimensions

        void checkMatrixDimensions​(Matrix B)
      • copy

        Matrix copy()
        Returns:
        copy of matrix
      • get

        double get​(int i,
                   int j)
        Parameters:
        i - row index
        j - column index
        Returns:
        value of matrix element
      • getColumnDimension

        int getColumnDimension()
        Get column dimension.
        Returns:
        n, the number of columns.
      • getRowDimension

        int getRowDimension()
        Get row dimension
        Returns:
        m, the number of rows.
      • set

        void set​(int i,
                 int j,
                 double val)
        Parameters:
        i - row index
        j - column index
        val - new value