Package de.gsi.math.matrix
Class AbstractMatrix
- java.lang.Object
-
- de.gsi.math.matrix.AbstractMatrix
-
- All Implemented Interfaces:
Matrix,java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
MatrixD
public abstract class AbstractMatrix extends java.lang.Object implements Matrix
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractMatrix()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckMatrixDimensions(Matrix B)Check if size(A) == size(B)intgetColumnDimension()Get column dimension.intgetRowDimension()Get row dimensiondoublenorm1()One normdoublenorm2()Two normdoublenormF()Frobenius normdoublenormInf()Infinity norm
-
-
-
Method Detail
-
checkMatrixDimensions
public void checkMatrixDimensions(Matrix B)
Check if size(A) == size(B)- Specified by:
checkMatrixDimensionsin interfaceMatrix
-
getColumnDimension
public int getColumnDimension()
Get column dimension.- Specified by:
getColumnDimensionin interfaceMatrix- Returns:
- n, the number of columns.
-
getRowDimension
public int getRowDimension()
Get row dimension- Specified by:
getRowDimensionin interfaceMatrix- Returns:
- m, the number of rows.
-
norm1
public double norm1()
One norm- Returns:
- maximum column sum.
-
norm2
public double norm2()
Two norm- Returns:
- maximum singular value.
-
normF
public double normF()
Frobenius norm- Returns:
- sqrt of sum of squares of all elements.
-
normInf
public double normInf()
Infinity norm- Returns:
- maximum row sum.
-
-