public final class DenseColumnMatrix extends AStridedMatrix implements IFastColumns, IDense
datacols, rows| Modifier and Type | Method and Description |
|---|---|
void |
abs()
Replaces all elements of this array with their absolute values, according to Math.abs(double)
|
void |
add(double d)
Adds a double value to all elements in this array.
|
void |
addAt(int i,
int j,
double d)
Adds a value at a specific position in the matrix, mutating the matrix
Does not perform bounds checking - this in an unsafe operation
|
void |
addMultiple(AMatrix m,
double factor)
Adds a scalar multiple of another matrix to this matrix
|
void |
addOuterProduct(AVector a,
AVector b)
Adds the outer product of two vectors to this matrix
|
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
void |
clamp(double min,
double max)
Clamps all the elements of this array within the specified [min,max] range
|
int |
columnStride()
Gets the column stride for this strided matrix.
|
DenseColumnMatrix |
copy()
Returns a defensive copy of the array data.
|
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
|
static DenseColumnMatrix |
create(AMatrix m) |
DenseColumnMatrix |
dense()
Coerces this INDArray to a dense format, without changing its element values.
|
double |
elementMax()
Returns the maximum element value in this array.
|
double |
elementMin()
Returns the maximum element value in this array.
|
double |
elementSquaredSum()
Returns the squared sum of all elements in this matrix
|
double |
elementSum()
Returns the sum of all elements in this matrix
|
DenseColumnMatrix |
exactClone()
Creates a deep clone of an array, using the same class implementation as the original array
|
void |
exp()
Computes the function e^x (in-place) for all array elements
|
void |
fill(double value)
Fills this array with a single double value.
|
double |
get(int i,
int j)
Returns the double value at the specified position in a 2D matrix
|
int |
getArrayOffset()
Gets the data array offset for the first element of this strided array
|
ArraySubVector |
getColumn(int j)
Returns a column of the matrix.
|
Matrix |
getTranspose()
Returns the transpose of this array.
|
Matrix |
getTransposeView()
Returns a transposed view of the array.
|
protected int |
index(int i,
int j)
Computes the index into the underlying data array for a given position in this array-backed matrix
|
boolean |
isBoolean()
Returns true if the array is boolean (contains only 0.0 or 1.0 values)
|
boolean |
isFullyMutable()
If this method returns true, the INDArray is guaranteed to be fully mutable
in all positions i.e.
|
boolean |
isPackedArray()
Returns true if the data array is fully packed by this matrix in row-major order
|
boolean |
isZero()
Returns true if the matrix is the zero matrix (all components zero)
|
void |
log()
Computes the natural logarithm (in-place) for all array elements
|
void |
multiply(double factor)
Multiplies all elements of the array in place by a given double value
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
void |
reciprocal()
Replaces all elements in the array with their reciprocal
|
int |
rowStride()
Gets the row stride for this strided matrix.
|
void |
set(AMatrix m)
Sets this matrix with the element values from another matrix.
|
void |
set(int i,
int j,
double value)
Sets a value at a given position in a mutable 2D array
|
void |
setColumn(int j,
AVector col)
Sets a column in a matrix.
|
void |
setRow(int i,
AVector row)
Sets a row in a matrix to the value specified by the given vector
|
void |
signum()
Calculates the signum of all elements of this mutable array
Sets each component of the array to its sign value (-1, 0 or 1)
|
void |
square()
Squares all elements of the array in place
|
Matrix |
toMatrixTranspose()
Coerces the transpose of a matrix to the standard mutable Matrix type
in row major order.
|
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.
|
static DenseColumnMatrix |
wrap(int rows,
int cols,
double[] data) |
add, add, addToArray, applyOpCopy, asDoubleArray, clone, diagonalProduct, elementIterator, getBand, getColumnView, getRow, getRowView, getStride, getStrides, reduce, rowDotProduct, subMatrix, tracegetArray, getTransposeCopybandLength, checkColumn, checkIndex, checkRow, checkSameShape, checkSameShape, checkSquare, columnCount, elementCount, getShape, getShape, getShapeClone, isSameShape, isSameShape, isSameShape, isSquare, rowCountadd, add2, addCopy, addCopy, addCopy, addCopy, addCopy, addInnerProduct, addInnerProduct, addInnerProduct, addMultiple, addMultiple, addOuterProduct, addRowMultiple, applyOp, applyOp, applyOp, applyOp, applyOp, asElementList, asVector, bandIndex, bandLength, bandPosition, bandStartColumn, bandStartRow, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, checkColumnCount, checkDimension, checkRowCount, checkShape, composeWith, denseClone, determinant, dimensionality, divide, divide, divide, divide, elementsEqual, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsArray, equalsByRows, equalsTranspose, get, get, get, getBandWrapped, getColumnClone, getColumns, getElements, getLeadingDiagonal, getLongShape, getRowClone, getRows, getSlices, getSlices, getSliceViews, hashCode, hasOrthonormalColumns, hasOrthonormalRows, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, inverse, isDiagonal, isElementConstrained, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSymmetric, isUpperTriangular, isView, iterator, join, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiply, multiply, multiplyCopy, multiplyRow, mutable, negate, outerProduct, outputDimensions, pow, rank, reduce, reduceSlices, reduceSlices, reorder, reorder, replaceColumn, replaceRow, reshape, reshape, rotateView, scaleAdd, scaleAdd, set, set, set, set, set, set, set, setElements, setElements, slice, slice, sliceCount, sparse, sparseClone, sqrt, sub, sub, sub, subArray, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMatrix, toMutableMatrix, toNestedDoubleArrays, toSliceArray, toString, toStringFull, toVector, transform, transform, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, upperBandwidth, upperBandwidthLimit, validateabsCopy, add, addAt, addInnerProduct, addPower, addPower, broadcastLike, checkMutable, componentCount, density, divideCopy, elementAbsPowSum, 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, waitadd2, addCopy, addCopy, columnCount, diagonalProduct, getBand, getColumnClone, getColumns, getColumnView, getRow, getRowClone, getRows, getRowView, innerProduct, innerProduct, innerProduct, inverse, isDiagonal, isIdentity, isInvertible, isRectangularDiagonal, isSquare, isSymmetric, rowCount, subMatrix, toNestedDoubleArrays, trace, transform, transformInPlace, transposeInPlaceabsCopy, add, addAt, addCopy, addCopy, addInnerProduct, addMultiple, addOuterProduct, addPower, addPower, addToArray, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, broadcastLike, checkMutable, clone, componentCount, denseClone, dimensionality, divide, divide, divideCopy, elementAbsPowSum, elementCount, elementIterator, elementPowSum, elementProduct, elementsEqual, ensureMutable, epsilonEquals, epsilonEquals, equals, equalsArray, equalsArray, get, get, get, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, getElements, getLongShape, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTransposeCopy, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, isDense, isElementConstrained, isMutable, isSameShape, isSparse, isView, join, join, multiply, multiplyCopy, multiplyCopy, mutable, negate, negateCopy, outerProduct, pow, reciprocalCopy, reduce, reduce, reduceSlices, reduceSlices, reorder, reorder, reshape, rotateView, scale, scaleAdd, scaleAdd, scaleCopy, set, set, set, set, set, set, setElements, setElements, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, slice, slice, sliceCount, sliceValue, sparse, sparseClone, sqrt, squareCopy, sub, sub, subArray, subCopy, toArray, toDoubleArray, toDoubleBuffer, toSliceArray, toVector, validate, withComponentsgetArrayforEach, spliteratorpublic static DenseColumnMatrix wrap(int rows, int cols, double[] data)
public static DenseColumnMatrix create(AMatrix m)
public int getArrayOffset()
IStridedArraygetArrayOffset in interface IStridedArraygetArrayOffset in class AStridedMatrixpublic int rowStride()
AStridedMatrixrowStride in class AStridedMatrixpublic int columnStride()
AStridedMatrixcolumnStride in class AStridedMatrixpublic ArraySubVector getColumn(int j)
IMatrixgetColumn in interface IMatrixgetColumn in interface IFastColumnsgetColumn in class AStridedMatrixpublic void copyRowTo(int i,
double[] dest,
int destOffset)
AMatrixcopyRowTo in class AStridedMatrixi - The index of the selected rowdest - Destination double[] arraydestOffset - Offset into destination arraypublic void copyColumnTo(int j,
double[] dest,
int destOffset)
AMatrixcopyColumnTo in class AStridedMatrixdest - Destination double[] arraypublic void setRow(int i,
AVector row)
AMatrixpublic void setColumn(int j,
AVector col)
AMatrixpublic void addMultiple(AMatrix m, double factor)
AMatrixaddMultiple in class AMatrixpublic void addOuterProduct(AVector a, AVector b)
AMatrixaddOuterProduct in class AMatrixpublic void set(AMatrix m)
AMatrixprotected int index(int i,
int j)
AArrayMatrixindex in class AArrayMatrixpublic double get(int i,
int j)
INDArraypublic void set(int i,
int j,
double value)
INDArraypublic void unsafeSet(int i,
int j,
double value)
AMatrixunsafeSet in class AArrayMatrixpublic double unsafeGet(int i,
int j)
AMatrixunsafeGet in class AArrayMatrixpublic void addAt(int i,
int j,
double d)
IMatrixpublic boolean isFullyMutable()
INDArrayisFullyMutable in interface INDArrayisFullyMutable in class AMatrixpublic boolean isPackedArray()
AArrayMatrixisPackedArray in interface IStridedArrayisPackedArray in class AStridedMatrixpublic boolean isBoolean()
INDArraypublic boolean isZero()
AMatrixisZero in interface INDArrayisZero in class AStridedMatrixpublic double elementSum()
AMatrixelementSum in interface INDArrayelementSum in class AMatrixpublic double elementSquaredSum()
AMatrixelementSquaredSum in interface INDArrayelementSquaredSum in class AMatrixpublic double elementMax()
INDArrayelementMax in interface INDArrayelementMax in class AbstractArray<AVector>public double elementMin()
INDArrayelementMin in interface INDArrayelementMin in class AbstractArray<AVector>public void abs()
INDArraypublic void signum()
INDArraypublic void square()
INDArraypublic void exp()
INDArraypublic void log()
INDArraypublic void applyOp(Op op)
INDArrayapplyOp in interface INDArrayapplyOp in class AStridedMatrixpublic long nonZeroCount()
INDArraynonZeroCount in interface INDArraynonZeroCount in class AMatrixpublic void add(double d)
INDArraypublic void multiply(double factor)
INDArraypublic void fill(double value)
INDArraypublic void reciprocal()
INDArrayreciprocal in interface INDArrayreciprocal in class AMatrixpublic void clamp(double min,
double max)
INDArraypublic Matrix getTranspose()
INDArraygetTranspose in interface INDArraygetTranspose in interface IMatrixgetTranspose in class AStridedMatrixpublic Matrix getTransposeView()
INDArraygetTransposeView in interface INDArraygetTransposeView in interface IMatrixgetTransposeView in class AStridedMatrixpublic DenseColumnMatrix exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixpublic DenseColumnMatrix dense()
INDArraypublic DenseColumnMatrix copy()
INDArraypublic Matrix toMatrixTranspose()
AMatrixtoMatrixTranspose in class AMatrixCopyright © 2016. All rights reserved.