public abstract class AArrayMatrix extends AMatrix
| Modifier and Type | Field and Description |
|---|---|
protected int |
cols |
double[] |
data |
protected int |
rows |
| Modifier | Constructor and Description |
|---|---|
protected |
AArrayMatrix(double[] data,
int rows,
int cols) |
| Modifier and Type | Method and Description |
|---|---|
int |
columnCount()
Returns the number of columns in the matrix
|
double |
get(int i,
int j)
Returns a specified element in the matrix
|
double[] |
getArray() |
protected abstract int |
index(int i,
int j)
Computes the index into the data array for a given position in the matrix
|
abstract boolean |
isPackedArray()
Returns true if the data array is fully packed by this matrix in row-major order
|
int |
rowCount()
Returns the number of rows in the matrix
|
void |
set(int i,
int j,
double value)
Sets a specified element in the matrix
|
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.
|
abs, add, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, calculateElement, calculateElement, clamp, clone, cloneRow, compose, compose, composeWith, composeWith, copyColumnTo, copyOfMatrix, copyOfTranslationVector, copyRowTo, copyTo, determinant, dimensionality, divide, divide, elementCount, elementDiv, elementIterator, elementMul, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, exactClone, exp, fill, get, get, get, getBand, getBandWrapped, getColumn, getElements, getLeadingDiagonal, getLongShape, getMatrixComponent, getRow, getShape, getShape, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hassOrthonormalRows, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isBoolean, isDiagonal, isElementConstrained, isFullyMutable, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSameShape, isSameShape, isSquare, isSymmetric, isUpperTriangular, isView, isZero, iterator, log, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiply, multiplyRow, negate, nonZeroCount, outerProduct, outputDimensions, pow, reciprocal, reshape, reshape, scale, scaleAdd, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sqrt, square, sub, sub, sub, sub, sub, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMatrix, toMatrixTranspose, toMutableMatrix, toString, toVector, trace, transform, transform, transform, transform, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, upperBandwidth, upperBandwidthLimit, validategetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponentsprotected final int rows
protected final int cols
public final double[] data
public final int rowCount()
AMatrixpublic final int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic double get(int i,
int j)
AMatrixpublic void set(int i,
int j,
double value)
AMatrixpublic double unsafeGet(int i,
int j)
AMatrixpublic void unsafeSet(int i,
int j,
double value)
AMatrixpublic abstract boolean isPackedArray()
protected abstract int index(int i,
int j)
i - j - public double[] getArray()
Copyright © 2013. All Rights Reserved.