| 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 |
|---|---|
void |
add(AMatrix m)
Adds another matrix to this matrix.
|
void |
add(Matrix m) |
void |
addMultiple(AMatrix m,
double factor) |
void |
addMultiple(Matrix m,
double factor) |
void |
addRowMultiple(int src,
int dst,
double factor) |
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
|
static Matrix |
create(int rowCount,
int columnCount) |
double |
elementSum()
Returns the sum of all elements in the matrix
|
Matrix |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
AVector |
getColumn(int row)
Returns a column of the matrix as a vector view
|
ArraySubVector |
getRow(int row)
Returns a row of the matrix as a vector view
|
Matrix |
innerProduct(AMatrix a) |
Matrix |
innerProduct(Matrix a) |
boolean |
isView()
Return true if this is a view
|
void |
multiply(double factor) |
void |
multiplyRow(int i,
double factor) |
int |
rowCount()
Returns the number of rows in the matrix
|
void |
set(AMatrix a) |
void |
set(double value) |
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, add, add, addAt, applyOp, applyOp, broadcast, calculateElement, clone, cloneRow, compose, compose, composeWith, composeWith, copyOfMatrix, copyOfTranslationVector, determinant, dimensionality, elementCount, elementMul, epsilonEquals, equals, equals, equals, equals, get, get, get, getLeadingDiagonal, getLongShape, getMatrixComponent, getShape, getSlices, getTranspose, hashCode, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isElementConstrained, isFullyMutable, isIdentity, isInvertible, isMutable, isSquare, isZeroMatrix, iterator, mul, outerProduct, outputDimensions, reshape, scale, set, set, set, set, setElements, setElements, slice, sliceCount, sub, sub, sub, 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 static Matrix create(int rowCount, int columnCount)
public boolean isView()
INDArraypublic static Matrix wrap(int rowCount, int columnCount, double[] data)
public Matrix innerProduct(AMatrix a)
innerProduct in class AMatrixpublic double elementSum()
AMatrixelementSum in class AMatrixpublic void transform(AVector source, AVector dest)
ATransformtransform in interface ITransformtransform in class AMatrixpublic ArraySubVector getRow(int row)
AMatrixpublic AVector getColumn(int row)
AMatrixpublic int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic void swapRows(int i,
int j)
AMatrixpublic void multiplyRow(int i,
double factor)
multiplyRow in class AMatrixpublic void addRowMultiple(int src,
int dst,
double factor)
addRowMultiple in class AMatrixpublic Vector asVector()
AMatrixpublic double get(int row,
int column)
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic void addMultiple(Matrix m, double factor)
public void add(Matrix m)
public void addMultiple(AMatrix m, double factor)
addMultiple in class AMatrixpublic void add(AMatrix m)
AMatrixpublic void multiply(double factor)
public void set(double value)
public Matrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.