Class CompositeMatrix

  extended by org.das2.math.matrix.Matrix
      extended by org.das2.math.matrix.CompositeMatrix

public class CompositeMatrix
extends Matrix

All of the elementary row and column operations are applied to both underlying matrices. Reads are done from the first matrix. Writes are not allowed (except those that are side effects of elementary matrix operations).

Field Summary
Fields inherited from class org.das2.math.matrix.Matrix
nCol, nRow
Constructor Summary
CompositeMatrix(Matrix m1, Matrix m2)
Method Summary
 double get(int row, int col)
 void rowTimes(int row, double s)
 void rowTimesAddTo(int srcRow, double s, int dstRow)
 void set(int row, int col, double d)
 void swapRows(int row1, int row2)
Methods inherited from class org.das2.math.matrix.Matrix
columnCount, copy, rowCount, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public CompositeMatrix(Matrix m1,
                       Matrix m2)
Method Detail


public double get(int row,
                  int col)
Specified by:
get in class Matrix


public void rowTimes(int row,
                     double s)
Specified by:
rowTimes in class Matrix


public void rowTimesAddTo(int srcRow,
                          double s,
                          int dstRow)
Specified by:
rowTimesAddTo in class Matrix


public void set(int row,
                int col,
                double d)
Specified by:
set in class Matrix


public void swapRows(int row1,
                     int row2)
Specified by:
swapRows in class Matrix