public final class VectorMatrixMN extends AVectorMatrix<AVector>
| Constructor and Description |
|---|
VectorMatrixMN(AMatrix source) |
VectorMatrixMN(int rowCount,
int columnCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendRow(AVector row) |
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
double |
calculateElement(int i,
AVector inputVector)
Calculates a single element of the output.
|
Matrix |
clone()
Clones the transform, performing a deep copy where needed
|
int |
columnCount()
Returns the number of columns in the matrix
|
static VectorMatrixMN |
create(List<Object> rows)
Create a matrix from a list of rows
|
static VectorMatrixMN |
create(Object... vs) |
VectorMatrixMN |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
AVector |
getRow(int row)
Gets a row of the matrix.
|
boolean |
isSquare()
Returns true if the transform is square (same number of input and output dimensions)
|
void |
multiply(double factor)
Multiplies all elements of the array by a given double value
|
int |
rowCount()
Returns the number of rows in the matrix
|
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
void |
swapRows(int i,
int j)
Swaps two rows of the matrix in place
This is an elementary row operation
|
void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
double |
unsafeGet(int row,
int column)
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 row,
int column,
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.
|
static VectorMatrixMN |
wrap(AVector[] rows) |
elementSquaredSum, elementSum, isFullyMutable, isView, nonZeroCount, set, transformabs, add, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, calculateElement, clamp, cloneRow, compose, compose, composeWith, composeWith, copyColumnTo, copyOfMatrix, copyOfTranslationVector, copyRowTo, copyTo, determinant, dimensionality, divide, divide, elementCount, elementDiv, elementIterator, elementMul, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, exp, fill, get, get, get, getBand, getBandWrapped, getColumn, getElements, getLeadingDiagonal, getLongShape, getMatrixComponent, getShape, getShape, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hassOrthonormalRows, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isBoolean, isDiagonal, isElementConstrained, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSameShape, isSameShape, isSymmetric, isUpperTriangular, isZero, iterator, log, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiplyRow, negate, outerProduct, outputDimensions, pow, reciprocal, reshape, reshape, scale, scaleAdd, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sqrt, square, sub, sub, sub, sub, sub, subMatrix, swapColumns, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMatrix, toMatrixTranspose, toMutableMatrix, toString, toVector, trace, transform, transform, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, upperBandwidth, upperBandwidthLimit, validategetTranslationComponent, isLinearcompose, transformNormaltakeComponents, takeComponents, takeComponentspublic VectorMatrixMN(int rowCount,
int columnCount)
public VectorMatrixMN(AMatrix source)
public static VectorMatrixMN create(List<Object> rows)
rows - public static VectorMatrixMN create(Object... vs)
public static VectorMatrixMN wrap(AVector[] rows)
public void multiply(double factor)
INDArraypublic void applyOp(Op op)
INDArrayapplyOp in interface INDArrayapplyOp in class AVectorMatrix<AVector>public void appendRow(AVector row)
appendRow in class AVectorMatrix<AVector>public void swapRows(int i,
int j)
AMatrixpublic AVector getRow(int row)
AVectorMatrixgetRow in class AVectorMatrix<AVector>public int rowCount()
AMatrixpublic int columnCount()
AMatrixcolumnCount in interface IMatrixcolumnCount in class AMatrixpublic double get(int row,
int column)
AMatrixpublic void set(int row,
int column,
double value)
AMatrixpublic double unsafeGet(int row,
int column)
AMatrixunsafeGet in class AVectorMatrix<AVector>public void unsafeSet(int row,
int column,
double value)
AMatrixunsafeSet in class AVectorMatrix<AVector>public void transform(AVector source, AVector dest)
ATransformtransform in interface ITransformtransform in class AVectorMatrix<AVector>public double calculateElement(int i,
AVector inputVector)
ATransformcalculateElement in class AVectorMatrix<AVector>public boolean isSquare()
ATransformpublic Matrix clone()
ATransformclone in interface INDArrayclone in class AVectorMatrix<AVector>public VectorMatrixMN exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixCopyright © 2013. All Rights Reserved.