Interface BigMatrix

  • All Superinterfaces:
    AnyMatrix
    All Known Implementing Classes:
    BigMatrixImpl

    @Deprecated
    public interface BigMatrix
    extends AnyMatrix
    Deprecated.
    as of 2.0, replaced by FieldMatrix with a BigReal parameter
    Interface defining a real-valued matrix with basic algebraic operations, using BigDecimal representations for the entries.

    Matrix element indexing is 0-based -- e.g., getEntry(0, 0) returns the element in the first row, first column of the matrix.

    • Method Detail

      • copy

        BigMatrix copy()
        Deprecated.
        Returns a (deep) copy of this.
        Returns:
        matrix copy
      • scalarAdd

        BigMatrix scalarAdd​(BigDecimal d)
        Deprecated.
        Returns the result of adding d to each entry of this.
        Parameters:
        d - value to be added to each entry
        Returns:
        d + this
      • scalarMultiply

        BigMatrix scalarMultiply​(BigDecimal d)
        Deprecated.
        Returns the result multiplying each entry of this by d.
        Parameters:
        d - value to multiply all entries by
        Returns:
        d * this
      • getData

        BigDecimal[][] getData()
        Deprecated.
        Returns matrix entries as a two-dimensional array.
        Returns:
        2-dimensional array of entries
      • getDataAsDoubleArray

        double[][] getDataAsDoubleArray()
        Deprecated.
        Returns matrix entries as a two-dimensional array.
        Returns:
        2-dimensional array of entries
      • getRoundingMode

        int getRoundingMode()
        Deprecated.
        Gets the rounding mode
        Returns:
        the rounding mode
      • getSubMatrix

        BigMatrix getSubMatrix​(int startRow,
                               int endRow,
                               int startColumn,
                               int endColumn)
                        throws MatrixIndexException
        Deprecated.
        Gets a submatrix. Rows and columns are indicated counting from 0 to n-1.
        Parameters:
        startRow - Initial row index
        endRow - Final row index
        startColumn - Initial column index
        endColumn - Final column index
        Returns:
        The subMatrix containing the data of the specified rows and columns
        Throws:
        MatrixIndexException - if the indices are not valid
      • getSubMatrix

        BigMatrix getSubMatrix​(int[] selectedRows,
                               int[] selectedColumns)
                        throws MatrixIndexException
        Deprecated.
        Gets a submatrix. Rows and columns are indicated counting from 0 to n-1.
        Parameters:
        selectedRows - Array of row indices.
        selectedColumns - Array of column indices.
        Returns:
        The subMatrix containing the data in the specified rows and columns
        Throws:
        MatrixIndexException - if row or column selections are not valid
      • getRowMatrix

        BigMatrix getRowMatrix​(int row)
                        throws MatrixIndexException
        Deprecated.
        Returns the entries in row number row as a row matrix. Row indices start at 0.
        Parameters:
        row - the row to be fetched
        Returns:
        row matrix
        Throws:
        MatrixIndexException - if the specified row index is invalid
      • getColumnMatrix

        BigMatrix getColumnMatrix​(int column)
                           throws MatrixIndexException
        Deprecated.
        Returns the entries in column number column as a column matrix. Column indices start at 0.
        Parameters:
        column - the column to be fetched
        Returns:
        column matrix
        Throws:
        MatrixIndexException - if the specified column index is invalid
      • getRow

        BigDecimal[] getRow​(int row)
                     throws MatrixIndexException
        Deprecated.
        Returns the entries in row number row as an array.

        Row indices start at 0. A MatrixIndexException is thrown unless 0 <= row < rowDimension.

        Parameters:
        row - the row to be fetched
        Returns:
        array of entries in the row
        Throws:
        MatrixIndexException - if the specified row index is not valid
      • getRowAsDoubleArray

        double[] getRowAsDoubleArray​(int row)
                              throws MatrixIndexException
        Deprecated.
        Returns the entries in row number row as an array of double values.

        Row indices start at 0. A MatrixIndexException is thrown unless 0 <= row < rowDimension.

        Parameters:
        row - the row to be fetched
        Returns:
        array of entries in the row
        Throws:
        MatrixIndexException - if the specified row index is not valid
      • getColumn

        BigDecimal[] getColumn​(int col)
                        throws MatrixIndexException
        Deprecated.
        Returns the entries in column number col as an array.

        Column indices start at 0. A MatrixIndexException is thrown unless 0 <= column < columnDimension.

        Parameters:
        col - the column to be fetched
        Returns:
        array of entries in the column
        Throws:
        MatrixIndexException - if the specified column index is not valid
      • getColumnAsDoubleArray

        double[] getColumnAsDoubleArray​(int col)
                                 throws MatrixIndexException
        Deprecated.
        Returns the entries in column number col as an array of double values.

        Column indices start at 0. A MatrixIndexException is thrown unless 0 <= column < columnDimension.

        Parameters:
        col - the column to be fetched
        Returns:
        array of entries in the column
        Throws:
        MatrixIndexException - if the specified column index is not valid
      • getEntry

        BigDecimal getEntry​(int row,
                            int column)
                     throws MatrixIndexException
        Deprecated.
        Returns the entry in the specified row and column.

        Row and column indices start at 0 and must satisfy

        • 0 <= row < rowDimension
        • 0 <= column < columnDimension
        otherwise a MatrixIndexException is thrown.

        Parameters:
        row - row location of entry to be fetched
        column - column location of entry to be fetched
        Returns:
        matrix entry in row,column
        Throws:
        MatrixIndexException - if the row or column index is not valid
      • getEntryAsDouble

        double getEntryAsDouble​(int row,
                                int column)
                         throws MatrixIndexException
        Deprecated.
        Returns the entry in the specified row and column as a double.

        Row and column indices start at 0 and must satisfy

        • 0 <= row < rowDimension
        • 0 <= column < columnDimension
        otherwise a MatrixIndexException is thrown.

        Parameters:
        row - row location of entry to be fetched
        column - column location of entry to be fetched
        Returns:
        matrix entry in row,column
        Throws:
        MatrixIndexException - if the row or column index is not valid
      • transpose

        BigMatrix transpose()
        Deprecated.
        Returns the transpose of this matrix.
        Returns:
        transpose matrix
      • getTrace

        BigDecimal getTrace()
        Deprecated.
        Returns the trace of the matrix (the sum of the elements on the main diagonal).
        Returns:
        trace