Class SuanShuIntegration.AbstractMatrix

java.lang.Object
io.deephaven.numerics.suanshu.SuanShuIntegration.AbstractMatrix
All Implemented Interfaces:
com.numericalmethod.suanshu.datastructure.Table, com.numericalmethod.suanshu.DeepCopyable, com.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>, com.numericalmethod.suanshu.mathstructure.Monoid<com.numericalmethod.suanshu.matrix.doubles.Matrix>, com.numericalmethod.suanshu.mathstructure.Ring<com.numericalmethod.suanshu.matrix.doubles.Matrix>, com.numericalmethod.suanshu.matrix.doubles.Matrix, com.numericalmethod.suanshu.matrix.doubles.MatrixAccess, com.numericalmethod.suanshu.matrix.doubles.MatrixRing, com.numericalmethod.suanshu.matrix.doubles.MatrixTable, Serializable
Enclosing class:
SuanShuIntegration

public abstract static class SuanShuIntegration.AbstractMatrix extends Object implements com.numericalmethod.suanshu.matrix.doubles.Matrix, Serializable
The abstract implementation of Matrix.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.numericalmethod.suanshu.matrix.doubles.Matrix
    add(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)
     
    com.numericalmethod.suanshu.matrix.doubles.Matrix
     
    abstract double
    get(int row, int column)
    Gets the value at rowth indexed row (1-based) and columnth indexed (1-based) column from matrix.
    abstract com.numericalmethod.suanshu.vector.doubles.Vector
    getColumn(int column)
    Gets the columnth indexed (1-based) column-vector from matrix.
    abstract com.numericalmethod.suanshu.vector.doubles.Vector
    getRow(int row)
    Gets the rowth indexed (1-based) row-vector from matrix.
    com.numericalmethod.suanshu.matrix.doubles.Matrix
    minus(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)
     
    com.numericalmethod.suanshu.matrix.doubles.Matrix
    multiply(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)
     
    com.numericalmethod.suanshu.vector.doubles.Vector
    multiply(com.numericalmethod.suanshu.vector.doubles.Vector vector)
     
    com.numericalmethod.suanshu.matrix.doubles.Matrix
    ONE()
     
    com.numericalmethod.suanshu.matrix.doubles.Matrix
     
    com.numericalmethod.suanshu.matrix.doubles.Matrix
    scaled(double v)
     
    void
    set(int row, int column, double value)
     
    Returns the String representation of whole Matrix
    com.numericalmethod.suanshu.matrix.doubles.Matrix
    t()
     
    Returns the compact String representation of Matrix.
    com.numericalmethod.suanshu.matrix.doubles.Matrix
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.numericalmethod.suanshu.datastructure.Table

    nCols, nRows
  • Constructor Details

    • AbstractMatrix

      public AbstractMatrix()
  • Method Details

    • multiply

      public com.numericalmethod.suanshu.vector.doubles.Vector multiply(com.numericalmethod.suanshu.vector.doubles.Vector vector)
      Specified by:
      multiply in interface com.numericalmethod.suanshu.matrix.doubles.Matrix
    • getRow

      public abstract com.numericalmethod.suanshu.vector.doubles.Vector getRow(int row) throws com.numericalmethod.suanshu.matrix.MatrixAccessException
      Gets the rowth indexed (1-based) row-vector from matrix.
      Specified by:
      getRow in interface com.numericalmethod.suanshu.matrix.doubles.Matrix
      Parameters:
      row - 1-based index
      Returns:
      vector at rowth indexed (1-based)
      Throws:
      com.numericalmethod.suanshu.matrix.MatrixAccessException
    • getColumn

      public abstract com.numericalmethod.suanshu.vector.doubles.Vector getColumn(int column) throws com.numericalmethod.suanshu.matrix.MatrixAccessException
      Gets the columnth indexed (1-based) column-vector from matrix.
      Specified by:
      getColumn in interface com.numericalmethod.suanshu.matrix.doubles.Matrix
      Parameters:
      column - 1-based index
      Returns:
      vector at columnth indexed (1-based)
      Throws:
      com.numericalmethod.suanshu.matrix.MatrixAccessException
    • get

      public abstract double get(int row, int column) throws com.numericalmethod.suanshu.matrix.MatrixAccessException
      Gets the value at rowth indexed row (1-based) and columnth indexed (1-based) column from matrix.
      Specified by:
      get in interface com.numericalmethod.suanshu.matrix.doubles.MatrixAccess
      Parameters:
      row - 1-based row-index
      column - 1-based column-index
      Returns:
      value at rowth indexed row (1-based) and columnth indexed (1-based) column
      Throws:
      com.numericalmethod.suanshu.matrix.MatrixAccessException
    • scaled

      public com.numericalmethod.suanshu.matrix.doubles.Matrix scaled(double v)
      Specified by:
      scaled in interface com.numericalmethod.suanshu.matrix.doubles.Matrix
    • deepCopy

      public com.numericalmethod.suanshu.matrix.doubles.Matrix deepCopy()
      Specified by:
      deepCopy in interface com.numericalmethod.suanshu.DeepCopyable
      Specified by:
      deepCopy in interface com.numericalmethod.suanshu.matrix.doubles.Matrix
    • set

      public void set(int row, int column, double value) throws com.numericalmethod.suanshu.matrix.MatrixAccessException
      Specified by:
      set in interface com.numericalmethod.suanshu.matrix.doubles.MatrixAccess
      Throws:
      com.numericalmethod.suanshu.matrix.MatrixAccessException
    • t

      public com.numericalmethod.suanshu.matrix.doubles.Matrix t()
      Specified by:
      t in interface com.numericalmethod.suanshu.matrix.doubles.MatrixRing
    • add

      public com.numericalmethod.suanshu.matrix.doubles.Matrix add(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)
      Specified by:
      add in interface com.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>
      Specified by:
      add in interface com.numericalmethod.suanshu.matrix.doubles.MatrixRing
    • minus

      public com.numericalmethod.suanshu.matrix.doubles.Matrix minus(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)
      Specified by:
      minus in interface com.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>
      Specified by:
      minus in interface com.numericalmethod.suanshu.matrix.doubles.MatrixRing
    • multiply

      public com.numericalmethod.suanshu.matrix.doubles.Matrix multiply(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)
      Specified by:
      multiply in interface com.numericalmethod.suanshu.matrix.doubles.MatrixRing
      Specified by:
      multiply in interface com.numericalmethod.suanshu.mathstructure.Monoid<com.numericalmethod.suanshu.matrix.doubles.Matrix>
    • opposite

      public com.numericalmethod.suanshu.matrix.doubles.Matrix opposite()
      Specified by:
      opposite in interface com.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>
      Specified by:
      opposite in interface com.numericalmethod.suanshu.matrix.doubles.MatrixRing
    • ZERO

      public com.numericalmethod.suanshu.matrix.doubles.Matrix ZERO()
      Specified by:
      ZERO in interface com.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>
      Specified by:
      ZERO in interface com.numericalmethod.suanshu.matrix.doubles.MatrixRing
    • ONE

      public com.numericalmethod.suanshu.matrix.doubles.Matrix ONE()
      Specified by:
      ONE in interface com.numericalmethod.suanshu.matrix.doubles.MatrixRing
      Specified by:
      ONE in interface com.numericalmethod.suanshu.mathstructure.Monoid<com.numericalmethod.suanshu.matrix.doubles.Matrix>
    • toString

      public String toString()
      Returns the compact String representation of Matrix. If you want to have String representation of the whole Matrix, please use show() method.
      Overrides:
      toString in class Object
      Returns:
      Compact string representation of Matrix
    • show

      public String show()
      Returns the String representation of whole Matrix
      Returns:
      String representation of Matrix