Example usage for Java org.apache.mahout.math Matrix fields, constructors, methods, implement or subclass
The text is from its open source code.
double | aggregate(DoubleDoubleFunction combiner, DoubleFunction mapper) Collects the results of a function applied to each element of a matrix and then aggregated. |
Vector | aggregateColumns(VectorFunction f) Collects the results of a function applied to each column of a matrix. |
Matrix | assign(double value) Assign the value to all elements of the receiver |
Matrix | assign(double[][] values) Assign the values to the receiver |
Matrix | assign(Matrix other) Assign the other vector values to the receiver |
Matrix | assign(DoubleFunction function) Apply the function to each element of the receiver |
Matrix | assign(Matrix other, DoubleDoubleFunction function) Apply the function to each element of the receiver and the corresponding element of the other argument |
Matrix | assignColumn(int column, Vector other) Assign the other vector values to the column of the receiver |
Matrix | assignRow(int row, Vector other) Assign the other vector values to the row of the receiver |
Matrix | clone() Return a copy of the recipient |
int | columnSize() |
double | determinant() Returns matrix determinator using Laplace theorem |
Matrix | divide(double x) Return a new matrix containing the values of the recipient divided by the argument |
double | get(int row, int column) Return the value at the given indexes |
double | get(String rowLabel, String columnLabel) Return the value at the given labels |
double | getQuick(int row, int column) Return the value at the given indexes, without checking bounds |
Matrix | like(int rows, int columns) Returns an empty matrix of the same underlying class as the receiver and of the specified size. |
Matrix | minus(Matrix x) Return a new matrix containing the element by element difference of the recipient and the argument |
Matrix | plus(double x) Return a new matrix containing the sum of each value of the recipient and the argument |
Matrix | plus(Matrix x) Return a new matrix containing the element by element sum of the recipient and the argument |
int | rowSize() |
void | set(int row, int column, double value) Set the value at the given index |
void | set(String rowLabel, String columnLabel, double value) Set the value at the given index |
void | set(String rowLabel, int row, double[] rowData) Sets the row values at the given row index and updates the row labels |
void | setQuick(int row, int column, double value) Set the value at the given index, without checking bounds |
Matrix | times(double x) Return a new matrix containing the product of each value of the recipient and the argument |
Matrix | times(Matrix x) Return a new matrix containing the product of the recipient and the argument |
Matrix | transpose() Return a new matrix that is the transpose of the receiver |
Vector | viewColumn(int column) Return a reference to a column. |
Vector | viewDiagonal() Returns a reference to the diagonal of a matrix. |
Vector | viewRow(int row) Return a reference to a row. |