public abstract class AMatrix extends AbstractArray<AVector> implements IMatrix
Constructor and Description |
---|
AMatrix() |
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(AMatrix m)
Adds another matrix to this matrix.
|
void |
add(AScalar a) |
void |
add(AVector v) |
void |
add(double d)
Adds a double value to all elements in this array
|
void |
add(INDArray a)
Adds all the elements of another array to this array, in an elementwise order.
|
void |
addAt(int i,
int j,
double d) |
void |
addMultiple(AMatrix m,
double factor) |
void |
addRowMultiple(int src,
int dst,
double factor)
Adds a multiple of a source row to a destination row
This is an elementary row operation
|
void |
applyOp(IOperator op)
Applies a unary operator to all elements of the array (in-place)
|
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
double[] |
asDoubleArray()
Returns the underlying double array representing the packed elements of this array
Returns nil if there is no such underlying array
|
List<Double> |
asElementList()
Returns a list containing all elements of this array
|
AVector |
asVector()
Returns the matrix values as a single reference Vector in the form [row0
row1 row2....]
|
int |
bandIndex(int i,
int j)
Returns the band index number for a specified position in the matrix.
|
int |
bandLength(int band)
Returns the length of a band of the matrix.
|
protected static int |
bandLength(int rc,
int cc,
int band) |
int |
bandPosition(int i,
int j)
Returns the band position for a specified (i,j) index in the matrix.
|
INDArray |
broadcast(int... targetShape)
Returns a view of this array broadcasted up to a larger shape
|
INDArray |
broadcastCloneLike(INDArray target)
Creates a clone of the array, broadcasted if necessary to match the shape of the target
|
INDArray |
broadcastLike(AMatrix target) |
INDArray |
broadcastLike(INDArray target)
Broadcasts to match the shape of the target
|
double |
calculateElement(int i,
AVector v) |
double |
calculateElement(int i,
Vector v) |
void |
clamp(double min,
double max)
Clamps all the elments of this array within the specified [min,max] range
|
AMatrix |
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.
|
AVector |
cloneColumn(int row)
Creates a mutable vector that is the clone of a single column of this matrix
|
AVector |
cloneRow(int row)
Creates a mutable vector that is the clone of a single row of this matrix
|
abstract int |
columnCount()
Returns the number of columns in the matrix
|
AMatrix |
compose(AMatrix a)
Composes this matrix with another matrix (matrix multiplication)
Returns a new matrix that represents the compose transformation.
|
void |
composeWith(AMatrix a) |
void |
copyColumnTo(int col,
double[] dest,
int destOffset) |
void |
copyRowTo(int row,
double[] dest,
int destOffset) |
void |
copyTo(double[] arr)
Copies all the elements of this INDArray to the specified double array
|
double |
determinant()
Calculates the determinant of the matrix.
|
int |
dimensionality()
Returns the dimensionality of the array (number of dimensions in the array shape)
e.g.
|
void |
divide(double factor)
Divides all elements by a given factor
|
void |
divide(INDArray a)
Divides all elements by the equivalent elements in a second array
|
long |
elementCount()
Returns the total number of elements in this array.
|
void |
elementDiv(AMatrix m)
Divides this matrix in-place by another in an entrywise manner (Hadamard product).
|
Iterator<Double> |
elementIterator()
Returns an iterator over all elements in this array.
|
void |
elementMul(AMatrix m)
Multiplies this matrix in-place by another in an entrywise manner (Hadamard product).
|
double |
elementSquaredSum()
Returns the squared sum of all elements in the matrix
|
double |
elementSum()
Returns the sum of all elements in the matrix
|
INDArray |
ensureMutable()
Ensures the array is a fully mutable, efficient representation that is not
a view.
|
boolean |
epsilonEquals(AMatrix a)
Returns true if this matrix is approximately equal to
a second matrix, up to a default tolerance level
|
boolean |
epsilonEquals(INDArray a)
Tests is this array is approximately equal to another array.
|
boolean |
epsilonEquals(INDArray a,
double epsilon)
Tests is this array is approximately equal to another array, up to a given tolerance (epsilon)
The arrays must have the same shape
|
boolean |
equals(AAffineTransform a) |
boolean |
equals(AMatrix a) |
boolean |
equals(INDArray v)
Returns true if the two arrays are exactly equal in value and shape
|
boolean |
equals(Object o) |
boolean |
equalsTranspose(AMatrix a)
Tests if this matrix ios exactly equal to the transpose of another matrix
|
abstract AMatrix |
exactClone()
Returns an exact deep clone of an array (i.e.
|
void |
exp()
Computes the function e^x (in-place) for all array elements
|
void |
fill(double value)
Fills the array with asingle double value
|
double |
get()
Returns the double value of a scalar array
|
double |
get(int... indexes)
Returns the double value at the specified index position in an array
|
double |
get(int row)
Returns the double value at the specified position in a 1D vector
|
abstract double |
get(int row,
int column)
Returns a specified element in the matrix
|
AVector |
getBand(int band)
Gets a specific band of the matrix, as a view vector.
|
AVector |
getBandWrapped(int band) |
AVector |
getColumn(int column)
Returns a column of the matrix as a vector view
|
void |
getElements(double[] dest,
int offset)
Gets all elements of the array, copying them into a double array
|
AVector |
getLeadingDiagonal()
Returns a vector view of the leading diagonal values of the matrix
|
long[] |
getLongShape()
Returns the shape of the array as an array of longs.
|
AVector |
getRow(int row)
Returns a row of the matrix as a vector view
|
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
|
List<AVector> |
getSlices()
Returns a list of all major slices of this array.
|
List<INDArray> |
getSlices(int dimension)
Returns a list of all slices of this array along a given dimension
|
List<INDArray> |
getSliceViews()
Returns a list of slices as mutable INDArray views.
|
AMatrix |
getTranspose()
Returns a transposed version of this matrix.
|
Matrix |
getTransposeCopy()
Returns a transposed copy of the array.
|
AMatrix |
getTransposeView()
Returns a transposed view of the array.
|
int |
hashCode() |
boolean |
hasOrthonormalColumns() |
boolean |
hasOrthonormalRows() |
INDArray |
immutable()
Returns an immutable version of this INDArray's data
|
AMatrix |
innerProduct(AMatrix a) |
AMatrix |
innerProduct(AScalar s) |
AVector |
innerProduct(AVector v) |
INDArray |
innerProduct(INDArray a)
Calculates the inner product of this array with another array.
|
Matrix |
innerProduct(Matrix a) |
Vector |
innerProduct(Vector v) |
int |
inputDimensions()
Returns the number of dimensions required for input vectors
|
AMatrix |
inverse() |
boolean |
isBoolean()
Returns true if the array is boolean (contains only 0.0 or 1.0 values)
|
boolean |
isDiagonal()
Returns true iff a matrix is a square diagonal matrix
|
boolean |
isElementConstrained()
Returns true if this array has some constraints on element values
|
abstract boolean |
isFullyMutable()
If this method returns true, the INDArray is guaranteed to be fully mutable
in all positions i.e.
|
boolean |
isHermitian()
Returns true if a matrix is Hermitian
This is equivalent to isSymmetric(), since all Vectorz matrices have real values.
|
boolean |
isIdentity() |
boolean |
isInvertible() |
boolean |
isLowerTriangular()
Returns true if a matrix is lower triangular
|
boolean |
isMutable()
Returns true if the INDArray is mutable (at least partially)
|
boolean |
isOrthogonal() |
void |
isPositiveDefinite()
Returns true if a matrix is positive definite
|
boolean |
isRectangularDiagonal() |
boolean |
isSameShape(AMatrix a) |
boolean |
isSameShape(INDArray a)
Returns true if this array is the same shape as another array
|
boolean |
isSquare() |
boolean |
isSymmetric()
Returns true if a matrix is symmetric
|
boolean |
isUpperTriangular()
Returns true if a matrix is upper triangular
|
boolean |
isView()
Return true if this array is a view type
|
boolean |
isZero()
Returns true if the matrix is the zero matrix (all components zero)
|
Iterator<AVector> |
iterator()
Returns an iterator over rows in this Matrix
|
INDArray |
join(INDArray a,
int dimension)
Joins an array with another array along a specified dimension
|
void |
log()
Computes the natural logarithm (in-place) for all array elements
|
int |
lowerBandwidth()
Computes the lower bandwidth of a matrix
|
int |
lowerBandwidthLimit()
A limit on the lower bandwidth of the banded matrix.
|
void |
mul(AMatrix a)
"Multiplies" this matrix by another, composing the transformation
|
void |
multiply(double factor)
Multiplies all elements of the array by a given double value
|
void |
multiply(INDArray a)
Multiplies all elements by the equivalent elements in a second array
|
void |
multiplyRow(int i,
double factor)
Multiplies a row by a constant factor
This is an elementary row operation
|
INDArray |
mutable()
Coerces this INDArray to a fully mutable format.
|
void |
negate()
Negates all elements in the array
|
long |
nonZeroCount()
Returns the number of non-zero elements in the array.
|
INDArray |
outerProduct(INDArray a)
Calculates the outer product of this array with another array.
|
int |
outputDimensions()
Returns the number of dimensions required for output vectors
|
void |
pow(double exponent)
Raises all elements of the array to a specified power
|
void |
reciprocal()
Replaces all elements in the array with their reciprocal
|
void |
replaceColumn(int i,
AVector row)
Replaces a column in a matrix, adding the column to the internal structure of the matrix.
|
void |
replaceRow(int i,
AVector row)
Replaces a row in a matrix, adding the row to the internal structure of the matrix.
|
INDArray |
reshape(int... dimensions)
Returns a new array by rearranging the elements of this array into the desired shape
Truncates or zero-pads the elements as required to fill the new shape
|
Matrix |
reshape(int rows,
int cols) |
INDArray |
rotateView(int dimension,
int shift)
Returns rotated view of this array
|
abstract int |
rowCount()
Returns the number of rows in the matrix
|
void |
scaleAdd(double factor,
double constant)
Scales all elements of the array by a given double value and adds a constant vale
|
void |
set(AMatrix a) |
void |
set(double value)
Sets all elements of an array to a specific double value
|
void |
set(INDArray a)
Sets this array to the element values contained in another array
|
void |
set(int[] indexes,
double value) |
void |
set(int row,
double value) |
abstract void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
void |
set(Object o)
Sets this array to the element values contained in the given object.
|
void |
setColumn(int i,
AVector col)
Sets a column in a matrix.
|
void |
setElements(double[] values)
Sets all elements in an array using the given double values
|
void |
setElements(double[] values,
int offset,
int length)
Sets all elements in an array using the given double values
|
void |
setRow(int i,
AVector row)
Sets a row in a matrix.
|
void |
signum()
Calculates the signum of all elements of the array
|
AVector |
slice(int row)
Returns the specified major slice of this array as a view (slice along dimension 0)
|
AVector |
slice(int dimension,
int index)
Returns a slice view of this array along the specified dimension
|
int |
sliceCount()
returns the number of major slices in this array.
|
void |
sqrt()
Computes the square root of all elements in the array
|
void |
square()
Squares all elements of the array
|
void |
sub(AMatrix m)
Subtracts another matrix from this one
|
void |
sub(AScalar a) |
void |
sub(AVector v) |
void |
sub(double d)
Subtracts a double value from all elements in this array
|
void |
sub(INDArray a)
Subtracts all the elements of another array from this array, in an elementwise order.
|
AMatrix |
subArray(int[] offsets,
int[] shape)
Returns a subarray view of a larger array
|
AMatrix |
subMatrix(int rowStart,
int rows,
int colStart,
int cols) |
void |
swapColumns(int i,
int j)
Swaps two columns of the matrix in place
|
void |
swapRows(int i,
int j)
Swaps two rows of the matrix in place
This is an elementary row operation
|
AAffineTransform |
toAffineTransform() |
Array |
toArray()
Converts the array into a packed mutable Array instance
|
double[] |
toDoubleArray()
Copies the elements of this INDArray to a new double array
|
void |
toDoubleBuffer(DoubleBuffer dest)
Copies the elements of this INDArray to the specified double buffer
|
Matrix |
toMatrix()
Coerces the matrix to the standard mutable Matrix type
in row major order.
|
Matrix |
toMatrixTranspose()
Coerces the transpose of a matrix to the standard mutable Matrix type
in row major order.
|
AMatrix |
toMutableMatrix()
Creates a fully mutable deep copy of this matrix
|
String |
toString() |
Vector |
toVector()
Converts the matrix to a single flattened vector
in row major order.
|
double |
trace() |
AVector |
transform(AVector source) |
void |
transform(AVector source,
AVector dest) |
Vector |
transform(Vector source) |
void |
transform(Vector source,
Vector dest) |
void |
transformInPlace(AArrayVector v) |
void |
transformInPlace(AVector v) |
AMatrix |
transposeInnerProduct(AMatrix s) |
Matrix |
transposeInnerProduct(Matrix s) |
void |
transposeInPlace() |
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.
|
int |
upperBandwidth()
Computes the upper bandwidth of a matrix
|
int |
upperBandwidthLimit()
A limit on the upper bandwidth of the banded matrix.
|
void |
validate()
Validates the internal data structure of the INDArray.
|
density, elementMax, elementMin, scale, sparse
finalize, getClass, notify, notifyAll, wait, wait, wait
elementMax, elementMin, scale, sparse
public abstract int rowCount()
public abstract int columnCount()
columnCount
in interface IMatrix
public abstract double get(int row, int column)
public abstract void set(int row, int column, double value)
public final double get(int row)
INDArray
get
in interface INDArray
get
in class AbstractArray<AVector>
public final double get()
INDArray
get
in interface INDArray
get
in class AbstractArray<AVector>
public void set(int row, double value)
set
in interface INDArray
set
in class AbstractArray<AVector>
public void set(double value)
INDArray
set
in interface INDArray
set
in class AbstractArray<AVector>
public void fill(double value)
INDArray
fill
in interface INDArray
fill
in class AbstractArray<AVector>
public void unsafeSet(int row, int column, double value)
row
- column
- public double unsafeGet(int row, int column)
row
- column
- public void clamp(double min, double max)
INDArray
clamp
in interface INDArray
clamp
in class AbstractArray<AVector>
public void pow(double exponent)
INDArray
pow
in interface INDArray
pow
in class AbstractArray<AVector>
public void square()
INDArray
square
in interface INDArray
square
in class AbstractArray<AVector>
public int dimensionality()
INDArray
dimensionality
in interface INDArray
public final int inputDimensions()
public final int outputDimensions()
public long elementCount()
INDArray
elementCount
in interface INDArray
public final AVector slice(int row)
INDArray
public AVector slice(int dimension, int index)
INDArray
public int sliceCount()
INDArray
sliceCount
in interface INDArray
public List<AVector> getSlices()
INDArray
getSlices
in interface INDArray
getSlices
in class AbstractArray<AVector>
public List<INDArray> getSlices(int dimension)
INDArray
getSlices
in interface INDArray
getSlices
in class AbstractArray<AVector>
public List<INDArray> getSliceViews()
INDArray
getSliceViews
in interface INDArray
getSliceViews
in class AbstractArray<AVector>
public INDArray join(INDArray a, int dimension)
INDArray
join
in interface INDArray
join
in class AbstractArray<AVector>
public int[] getShape()
INDArray
public int[] getShapeClone()
INDArray
getShapeClone
in interface INDArray
getShapeClone
in class AbstractArray<AVector>
public int getShape(int dim)
INDArray
getShape
in interface INDArray
getShape
in class AbstractArray<AVector>
public long[] getLongShape()
INDArray
getLongShape
in interface INDArray
getLongShape
in class AbstractArray<AVector>
public double get(int... indexes)
INDArray
public AVector getLeadingDiagonal()
public double calculateElement(int i, AVector v)
public double calculateElement(int i, Vector v)
public AAffineTransform toAffineTransform()
public boolean isIdentity()
public boolean isOrthogonal()
public boolean hasOrthonormalColumns()
public boolean hasOrthonormalRows()
public INDArray reshape(int... dimensions)
INDArray
reshape
in interface INDArray
reshape
in class AbstractArray<AVector>
public Matrix reshape(int rows, int cols)
public AMatrix subMatrix(int rowStart, int rows, int colStart, int cols)
public AMatrix subArray(int[] offsets, int[] shape)
INDArray
subArray
in interface INDArray
subArray
in class AbstractArray<AVector>
public INDArray rotateView(int dimension, int shift)
INDArray
rotateView
in interface INDArray
rotateView
in class AbstractArray<AVector>
public void transformInPlace(AVector v)
transformInPlace
in interface IMatrix
public void transformInPlace(AArrayVector v)
public AVector getRow(int row)
public AVector getColumn(int column)
public AVector cloneRow(int row)
row
- public AVector cloneColumn(int row)
row
- public void set(AMatrix a)
public void set(INDArray a)
INDArray
set
in interface INDArray
set
in class AbstractArray<AVector>
public void set(Object o)
INDArray
set
in interface INDArray
set
in class AbstractArray<AVector>
public void setElements(double[] values, int offset, int length)
INDArray
setElements
in interface INDArray
setElements
in class AbstractArray<AVector>
public void getElements(double[] dest, int offset)
INDArray
getElements
in interface INDArray
getElements
in class AbstractArray<AVector>
public void copyTo(double[] arr)
INDArray
copyTo
in interface INDArray
copyTo
in class AbstractArray<AVector>
public void setElements(double[] values)
INDArray
setElements
in interface INDArray
setElements
in class AbstractArray<AVector>
public abstract boolean isFullyMutable()
INDArray
isFullyMutable
in interface INDArray
isFullyMutable
in class AbstractArray<AVector>
public boolean isMutable()
INDArray
isMutable
in interface INDArray
isMutable
in class AbstractArray<AVector>
public boolean isElementConstrained()
INDArray
isElementConstrained
in interface INDArray
isElementConstrained
in class AbstractArray<AVector>
public AMatrix clone()
INDArray
clone
in interface INDArray
clone
in class AbstractArray<AVector>
public INDArray ensureMutable()
INDArray
ensureMutable
in interface INDArray
ensureMutable
in class AbstractArray<AVector>
public double determinant()
public AMatrix toMutableMatrix()
public void transposeInPlace()
public AMatrix getTranspose()
getTranspose
in interface INDArray
getTranspose
in class AbstractArray<AVector>
public AMatrix getTransposeView()
INDArray
getTransposeView
in interface INDArray
getTransposeView
in class AbstractArray<AVector>
public Matrix getTransposeCopy()
INDArray
getTransposeCopy
in interface INDArray
getTransposeCopy
in class AbstractArray<AVector>
public void add(AMatrix m)
m
- public void add(AVector v)
public void sub(AVector v)
public void sub(double d)
INDArray
sub
in interface INDArray
sub
in class AbstractArray<AVector>
public final void scaleAdd(double factor, double constant)
INDArray
scaleAdd
in interface INDArray
scaleAdd
in class AbstractArray<AVector>
public void multiply(double factor)
INDArray
multiply
in interface INDArray
multiply
in class AbstractArray<AVector>
public double elementSum()
elementSum
in interface INDArray
elementSum
in class AbstractArray<AVector>
m
- public double elementSquaredSum()
elementSquaredSum
in interface INDArray
elementSquaredSum
in class AbstractArray<AVector>
m
- public Iterator<Double> elementIterator()
INDArray
elementIterator
in interface INDArray
elementIterator
in class AbstractArray<AVector>
public boolean isBoolean()
INDArray
isBoolean
in interface INDArray
isBoolean
in class AbstractArray<AVector>
public long nonZeroCount()
INDArray
nonZeroCount
in interface INDArray
nonZeroCount
in class AbstractArray<AVector>
public void sub(AMatrix m)
m
- public void sub(AScalar a)
public void add(AScalar a)
public void negate()
INDArray
negate
in interface INDArray
negate
in class AbstractArray<AVector>
public void reciprocal()
INDArray
reciprocal
in interface INDArray
reciprocal
in class AbstractArray<AVector>
public void abs()
INDArray
abs
in interface INDArray
abs
in class AbstractArray<AVector>
public void sqrt()
INDArray
sqrt
in interface INDArray
sqrt
in class AbstractArray<AVector>
public void log()
INDArray
log
in interface INDArray
log
in class AbstractArray<AVector>
public void exp()
INDArray
exp
in interface INDArray
exp
in class AbstractArray<AVector>
public void signum()
INDArray
signum
in interface INDArray
signum
in class AbstractArray<AVector>
public void elementMul(AMatrix m)
m
- public void elementDiv(AMatrix m)
m
- public void mul(AMatrix a)
a
- public void multiplyRow(int i, double factor)
public void addRowMultiple(int src, int dst, double factor)
public void swapRows(int i, int j)
public void swapColumns(int i, int j)
public void composeWith(AMatrix a)
public boolean isView()
INDArray
public void addMultiple(AMatrix m, double factor)
public boolean epsilonEquals(INDArray a)
INDArray
epsilonEquals
in interface INDArray
epsilonEquals
in class AbstractArray<AVector>
public boolean epsilonEquals(INDArray a, double epsilon)
INDArray
epsilonEquals
in interface INDArray
epsilonEquals
in class AbstractArray<AVector>
public boolean equals(Object o)
equals
in class AbstractArray<AVector>
public boolean equals(AMatrix a)
public boolean equalsTranspose(AMatrix a)
a
- public boolean equals(INDArray v)
INDArray
equals
in interface INDArray
equals
in class AbstractArray<AVector>
public boolean epsilonEquals(AMatrix a)
public boolean equals(AAffineTransform a)
public String toString()
toString
in class AbstractArray<AVector>
public int hashCode()
hashCode
in class AbstractArray<AVector>
public AVector asVector()
asVector
in interface INDArray
asVector
in class AbstractArray<AVector>
public List<Double> asElementList()
INDArray
asElementList
in interface INDArray
asElementList
in class AbstractArray<AVector>
public final AMatrix compose(AMatrix a)
a
- public INDArray innerProduct(INDArray a)
INDArray
innerProduct
in interface INDArray
innerProduct
in class AbstractArray<AVector>
public INDArray outerProduct(INDArray a)
INDArray
outerProduct
in interface INDArray
outerProduct
in class AbstractArray<AVector>
public double trace()
public boolean isInvertible()
isInvertible
in interface IMatrix
public Vector toVector()
toVector
in interface INDArray
toVector
in class AbstractArray<AVector>
public Array toArray()
INDArray
toArray
in interface INDArray
toArray
in class AbstractArray<AVector>
public Matrix toMatrix()
public Matrix toMatrixTranspose()
public void toDoubleBuffer(DoubleBuffer dest)
INDArray
toDoubleBuffer
in interface INDArray
toDoubleBuffer
in class AbstractArray<AVector>
public double[] toDoubleArray()
INDArray
toDoubleArray
in interface INDArray
toDoubleArray
in class AbstractArray<AVector>
public double[] asDoubleArray()
INDArray
asDoubleArray
in interface INDArray
asDoubleArray
in class AbstractArray<AVector>
public void applyOp(Op op)
INDArray
applyOp
in interface INDArray
applyOp
in class AbstractArray<AVector>
public void applyOp(IOperator op)
INDArray
applyOp
in interface INDArray
applyOp
in class AbstractArray<AVector>
public void add(INDArray a)
INDArray
add
in interface INDArray
add
in class AbstractArray<AVector>
public void multiply(INDArray a)
INDArray
multiply
in interface INDArray
multiply
in class AbstractArray<AVector>
public void divide(INDArray a)
INDArray
divide
in interface INDArray
divide
in class AbstractArray<AVector>
public void divide(double factor)
INDArray
divide
in interface INDArray
divide
in class AbstractArray<AVector>
public void sub(INDArray a)
INDArray
sub
in interface INDArray
sub
in class AbstractArray<AVector>
public void add(double d)
INDArray
add
in interface INDArray
add
in class AbstractArray<AVector>
public void addAt(int i, int j, double d)
public INDArray broadcast(int... targetShape)
INDArray
broadcast
in interface INDArray
broadcast
in class AbstractArray<AVector>
public INDArray broadcastLike(INDArray target)
INDArray
broadcastLike
in interface INDArray
broadcastLike
in class AbstractArray<AVector>
public INDArray broadcastCloneLike(INDArray target)
INDArray
broadcastCloneLike
in interface INDArray
broadcastCloneLike
in class AbstractArray<AVector>
public boolean isZero()
isZero
in interface INDArray
isZero
in class AbstractArray<AVector>
public void isPositiveDefinite()
public boolean isDiagonal()
public boolean isSameShape(INDArray a)
INDArray
isSameShape
in interface INDArray
isSameShape
in class AbstractArray<AVector>
public boolean isSameShape(AMatrix a)
public boolean isRectangularDiagonal()
public boolean isSymmetric()
public final boolean isHermitian()
public boolean isUpperTriangular()
public boolean isLowerTriangular()
public int upperBandwidthLimit()
public int lowerBandwidthLimit()
public int bandLength(int band)
band
- protected static final int bandLength(int rc, int cc, int band)
public int bandIndex(int i, int j)
i
- j
- public int bandPosition(int i, int j)
i
- j
- public int upperBandwidth()
public int lowerBandwidth()
public AVector getBand(int band)
band
- public AVector getBandWrapped(int band)
public void setRow(int i, AVector row)
i
- row
- public void replaceRow(int i, AVector row)
i
- row
- public void replaceColumn(int i, AVector row)
i
- row
- public void setColumn(int i, AVector col)
i
- row
- public abstract AMatrix exactClone()
INDArray
exactClone
in interface INDArray
public INDArray immutable()
INDArray
immutable
in interface INDArray
immutable
in class AbstractArray<AVector>
public INDArray mutable()
INDArray
mutable
in interface INDArray
mutable
in class AbstractArray<AVector>
public void validate()
INDArray
validate
in interface INDArray
validate
in class AbstractArray<AVector>
public void copyRowTo(int row, double[] dest, int destOffset)
public void copyColumnTo(int col, double[] dest, int destOffset)
Copyright © 2014. All Rights Reserved.