public class VectorMatrixMN extends AVectorMatrix<AVector>
Modifier and Type | Field and Description |
---|---|
protected int |
columnCount |
protected int |
rowCount |
protected AVector[] |
rows |
Modifier | Constructor and Description |
---|---|
protected |
VectorMatrixMN(AVector[] rows) |
protected |
VectorMatrixMN(AVector[] rows,
int rowCount,
int columnCount) |
|
VectorMatrixMN(int rowCount,
int columnCount) |
Modifier and Type | Method and Description |
---|---|
void |
addAt(int i,
int j,
double d) |
void |
appendRow(AVector row)
Appends a row to this matrix in-place.
|
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
double |
calculateElement(int i,
AVector inputVector) |
Matrix |
clone()
Returns a clone of the array, as a new array which will be fully mutable
and may be of a different class to the original.
|
int |
columnCount()
Returns the number of columns in the matrix
|
static VectorMatrixMN |
create(AMatrix source) |
static VectorMatrixMN |
create(List<AVector> 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() |
void |
multiply(double factor)
Multiplies all elements of the array by a given double value
|
void |
replaceRow(int i,
AVector row)
Replaces a row in this matrix.
|
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) |
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(AMatrix source) |
static VectorMatrixMN |
wrap(AVector[] rows) |
asVector, copyRowTo, elementSquaredSum, elementSum, fill, getElements, isBoolean, isFullyMutable, isView, isZero, nonZeroCount, set, transform
abs, add, add, add, add, add, addMultiple, addRowMultiple, applyOp, asDoubleArray, asElementList, bandIndex, bandLength, bandLength, bandPosition, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, calculateElement, clamp, cloneColumn, cloneRow, compose, composeWith, copyColumnTo, copyTo, determinant, dimensionality, divide, divide, elementCount, elementDiv, elementIterator, elementMul, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equals, equalsTranspose, exp, get, get, get, getBand, getBandWrapped, getColumn, getLeadingDiagonal, getLongShape, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hasOrthonormalRows, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isDiagonal, isElementConstrained, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSameShape, isSameShape, isSymmetric, isUpperTriangular, iterator, join, log, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiplyRow, mutable, negate, outerProduct, outputDimensions, pow, reciprocal, replaceColumn, reshape, reshape, rotateView, scaleAdd, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sqrt, square, sub, sub, sub, sub, sub, subArray, subMatrix, swapColumns, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMatrix, toMatrixTranspose, toMutableMatrix, toString, toVector, trace, transform, transform, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, upperBandwidth, upperBandwidthLimit, validate
density, elementMax, elementMin, scale, sparse
finalize, getClass, notify, notifyAll, wait, wait, wait
inverse, isInvertible, transform, transformInPlace
abs, add, add, applyOp, asDoubleArray, asElementList, broadcast, broadcastCloneLike, broadcastLike, clamp, copyTo, dimensionality, divide, divide, elementCount, elementIterator, elementMax, elementMin, ensureMutable, epsilonEquals, epsilonEquals, equals, exp, get, get, get, getLongShape, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTranspose, getTransposeCopy, getTransposeView, immutable, innerProduct, isElementConstrained, isMutable, isSameShape, join, log, multiply, mutable, negate, outerProduct, pow, reciprocal, reshape, rotateView, scale, scaleAdd, set, set, set, set, setElements, setElements, signum, slice, slice, sliceCount, sparse, sqrt, square, sub, sub, subArray, toArray, toDoubleArray, toDoubleBuffer, toVector, validate
protected int rowCount
protected final int columnCount
protected AVector[] rows
public VectorMatrixMN(int rowCount, int columnCount)
protected VectorMatrixMN(AVector[] rows, int rowCount, int columnCount)
protected VectorMatrixMN(AVector[] rows)
public static VectorMatrixMN create(List<AVector> rows)
rows
- public static VectorMatrixMN create(Object... vs)
public static VectorMatrixMN wrap(AVector[] rows)
public void multiply(double factor)
INDArray
public void applyOp(Op op)
INDArray
applyOp
in interface INDArray
applyOp
in class AVectorMatrix<AVector>
public static VectorMatrixMN create(AMatrix source)
public static VectorMatrixMN wrap(AMatrix source)
public void appendRow(AVector row)
AVectorMatrix
appendRow
in class AVectorMatrix<AVector>
public void replaceRow(int i, AVector row)
AVectorMatrix
replaceRow
in class AVectorMatrix<AVector>
public void swapRows(int i, int j)
AMatrix
public AVector getRow(int row)
AVectorMatrix
getRow
in class AVectorMatrix<AVector>
public int rowCount()
AMatrix
public int columnCount()
AMatrix
columnCount
in interface IMatrix
columnCount
in class AMatrix
public double get(int row, int column)
AMatrix
public void set(int row, int column, double value)
AMatrix
public double unsafeGet(int row, int column)
AMatrix
unsafeGet
in class AVectorMatrix<AVector>
public void unsafeSet(int row, int column, double value)
AMatrix
unsafeSet
in class AVectorMatrix<AVector>
public void transform(AVector source, AVector dest)
transform
in interface IMatrix
transform
in class AVectorMatrix<AVector>
public double calculateElement(int i, AVector inputVector)
calculateElement
in class AVectorMatrix<AVector>
public boolean isSquare()
public Matrix clone()
INDArray
clone
in interface INDArray
clone
in class AVectorMatrix<AVector>
public VectorMatrixMN exactClone()
INDArray
exactClone
in interface INDArray
exactClone
in class AMatrix
Copyright © 2014. All Rights Reserved.