Package com.illumon.numerics.suanshu
Class SuanShuIntegration.AbstractMatrix
java.lang.Object
com.illumon.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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description AbstractMatrix() -
Method Summary
Modifier and Type Method Description com.numericalmethod.suanshu.matrix.doubles.Matrixadd(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)com.numericalmethod.suanshu.matrix.doubles.MatrixdeepCopy()abstract doubleget(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.VectorgetColumn(int column)Gets the columnth indexed (1-based) column-vector from matrix.abstract com.numericalmethod.suanshu.vector.doubles.VectorgetRow(int row)Gets the rowth indexed (1-based) row-vector from matrix.com.numericalmethod.suanshu.matrix.doubles.Matrixminus(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)com.numericalmethod.suanshu.matrix.doubles.Matrixmultiply(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)com.numericalmethod.suanshu.vector.doubles.Vectormultiply(com.numericalmethod.suanshu.vector.doubles.Vector vector)com.numericalmethod.suanshu.matrix.doubles.MatrixONE()com.numericalmethod.suanshu.matrix.doubles.Matrixopposite()com.numericalmethod.suanshu.matrix.doubles.Matrixscaled(double v)voidset(int row, int column, double value)Stringshow()Returns theStringrepresentation of wholeMatrixcom.numericalmethod.suanshu.matrix.doubles.Matrixt()StringtoString()Returns the compactStringrepresentation ofMatrix.com.numericalmethod.suanshu.matrix.doubles.MatrixZERO()
-
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:
multiplyin interfacecom.numericalmethod.suanshu.matrix.doubles.Matrix
-
getRow
public abstract com.numericalmethod.suanshu.vector.doubles.Vector getRow(int row) throws com.numericalmethod.suanshu.matrix.MatrixAccessExceptionGets the rowth indexed (1-based) row-vector from matrix.- Specified by:
getRowin 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.MatrixAccessExceptionGets the columnth indexed (1-based) column-vector from matrix.- Specified by:
getColumnin 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.MatrixAccessExceptionGets the value at rowth indexed row (1-based) and columnth indexed (1-based) column from matrix.- Specified by:
getin 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:
scaledin interfacecom.numericalmethod.suanshu.matrix.doubles.Matrix
-
deepCopy
public com.numericalmethod.suanshu.matrix.doubles.Matrix deepCopy()- Specified by:
deepCopyin interfacecom.numericalmethod.suanshu.DeepCopyable- Specified by:
deepCopyin interfacecom.numericalmethod.suanshu.matrix.doubles.Matrix
-
set
public void set(int row, int column, double value) throws com.numericalmethod.suanshu.matrix.MatrixAccessException- Specified by:
setin interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixAccess- Throws:
com.numericalmethod.suanshu.matrix.MatrixAccessException
-
t
public com.numericalmethod.suanshu.matrix.doubles.Matrix t()- Specified by:
tin interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixRing
-
add
public com.numericalmethod.suanshu.matrix.doubles.Matrix add(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)- Specified by:
addin interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>- Specified by:
addin interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixRing
-
minus
public com.numericalmethod.suanshu.matrix.doubles.Matrix minus(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)- Specified by:
minusin interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>- Specified by:
minusin interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixRing
-
multiply
public com.numericalmethod.suanshu.matrix.doubles.Matrix multiply(com.numericalmethod.suanshu.matrix.doubles.Matrix matrix)- Specified by:
multiplyin interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixRing- Specified by:
multiplyin interfacecom.numericalmethod.suanshu.mathstructure.Monoid<com.numericalmethod.suanshu.matrix.doubles.Matrix>
-
opposite
public com.numericalmethod.suanshu.matrix.doubles.Matrix opposite()- Specified by:
oppositein interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>- Specified by:
oppositein interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixRing
-
ZERO
public com.numericalmethod.suanshu.matrix.doubles.Matrix ZERO()- Specified by:
ZEROin interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.matrix.doubles.Matrix>- Specified by:
ZEROin interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixRing
-
ONE
public com.numericalmethod.suanshu.matrix.doubles.Matrix ONE()- Specified by:
ONEin interfacecom.numericalmethod.suanshu.matrix.doubles.MatrixRing- Specified by:
ONEin interfacecom.numericalmethod.suanshu.mathstructure.Monoid<com.numericalmethod.suanshu.matrix.doubles.Matrix>
-
toString
Returns the compactStringrepresentation ofMatrix. If you want to have String representation of the wholeMatrix, please useshow()method. -
show
Returns theStringrepresentation of wholeMatrix- Returns:
- String representation of
Matrix
-