public abstract class ABlockMatrix extends ARectangularMatrix
cols, rows| Modifier | Constructor and Description |
|---|---|
protected |
ABlockMatrix(int rows,
int cols) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
columnBlockCount() |
int |
componentCount()
Returns the number of components of this array.
|
void |
copyColumnTo(int j,
double[] dest,
int destOffset)
Copies the elements in a selected row of this matrix to a double array
|
void |
copyRowTo(int i,
double[] dest,
int destOffset)
Copies the elements in a slected row of this matrix to a double array
|
abstract AMatrix |
getBlock(int rowBlock,
int colBlock) |
abstract int |
getBlockColumnCount(int colBlock) |
abstract int |
getBlockColumnStart(int colBlock) |
abstract int |
getBlockRowCount(int rowBlock) |
abstract int |
getBlockRowStart(int rowBlock) |
abstract int |
getColumnBlockIndex(int col) |
AVector |
getColumnView(int col)
Returns a column of the matrix as a vector view.
|
AMatrix |
getComponent(int k)
Gets a component from the array at the specified index
Will throw an error if components are not supported, or if the component is out of bounds as defined by 0 <= k |
abstract int |
getRowBlockIndex(int row) |
AVector |
getRowView(int row)
Returns a row of the matrix as a vector view.
|
boolean |
isBoolean()
Returns true if the array is boolean (contains only 0.0 or 1.0 values)
|
boolean |
isZero()
Returns true if the matrix is the zero matrix (all components zero)
|
abstract int |
rowBlockCount() |
protected static int |
sumColumnCounts(AMatrix... mats) |
protected static int |
sumRowCounts(AMatrix... mats) |
bandLength, checkColumn, checkIndex, checkRow, checkSameShape, checkSameShape, checkSquare, columnCount, elementCount, getShape, getShape, getShapeClone, isSameShape, isSameShape, isSameShape, isSquare, rowCountabs, add, add, add, add, add2, addAt, addCopy, addCopy, addCopy, addCopy, addCopy, addInnerProduct, addInnerProduct, addInnerProduct, addMultiple, addMultiple, addMultiple, addOuterProduct, addOuterProduct, addRowMultiple, addToArray, applyOp, applyOp, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandPosition, bandStartColumn, bandStartRow, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, checkColumnCount, checkDimension, checkRowCount, checkShape, clamp, clone, composeWith, copy, dense, denseClone, determinant, diagonalProduct, dimensionality, divide, divide, divide, divide, elementIterator, elementsEqual, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsByRows, equalsTranspose, exactClone, exp, fill, get, get, get, get, getBand, getBandWrapped, getColumn, getColumnClone, getColumns, getElements, getLeadingDiagonal, getLongShape, getRow, getRowClone, getRows, getSlices, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hasOrthonormalRows, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isDiagonal, isElementConstrained, isFullyMutable, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSymmetric, isUpperTriangular, isView, iterator, join, log, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiply, multiply, multiply, multiplyCopy, multiplyRow, mutable, negate, nonZeroCount, 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, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sparse, sparseClone, sqrt, square, sub, sub, sub, subArray, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMatrix, toMatrixTranspose, toMutableMatrix, toNestedDoubleArrays, toSliceArray, toString, toStringFull, toVector, trace, transform, transform, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, unsafeGet, unsafeSet, upperBandwidth, upperBandwidthLimit, validateabsCopy, add, addAt, addInnerProduct, addPower, addPower, broadcastLike, checkMutable, density, divideCopy, elementAbsPowSum, elementMax, elementMin, elementPowSum, elementProduct, equals, equalsArray, get, get, get, get, get, getComponents, getElements, getElements, getElements, isDense, isSparse, 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, divideCopy, elementAbsPowSum, elementMax, elementMin, elementPowSum, elementProduct, equalsArray, get, get, get, get, get, getComponents, getElements, getElements, getElements, isDense, isSparse, join, multiplyCopy, negateCopy, reciprocalCopy, scale, scaleCopy, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, sliceValue, squareCopy, sub, subCopy, withComponentsforEach, spliteratorpublic abstract AMatrix getBlock(int rowBlock, int colBlock)
public abstract int getBlockColumnCount(int colBlock)
public abstract int getBlockRowCount(int rowBlock)
public abstract int getBlockColumnStart(int colBlock)
public abstract int getBlockRowStart(int rowBlock)
public abstract int getColumnBlockIndex(int col)
public abstract int getRowBlockIndex(int row)
public abstract int columnBlockCount()
public abstract int rowBlockCount()
public int componentCount()
INDArraycomponentCount in interface INDArraycomponentCount in class AbstractArray<AVector>public void copyRowTo(int i,
double[] dest,
int destOffset)
AMatrixpublic void copyColumnTo(int j,
double[] dest,
int destOffset)
AMatrixcopyColumnTo in class AMatrixdest - Destination double[] arraypublic AMatrix getComponent(int k)
INDArraygetComponent in interface INDArraygetComponent in class AbstractArray<AVector>public AVector getRowView(int row)
IMatrixgetRowView in interface IMatrixgetRowView in class AMatrixpublic boolean isZero()
AMatrixpublic boolean isBoolean()
INDArraypublic AVector getColumnView(int col)
IMatrixgetColumnView in interface IMatrixgetColumnView in class AMatrixprotected static int sumRowCounts(AMatrix... mats)
protected static int sumColumnCounts(AMatrix... mats)
Copyright © 2016. All rights reserved.