org.das2.math.matrix
Class CompositeMatrix
java.lang.Object
org.das2.math.matrix.Matrix
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).
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CompositeMatrix
public CompositeMatrix(Matrix m1,
Matrix m2)
get
public double get(int row,
int col)
- Specified by:
get
in class Matrix
rowTimes
public void rowTimes(int row,
double s)
- Specified by:
rowTimes
in class Matrix
rowTimesAddTo
public void rowTimesAddTo(int srcRow,
double s,
int dstRow)
- Specified by:
rowTimesAddTo
in class Matrix
set
public void set(int row,
int col,
double d)
- Specified by:
set
in class Matrix
swapRows
public void swapRows(int row1,
int row2)
- Specified by:
swapRows
in class Matrix