| Modifier and Type | Field and Description |
|---|---|
double[] |
data |
| Constructor and Description |
|---|
Matrix(AMatrix m) |
Matrix(int rowCount,
int columnCount) |
Matrix(Object... vs) |
| 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
|
Matrix |
exactClone() |
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
|
boolean |
isView()
Return true if this is a 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 Matrix |
wrap(int rowCount,
int columnCount,
double[] data) |
add, addMultiple, applyOp, applyOp, calculateElement, clone, cloneRow, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, determinant, dimensionality, elementCount, entrywiseMul, epsilonEquals, equals, equals, equals, equals, get, getColumn, getLeadingDiagonal, getMatrixComponent, getShape, getTranspose, hashCode, inputDimensions, inverse, isFullyMutable, isIdentity, isInvertible, isMutable, isSquare, isZeroMatrix, iterator, mul, outputDimensions, reshape, slice, sub, swapColumns, toAffineTransform, toMutableMatrix, toString, toVector, trace, transformInPlace, transposeInPlacegetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponents, transformpublic Matrix(int rowCount,
int columnCount)
public Matrix(AMatrix m)
public Matrix(Object... vs)
public boolean isView()
INDArraypublic static Matrix wrap(int rowCount, int columnCount, double[] data)
public double elementSum()
AMatrixelementSum in class AMatrixpublic void transform(AVector source, AVector dest)
ATransformtransform in interface ITransformtransform in class AMatrixpublic 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)
AMatrixpublic Matrix exactClone()
exactClone in class AMatrixCopyright © 2013. All Rights Reserved.