linearalgebra
Class IdentityMatrix
java.lang.Object
linearalgebra.IdentityMatrix
- All Implemented Interfaces:
- MatrixInterface
public class IdentityMatrix
- extends java.lang.Object
- implements MatrixInterface
Field Summary |
private int |
size
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
size
private int size
IdentityMatrix
public IdentityMatrix(int size)
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface MatrixInterface
- Overrides:
equals
in class java.lang.Object
factorL
public MatrixInterface factorL(PermutationMatrix p)
- Specified by:
factorL
in interface MatrixInterface
factorL
public MatrixInterface factorL(PermutationMatrix p,
boolean partialPivot)
- Specified by:
factorL
in interface MatrixInterface
factorU
public MatrixInterface factorU(PermutationMatrix p)
- Specified by:
factorU
in interface MatrixInterface
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interface MatrixInterface
factorInverse
public MatrixInterface factorInverse()
- Specified by:
factorInverse
in interface MatrixInterface
getTranspose
public MatrixInterface getTranspose()
- Specified by:
getTranspose
in interface MatrixInterface
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface MatrixInterface
isIdentity
public boolean isIdentity()
- Specified by:
isIdentity
in interface MatrixInterface
isLowerLeftTriangular
public boolean isLowerLeftTriangular()
- Specified by:
isLowerLeftTriangular
in interface MatrixInterface
isUpperRightTriangular
public boolean isUpperRightTriangular()
- Specified by:
isUpperRightTriangular
in interface MatrixInterface
isSymmetric
public boolean isSymmetric()
- Specified by:
isSymmetric
in interface MatrixInterface
isPositiveDefinite
public boolean isPositiveDefinite()
- Specified by:
isPositiveDefinite
in interface MatrixInterface
swapRows
public void swapRows(int row1,
int row2)
- Specified by:
swapRows
in interface MatrixInterface
swapRows
public void swapRows(PermutationMatrix p)
- Specified by:
swapRows
in interface MatrixInterface
hasRowPivot
public boolean hasRowPivot(int row)
- Specified by:
hasRowPivot
in interface MatrixInterface
hasColumnPivot
public boolean hasColumnPivot(int col)
- Specified by:
hasColumnPivot
in interface MatrixInterface
getRowLeftPivotIndex
public int getRowLeftPivotIndex(int row)
- Specified by:
getRowLeftPivotIndex
in interface MatrixInterface
getRowRightPivotIndex
public int getRowRightPivotIndex(int row)
- Specified by:
getRowRightPivotIndex
in interface MatrixInterface
getColumnTopPivotIndex
public int getColumnTopPivotIndex(int col)
- Specified by:
getColumnTopPivotIndex
in interface MatrixInterface
getColumnBottomPivotIndex
public int getColumnBottomPivotIndex(int col)
- Specified by:
getColumnBottomPivotIndex
in interface MatrixInterface
getProjectionMatrix
public MatrixInterface getProjectionMatrix()
- Specified by:
getProjectionMatrix
in interface MatrixInterface
getOrthogonalProjectionMatrix
public MatrixInterface getOrthogonalProjectionMatrix()
- Specified by:
getOrthogonalProjectionMatrix
in interface MatrixInterface
getReflectionMatrix
public MatrixInterface getReflectionMatrix()
- Specified by:
getReflectionMatrix
in interface MatrixInterface
isIdempotent
public boolean isIdempotent()
- Specified by:
isIdempotent
in interface MatrixInterface
isOrthogonal
public boolean isOrthogonal()
- Specified by:
isOrthogonal
in interface MatrixInterface