public interface IMatrix extends INDArray
| Modifier and Type | Method and Description |
|---|---|
void |
add2(AMatrix a,
AMatrix b)
Adds two matrices to this matrix.
|
void |
addAt(int i,
int j,
double d)
Adds a value at a specific position in the matrix, mutating the matrix
Does not perform bounds checking - this in an unsafe operation
|
AMatrix |
addCopy(AMatrix a)
Adds another matrix to this matrix, returning a new matrix
|
AMatrix |
addCopy(AVector v)
Adds a vector to every row of this matrix, returning a new matrix
|
int |
columnCount()
Gets the number of columns in this matrix (dimension 1)
|
double |
diagonalProduct()
Returns the product of all elements on the leading diagonal of this matrix
|
double |
get(int row,
int column)
Gets the element at the specified position in this matrix
|
AVector |
getBand(int band)
Gets a band of a matrix
The band is defined such that:
- 0 is the main diagonal
- bands above the main diagonal are 1, 2, 3 etc.
|
AVector |
getColumn(int column)
Returns a column of the matrix.
|
AVector |
getColumnClone(int column)
Returns a column of the matrix as a new cloned, mutable vector
The cloned column may be modified without affecting the original matrix.
|
List<AVector> |
getColumns()
Gets a List of columns of a matrix.
|
AVector |
getColumnView(int column)
Returns a column of the matrix as a vector view.
|
AVector |
getRow(int row)
Returns a row of the matrix.
|
AVector |
getRowClone(int row)
Returns a row of the matrix as a new cloned, mutable vector.
|
List<AVector> |
getRows()
Gets a List of rows of a matrix.
|
AVector |
getRowView(int row)
Returns a row of the matrix as a vector view.
|
AMatrix |
getTranspose()
Returns the transpose of this matrix.
|
AMatrix |
getTransposeView()
Returns a transposed view of this matrix.
|
AMatrix |
innerProduct(AMatrix a)
Computes the inner product of this matrix with another.
|
AVector |
innerProduct(AVector source)
Transforms a source vector into a using matrix multiplication (inner product).
|
Vector |
innerProduct(Vector source)
Transforms a dense source Vector using matrix multiplication (inner product).
|
AMatrix |
inverse()
Computes the inverse of this matrix.
|
boolean |
isDiagonal()
Returns true iff this matrix is a square diagonal matrix
|
boolean |
isIdentity()
Checks if this is an identity matrix (i.e.
|
boolean |
isInvertible()
Checks if this is an invertible matrix (i.e.
|
boolean |
isRectangularDiagonal()
Returns true iff this matrix is a diagonal matrix (might not be square)
|
boolean |
isSquare()
Checks if this is a square matrix
|
boolean |
isSymmetric()
Returns true if this matrix is symmetric
|
int |
rowCount()
Gets the number of rows in this matrix (dimension 0)
|
void |
set(int row,
int column,
double value)
Sets the element at the specified position in this matrix
|
AMatrix |
subMatrix(int rowStart,
int rows,
int colStart,
int cols)
Gets a rectangular submatrix view of part of a matrix
|
double[][] |
toNestedDoubleArrays()
Converts this matrix to nested double[][] array
|
double |
trace()
Computes the trace of a matrix, i.e.
|
void |
transform(AVector source,
AVector dest)
Transforms a source vector into a destination vector, using matrix multiplication (inner product).
|
void |
transformInPlace(AVector v) |
void |
transposeInPlace()
Transposes a matrix in place, if possible.
|
abs, absCopy, add, add, addAt, addCopy, addCopy, addInnerProduct, addMultiple, addOuterProduct, addPower, addPower, addToArray, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, broadcastLike, checkMutable, clamp, clone, componentCount, copy, dense, denseClone, dimensionality, divide, divide, divideCopy, elementAbsPowSum, elementCount, elementIterator, elementMax, elementMin, elementPowSum, elementProduct, elementsEqual, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, equals, equalsArray, equalsArray, exactClone, exp, fill, get, get, get, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, getElements, getLongShape, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTransposeCopy, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, isBoolean, isDense, isElementConstrained, isFullyMutable, isMutable, isSameShape, isSparse, isView, isZero, join, join, log, multiply, multiply, multiplyCopy, multiplyCopy, mutable, negate, negateCopy, nonZeroCount, outerProduct, pow, reciprocal, reciprocalCopy, reduce, reduce, reduceSlices, reduceSlices, reorder, reorder, reshape, rotateView, scale, scaleAdd, scaleAdd, scaleCopy, set, set, set, set, set, set, setElements, setElements, setElements, setInnerProduct, setMultiple, setMultiple, signum, signumCopy, slice, slice, sliceCount, sliceValue, sparse, sparseClone, sqrt, square, squareCopy, sub, sub, subArray, subCopy, toArray, toDoubleArray, toDoubleBuffer, toSliceArray, toVector, validate, withComponentsint rowCount()
int columnCount()
double get(int row,
int column)
void set(int row,
int column,
double value)
AVector getRow(int row)
AVector getColumn(int column)
AVector getRowView(int row)
AVector getColumnView(int column)
AVector getRowClone(int row)
AVector getColumnClone(int column)
AVector getBand(int band)
band - AMatrix getTranspose()
getTranspose in interface INDArrayAMatrix getTransposeView()
getTransposeView in interface INDArrayvoid transposeInPlace()
boolean isSquare()
boolean isInvertible()
boolean isIdentity()
AVector innerProduct(AVector source)
innerProduct in interface INDArraysource - A vectorVector innerProduct(Vector source)
void transform(AVector source, AVector dest)
void transformInPlace(AVector v)
AMatrix inverse()
double trace()
AMatrix addCopy(AMatrix a)
v - AMatrix addCopy(AVector v)
v - double diagonalProduct()
AMatrix innerProduct(AMatrix a)
a - List<AVector> getRows()
List<AVector> getColumns()
boolean isSymmetric()
void add2(AMatrix a, AMatrix b)
a - b - boolean isDiagonal()
boolean isRectangularDiagonal()
double[][] toNestedDoubleArrays()
AMatrix subMatrix(int rowStart, int rows, int colStart, int cols)
void addAt(int i,
int j,
double d)
Copyright © 2016. All rights reserved.