linearalgebra.numeric
Class TransposeWrapper

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

public class TransposeWrapper
extends AbstractMatrix


Field Summary
private  NumericMatrixInterface m_matrix
           
private  PermutationMatrix m_rowMap
           
 
Fields inherited from class linearalgebra.numeric.AbstractMatrix
m_bFrontPivot
 
Constructor Summary
TransposeWrapper(NumericMatrixInterface wrapTarget)
           
 
Method Summary
 java.lang.Object clone()
           
 double getElement(int row, int col)
           
private  int getRowMapping(int row)
           
 NumericMatrixInterface getTarget()
           
 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(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, swapRows, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_matrix

private NumericMatrixInterface m_matrix

m_rowMap

private PermutationMatrix m_rowMap
Constructor Detail

TransposeWrapper

public TransposeWrapper(NumericMatrixInterface wrapTarget)
Method Detail

getTarget

public NumericMatrixInterface getTarget()

clone

public java.lang.Object clone()
Specified by:
clone in interface NumericMatrixInterface
Overrides:
clone in class AbstractMatrix

getElement

public double getElement(int row,
                         int col)

getTranspose

public MatrixInterface getTranspose()

incrementElement

public void incrementElement(int row,
                             int col,
                             double value)
Specified by:
incrementElement in interface NumericMatrixInterface
Specified by:
incrementElement 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

setElement

public void setElement(int row,
                       int col,
                       double element)
Specified by:
setElement in interface NumericMatrixInterface
Specified by:
setElement in class AbstractMatrix

swapRows

public void swapRows(PermutationMatrix p)

getRowMapping

private int getRowMapping(int row)

isIdempotent

public boolean isIdempotent()