Package io.deephaven.numerics.suanshu
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
-
Method Summary
Modifier and TypeMethodDescriptioncom.numericalmethod.suanshu.matrix.doubles.Matrix
add
(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix) com.numericalmethod.suanshu.matrix.doubles.Matrix
deepCopy()
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
opposite()
com.numericalmethod.suanshu.matrix.doubles.Matrix
scaled
(double v) void
set
(int row, int column, double value) show()
Returns theString
representation of wholeMatrix
com.numericalmethod.suanshu.matrix.doubles.Matrix
t()
toString()
Returns the compactString
representation ofMatrix
.com.numericalmethod.suanshu.matrix.doubles.Matrix
ZERO()
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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixAccess
- Parameters:
row
- 1-based row-indexcolumn
- 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 interfacecom.numericalmethod.suanshu.matrix.doubles.Matrix
-
deepCopy
public com.numericalmethod.suanshu.matrix.doubles.Matrix deepCopy()- Specified by:
deepCopy
in interfacecom.numericalmethod.suanshu.DeepCopyable
- Specified by:
deepCopy
in interfacecom.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 interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixAccess
- Throws:
com.numericalmethod.suanshu.matrix.MatrixAccessException
-
t
public com.numericalmethod.suanshu.matrix.doubles.Matrix t()- Specified by:
t
in interfacecom.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 interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>
- Specified by:
add
in interfacecom.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 interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>
- Specified by:
minus
in interfacecom.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 interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixRing
- Specified by:
multiply
in interfacecom.numericalmethod.suanshu.mathstructure.Monoid<com.numericalmethod.suanshu.matrix.doubles.Matrix>
-
opposite
public com.numericalmethod.suanshu.matrix.doubles.Matrix opposite()- Specified by:
opposite
in interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>
- Specified by:
opposite
in interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixRing
-
ZERO
public com.numericalmethod.suanshu.matrix.doubles.Matrix ZERO()- Specified by:
ZERO
in interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>
- Specified by:
ZERO
in interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixRing
-
ONE
public com.numericalmethod.suanshu.matrix.doubles.Matrix ONE()- Specified by:
ONE
in interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixRing
- Specified by:
ONE
in interfacecom.numericalmethod.suanshu.mathstructure.Monoid<com.numericalmethod.suanshu.matrix.doubles.Matrix>
-
toString
Returns the compactString
representation ofMatrix
. If you want to have String representation of the wholeMatrix
, please useshow()
method. -
show
Returns theString
representation of wholeMatrix
- Returns:
- String representation of
Matrix
-