public abstract class ARectangularMatrix extends AMatrix
| Modifier | Constructor and Description |
|---|---|
protected |
ARectangularMatrix(int rows,
int cols) |
| Modifier and Type | Method and Description |
|---|---|
int |
bandLength(int band)
Returns the length of a band of the matrix.
|
int |
checkColumn(int column)
Checks if the given column index is valid for this matrix.
|
protected void |
checkIndex(int i,
int j)
Checks if the given index is valid for this matrix.
|
int |
checkRow(int row)
Checks if the given rows index is valid for this matrix.
|
protected void |
checkSameShape(AMatrix m)
Checks if this matrix has the same shape as another matrix.
|
protected void |
checkSameShape(ARectangularMatrix m)
Checks if this matrix has the same shape as another matrix.
|
int |
checkSquare()
Checks if a matrix is square.
|
int |
columnCount()
Gets the number of columns in this matrix (dimension 1)
|
long |
elementCount()
Returns the total number of elements in this array.
|
int[] |
getShape()
Returns the shape of the array as an array of ints.
|
int |
getShape(int dim)
Returns the dimension size for a specific dimension in the array's shape
|
int[] |
getShapeClone()
Returns the shape of the array as an array of ints, guaranteed to be a new array
i.e.
|
boolean |
isSameShape(AMatrix m)
Returns true iff this matrix is exactly the same shape as another matrix
|
boolean |
isSameShape(ARectangularMatrix m) |
boolean |
isSameShape(INDArray m)
Returns true if this array is the same shape as another array
|
boolean |
isSquare()
Checks if this is a square matrix
|
int |
rowCount()
Gets the number of rows in this matrix (dimension 0)
|
abs, 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, copyColumnTo, copyRowTo, 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, getColumnView, getElements, getLeadingDiagonal, getLongShape, getRow, getRowClone, getRows, getRowView, getSlices, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hasOrthonormalRows, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isBoolean, isDiagonal, isElementConstrained, isFullyMutable, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSymmetric, isUpperTriangular, isView, isZero, 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, componentCount, density, divideCopy, elementAbsPowSum, elementMax, elementMin, elementPowSum, elementProduct, equals, equalsArray, get, get, get, get, get, getComponent, 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, componentCount, divideCopy, elementAbsPowSum, elementMax, elementMin, elementPowSum, elementProduct, equalsArray, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, isDense, isSparse, join, multiplyCopy, negateCopy, reciprocalCopy, scale, scaleCopy, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, sliceValue, squareCopy, sub, subCopy, withComponentsforEach, spliteratorpublic final int rowCount()
IMatrixpublic final int columnCount()
IMatrixpublic final boolean isSquare()
IMatrixpublic final int[] getShape()
INDArraypublic final int[] getShapeClone()
INDArraygetShapeClone in interface INDArraygetShapeClone in class AMatrixpublic int bandLength(int band)
AMatrixbandLength in class AMatrixpublic final int getShape(int dim)
INDArraypublic final boolean isSameShape(INDArray m)
INDArrayisSameShape in interface INDArrayisSameShape in class AMatrixpublic int checkSquare()
AMatrixcheckSquare in class AMatrixprotected void checkSameShape(AMatrix m)
AMatrixcheckSameShape in class AMatrixpublic final int checkColumn(int column)
AMatrixcheckColumn in class AMatrixpublic final int checkRow(int row)
AMatrixprotected void checkSameShape(ARectangularMatrix m)
AMatrixcheckSameShape in class AMatrixprotected final void checkIndex(int i,
int j)
AMatrixcheckIndex in class AMatrixpublic final boolean isSameShape(AMatrix m)
AMatrixisSameShape in class AMatrixpublic final boolean isSameShape(ARectangularMatrix m)
public final long elementCount()
INDArrayelementCount in interface INDArrayelementCount in class AMatrixCopyright © 2016. All rights reserved.