|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opale.matrix.Matrix
This class implements a full matrix with real coefficients.
Constructor Summary | |
Matrix(double[][] x)
Constructeur de la classe Matrix à partir d'un tableau de doubles |
|
Matrix(int n,
int m)
Construct an n X m matrix of zeros. |
Method Summary | |
Matrix |
add(Matrix A)
Add an another matrix A to the current matrix. |
Matrix |
copy()
Make a copy of the current matrix. |
double |
get(int i,
int j)
Get a coefficient of the matrix. |
double[][] |
getArrayCopy()
Get a copy of array of matrix elements. |
int |
getColumnDim()
Get the number of columns. |
double[][] |
getInternalArray()
Get the internal two-dimensional array. |
int |
getRowDim()
Get the number of rows. |
DVect |
mul(DVect x)
Multiply the current matrix by a vector. |
void |
set(int i,
int j,
double x)
Set a coefficient of the matrix. |
java.lang.String |
toString()
Print the matrix. |
Matrix |
transpose()
Return the matrix transpose. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Matrix(int n, int m)
int
- n, row dimension.int
- m, colum dimension.public Matrix(double[][] x)
Method Detail |
public int getRowDim()
public int getColumnDim()
public double get(int i, int j)
int
- i, row index.int
- j, column index.public void set(int i, int j, double x)
int
- i, row index.int
- j, column index.double
- x, the value of coeff(i,j)public Matrix copy()
public Matrix add(Matrix A)
Matrix
- A, an another matrixpublic DVect mul(DVect x)
DVect
- x, a vectorDVect,
- the result A*xpublic Matrix transpose()
public double[][] getInternalArray()
public double[][] getArrayCopy()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |