sbrt.kernel.math.algebra
Class MatrixTransposer
java.lang.Object
sbrt.kernel.math.algebra.MatrixTransposer
public class MatrixTransposer
- extends java.lang.Object
This class is used to transpose matrices.
- Author:
- This class was written and documented by Jeremiah Wright
while in the Wagner lab.
Method Summary |
|
transpose(Matrix<R,C,E> matrix,
MatrixBuilder<? super C,? super R,E> emptyMatrix)
Fills emptyMatrix with the transpose of matrix . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatrixTransposer
public MatrixTransposer()
transpose
public <R,C,E> void transpose(Matrix<R,C,E> matrix,
MatrixBuilder<? super C,? super R,E> emptyMatrix)
- Fills
emptyMatrix
with the transpose of matrix
.
- Type Parameters:
R
- the row index type.C
- the column index type.E
- the element or value type.- Parameters:
matrix
- the matrix for which a transpose will be created.emptyMatrix
- the empty matrix where the tranpose will be stored.
- Throws:
java.lang.IllegalArgumentException
- if emptyMatrix
is not empty.
java.lang.NullPointerException
- if either matrix is null
.