public class Matrix extends Object implements Cloneable
An abstract class, describing an abstract Matrix about R (double) Implements: Add, Mult, Get(X,Y) and Set(X,Y)
Constructor and Description |
---|
Matrix(int rows,
int cols) |
Matrix(Matrix source) |
Modifier and Type | Method and Description |
---|---|
static Matrix |
add(Matrix A,
Matrix B) |
static Matrix |
add(Matrix A,
Matrix B,
Matrix res) |
Matrix |
clone() |
void |
copy(Matrix source) |
double |
get(int row,
int col) |
double[] |
getData()
This method is provided only for the use of performant conversions to other matrix implementations.
|
static Matrix |
mult(Matrix A,
Matrix B) |
static Matrix |
mult(Matrix A,
Matrix B,
Matrix res)
res = A * B
|
static Matrix |
multTranspose(Matrix A,
Matrix B) |
static Matrix |
multTranspose(Matrix A,
Matrix B,
Matrix res)
res = At * B
|
void |
set(int row,
int col,
double d) |
static Matrix |
subtract(Matrix A,
Matrix B,
Matrix res) |
String |
toString() |
static Matrix |
transpose(Matrix A) |
static Matrix |
transpose(Matrix A,
Matrix res) |
public Matrix(int rows, int cols)
public Matrix(Matrix source)
public void copy(Matrix source)
public void set(int row, int col, double d)
public double get(int row, int col)
public static Matrix mult(Matrix A, Matrix B, Matrix res)
res = A * B
A
- B
- res
- public static Matrix multTranspose(Matrix A, Matrix B, Matrix res)
res = At * B
A
- B
- res
- public double[] getData()
This method is provided only for the use of performant conversions to other matrix implementations.