public class BandedMatrix extends ABandedMatrix
| Modifier and Type | Method and Description |
|---|---|
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
|
int |
columnCount()
Gets the number of columns in this matrix (dimension 1)
|
static BandedMatrix |
create(AMatrix m) |
static BandedMatrix |
create(int rowCount,
int columnCount,
int minBand,
int maxBand) |
BandedMatrix |
exactClone()
Creates a deep clone of an array, using the same class implementation as the original array
|
double |
get(int i,
int j)
Returns the double value at the specified position in a 2D matrix
|
AVector |
getBand(int band)
Gets a specific band of the matrix, as a view vector.
|
BandedMatrix |
getTranspose()
Returns the transpose of this array.
|
boolean |
isView()
Return true if this array is considered as a view type.
|
int |
lowerBandwidthLimit()
A limit on the lower bandwidth of the banded matrix.
|
int |
rowCount()
Gets the number of rows in this matrix (dimension 0)
|
void |
set(int i,
int j,
double value)
Sets a value at a given position in a mutable 2D array
|
void |
transform(AVector source,
AVector dest)
Transforms a source vector into a destination vector, using matrix multiplication (inner product).
|
void |
transform(Vector source,
Vector dest) |
double |
unsafeGet(int i,
int j)
Gets an element in the matrix in an unsafe fashion, without performing bound checks
The result is undefined if the row and column are out of bounds.
|
void |
unsafeSet(int i,
int j,
double value)
Sets an element value in the matrix in an unsafe fashion, without performing bound checks
The result is undefined if the row and column are out of bounds.
|
int |
upperBandwidthLimit()
A limit on the upper bandwidth of the banded matrix.
|
void |
validate()
Validates the internal data structure of the INDArray.
|
static BandedMatrix |
wrap(int rowCount,
int columnCount,
int minBand,
int maxBand,
AVector... bands) |
addToArray, copyRowTo, density, diagonalProduct, elementSquaredSum, elementSum, fill, getRowView, isFullyMutable, isLowerTriangular, isMutable, isSparse, isSymmetric, isUpperTriangular, isZero, lowerBandwidth, multiply, nonZeroCount, toDoubleArray, toMatrix, toMatrixTranspose, trace, upperBandwidthabs, add, add, add, add, add2, addCopy, addCopy, addCopy, addCopy, addCopy, addInnerProduct, addInnerProduct, addInnerProduct, addMultiple, addMultiple, addMultiple, addOuterProduct, addOuterProduct, addRowMultiple, applyOp, applyOp, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, bandStartColumn, bandStartRow, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, checkColumn, checkColumnCount, checkDimension, checkIndex, checkRow, checkRowCount, checkSameShape, checkSameShape, checkShape, checkSquare, clamp, clone, composeWith, copy, copyColumnTo, dense, denseClone, determinant, dimensionality, divide, divide, divide, divide, elementCount, elementIterator, elementsEqual, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsByRows, equalsTranspose, exp, get, get, get, getBandWrapped, getColumn, getColumnClone, getColumns, getColumnView, getElements, getLeadingDiagonal, getLongShape, getRow, getRowClone, getRows, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hasOrthonormalRows, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isBoolean, isDiagonal, isElementConstrained, isHermitian, isIdentity, isInvertible, isOrthogonal, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSameShape, isSameShape, isSquare, iterator, join, log, mul, multiply, multiply, multiply, multiplyCopy, multiplyRow, mutable, negate, outerProduct, outputDimensions, pow, rank, reciprocal, reduce, reduce, reduceSlices, reduceSlices, reorder, reorder, replaceColumn, replaceRow, reshape, reshape, rotateView, rowDotProduct, scaleAdd, scaleAdd, set, set, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sparse, sparseClone, sqrt, square, sub, sub, sub, subArray, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleBuffer, toMutableMatrix, toNestedDoubleArrays, toSliceArray, toString, toStringFull, toVector, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlaceabsCopy, add, addAt, addInnerProduct, addPower, addPower, broadcastLike, checkMutable, componentCount, divideCopy, elementAbsPowSum, elementMax, elementMin, elementPowSum, elementProduct, equals, equalsArray, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, isDense, join, multiplyCopy, negateCopy, reciprocalCopy, scale, scaleCopy, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, sliceValue, squareCopy, sub, sub, subCopy, withComponentsfinalize, getClass, notify, notifyAll, wait, wait, waitabsCopy, addAt, addPower, addPower, broadcastLike, checkMutable, componentCount, divideCopy, elementAbsPowSum, elementMax, elementMin, elementPowSum, elementProduct, equalsArray, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, isDense, join, multiplyCopy, negateCopy, reciprocalCopy, scale, scaleCopy, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, sliceValue, squareCopy, sub, subCopy, withComponentsforEach, spliteratorpublic static BandedMatrix create(AMatrix m)
public static BandedMatrix create(int rowCount, int columnCount, int minBand, int maxBand)
public static BandedMatrix wrap(int rowCount, int columnCount, int minBand, int maxBand, AVector... bands)
public int upperBandwidthLimit()
AMatrixupperBandwidthLimit in class ABandedMatrixpublic int lowerBandwidthLimit()
AMatrixlowerBandwidthLimit in class ABandedMatrixpublic BandedMatrix getTranspose()
INDArraygetTranspose in interface INDArraygetTranspose in interface IMatrixgetTranspose in class AMatrixpublic AVector getBand(int band)
AMatrixgetBand in interface IMatrixgetBand in interface IFastBandsgetBand in class ABandedMatrixpublic int rowCount()
IMatrixpublic int columnCount()
IMatrixpublic boolean isView()
INDArraypublic double get(int i,
int j)
INDArraypublic void set(int i,
int j,
double value)
INDArraypublic double unsafeGet(int i,
int j)
AMatrixpublic void unsafeSet(int i,
int j,
double value)
AMatrixpublic void addAt(int i,
int j,
double d)
IMatrixpublic BandedMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixpublic void transform(AVector source, AVector dest)
IMatrixpublic void validate()
INDArrayvalidate in interface INDArrayvalidate in class ABandedMatrixCopyright © 2016. All rights reserved.