| Modifier and Type | Field and Description |
|---|---|
double[] |
data |
| Constructor and Description |
|---|
MatrixMN(AMatrix m) |
MatrixMN(int rowCount,
int columnCount) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
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
|
AMatrix |
compose(AMatrix a) |
double |
elementSum()
Returns the sum of all elements in the matrix
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
ArraySubVector |
getRow(int row)
Returns a row of the matrix as a vector view
|
int |
rowCount()
Returns the number of rows in the matrix
|
void |
scale(double factor)
Scales a matrix by a constant scalar factor.
|
void |
set(AMatrix a) |
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
void |
swapRows(int i,
int j)
Swaps two rows of the matrix in place
|
void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
static MatrixMN |
wrap(int rowCount,
int columnCount,
double[] data) |
add, addMultiple, calculateElement, clone, cloneRow, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, determinant, dimensionality, entrywiseMul, epsilonEquals, equals, equals, equals, get, getColumn, getLeadingDiagonal, getMatrixComponent, getTranspose, hashCode, inputDimensions, inverse, isFullyMutable, isIdentity, isInvertible, isSquare, isZeroMatrix, iterator, mul, outputDimensions, reshape, sub, swapColumns, toAffineTransform, toMutableMatrix, toString, toVector, transformInPlace, transposeInPlacegetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic MatrixMN(int rowCount,
int columnCount)
public MatrixMN(AMatrix m)
public static MatrixMN wrap(int rowCount, int columnCount, double[] data)
public double elementSum()
AMatrixelementSum in class AMatrixpublic void transform(AVector source, AVector dest)
ATransformpublic ArraySubVector getRow(int row)
AMatrixpublic int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic void swapRows(int i,
int j)
AMatrixpublic Vector asVector()
AMatrixpublic double get(int row,
int column)
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic void scale(double factor)
AMatrixCopyright © 2013. All Rights Reserved.