public interface Matrix
extends scala.Serializable
Modifier and Type | Method and Description |
---|---|
double |
apply(int i,
int j)
Gets the (i, j)-th element.
|
Matrix |
copy()
Get a deep copy of the matrix.
|
int |
index(int i,
int j)
Return the index for the (i, j)-th element in the backing array.
|
DenseMatrix |
multiply(DenseMatrix y)
Convenience method for `Matrix`-`DenseMatrix` multiplication.
|
DenseVector |
multiply(DenseVector y)
Convenience method for `Matrix`-`DenseVector` multiplication.
|
int |
numCols()
Number of columns.
|
int |
numRows()
Number of rows.
|
double[] |
toArray()
Converts to a dense array in column major.
|
breeze.linalg.Matrix<Object> |
toBreeze()
Converts to a breeze matrix.
|
String |
toString()
A human readable representation of the matrix
|
DenseMatrix |
transposeMultiply(DenseMatrix y)
Convenience method for `Matrix`^T^-`DenseMatrix` multiplication.
|
DenseVector |
transposeMultiply(DenseVector y)
Convenience method for `Matrix`^T^-`DenseVector` multiplication.
|
void |
update(int i,
int j,
double v)
Update element at (i, j)
|
int numRows()
int numCols()
double[] toArray()
breeze.linalg.Matrix<Object> toBreeze()
double apply(int i, int j)
int index(int i, int j)
void update(int i, int j, double v)
Matrix copy()
DenseMatrix multiply(DenseMatrix y)
DenseVector multiply(DenseVector y)
DenseMatrix transposeMultiply(DenseMatrix y)
DenseVector transposeMultiply(DenseVector y)
String toString()
toString
in class Object