linearalgebra.numeric
Class Matrix
java.lang.Object
linearalgebra.numeric.AbstractMatrix
linearalgebra.numeric.Matrix
- All Implemented Interfaces:
- java.lang.Cloneable, MatrixInterface, NumericMatrixInterface
public class Matrix
- extends AbstractMatrix
Field Summary |
private double[][] |
m_matrix
|
Methods inherited from class linearalgebra.numeric.AbstractMatrix |
combineRows, eliminateRowsBeneath, equals, factorInverse, factorL, factorL, factorU, getColumnBottomPivotIndex, getColumnCount, getColumnTopPivotIndex, getColumnView, getNumericColumnView, getNumericRowView, getOrthogonalProjectionMatrix, getProjectionMatrix, getReflectionMatrix, getRowCount, getRowLeftPivotIndex, getRowRightPivotIndex, getRowView, hasColumnPivot, hasRowPivot, isIdentity, isLowerLeftTriangular, isOrthogonal, isPositiveDefinite, isSymmetric, isUpperRightTriangular, minus, minusEquals, multiply, multiplyEquals, multiplyRow, pivotIndexForL, pivotIndexForU, plus, plusEquals, power, product, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_matrix
private double[][] m_matrix
Matrix
public Matrix(int rows,
int cols)
Matrix
public Matrix(int identity)
Matrix
public Matrix(Matrix m)
Matrix
public Matrix(double[][] m)
clone
public java.lang.Object clone()
- Specified by:
clone
in interface NumericMatrixInterface
- Overrides:
clone
in class AbstractMatrix
swapRows
public final void swapRows(int row1,
int row2)
- Specified by:
swapRows
in interface MatrixInterface
- Overrides:
swapRows
in class AbstractMatrix
swapRows
public void swapRows(PermutationMatrix p)
getTranspose
public MatrixInterface getTranspose()
getElement
public double getElement(int row,
int col)
setElement
public void setElement(int row,
int col,
double element)
- Specified by:
setElement
in interface NumericMatrixInterface
- Specified by:
setElement
in class AbstractMatrix
scaleElement
public void scaleElement(int row,
int col,
double scalar)
- Specified by:
scaleElement
in interface NumericMatrixInterface
- Specified by:
scaleElement
in class AbstractMatrix
incrementElement
public void incrementElement(int row,
int col,
double value)
- Specified by:
incrementElement
in interface NumericMatrixInterface
- Specified by:
incrementElement
in class AbstractMatrix
isIdempotent
public boolean isIdempotent()