| Modifier and Type | Method and Description |
|---|---|
AVector |
asVector()
Returns the matrix values as a single reference Vector in the form [row0
row1 row2....]
|
int |
columnCount()
Returns the number of columns in the matrix
|
double |
elementSum()
Returns the sum of all elements in the matrix
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
ColumnMatrix |
getTranspose()
Returns a transposed version of this matrix.
|
int |
rowCount()
Returns the number of rows in the matrix
|
void |
scale(double factor)
Scales a matrix by a constant scalar factor.
|
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
AVector |
toVector()
Converts the matrix to a single flattened vector
in row major order.
|
static RowMatrix |
wrap(AVector v) |
add, addMultiple, calculateElement, clone, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, determinant, dimensionality, entrywiseMul, epsilonEquals, equals, equals, equals, get, getColumn, getLeadingDiagonal, getMatrixComponent, getRow, hashCode, inputDimensions, inverse, isFullyMutable, isIdentity, isInvertible, isSquare, isZeroMatrix, iterator, mul, outputDimensions, reshape, set, sub, swapColumns, swapRows, toAffineTransform, toMutableMatrix, toString, transform, transformInPlace, transposeInPlacegetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic RowMatrix(AVector v)
public int rowCount()
AMatrixpublic AVector toVector()
AMatrixpublic AVector asVector()
AMatrixpublic void scale(double factor)
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic double elementSum()
AMatrixelementSum in class AMatrixpublic double get(int row,
int column)
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic ColumnMatrix getTranspose()
AMatrixgetTranspose in class AMatrixCopyright © 2013. All Rights Reserved.