linearalgebra.numeric
Class Matrix

java.lang.Object
  extended by linearalgebra.numeric.AbstractMatrix
      extended by linearalgebra.numeric.Matrix
All Implemented Interfaces:
java.lang.Cloneable, MatrixInterface, NumericMatrixInterface

public class Matrix
extends AbstractMatrix


Field Summary
private  double[][] m_matrix
           
 
Fields inherited from class linearalgebra.numeric.AbstractMatrix
m_bFrontPivot
 
Constructor Summary
Matrix(double[][] m)
           
Matrix(int identity)
           
Matrix(int rows, int cols)
           
Matrix(Matrix m)
           
 
Method Summary
 java.lang.Object clone()
           
 double getElement(int row, int col)
           
 MatrixInterface getTranspose()
           
 void incrementElement(int row, int col, double value)
           
 boolean isIdempotent()
           
 void scaleElement(int row, int col, double scalar)
           
 void setElement(int row, int col, double element)
           
 void swapRows(int row1, int row2)
           
 void swapRows(PermutationMatrix p)
           
 
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
 

Field Detail

m_matrix

private double[][] m_matrix
Constructor Detail

Matrix

public Matrix(int rows,
              int cols)

Matrix

public Matrix(int identity)

Matrix

public Matrix(Matrix m)

Matrix

public Matrix(double[][] m)
Method Detail

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()