|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspis.Util.Matrix.Matrix
spis.Util.Matrix.DiagMatrix
Class Name : DiagMatrix
Project ref : SPIS project
File name : DiagMatrix.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : 25/08/2003
Modification :
Description : Diagonal Matrix class
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
Constructor Summary | |
DiagMatrix(float[] values)
Constructor with data |
|
DiagMatrix(float[] values,
int dim)
Constructor with data and size (for re-dimensionning if needed). |
|
DiagMatrix(float x,
int dim)
Constructor for matrix proportional to identity: x Id_matrix, of dimension dim. |
Method Summary | |
Matrix |
buildLineNormalised()
Generates and returns a matrix built from this matrix by normalising each of its lines: Mij -> Mij / (sum_k Mik). |
Matrix |
buildTranspose()
Generates and returns the transpose of this matrix |
float[] |
getDiagValues()
|
float[][] |
getValues()
Returns a 2D array representing the matrix (here, it is the actual array stored in the DirMatrix). |
void |
incrementValue(int i,
int j,
float incr)
Increments the element (i,j) of the matrix of the value incr. |
Matrix |
matMult(Matrix m)
Multyplies by another matrix m and returns this_matrix . m. |
void |
matMult(Matrix m,
Matrix result)
Multyplies by another matrix m and returns this_matrix . m in result. |
void |
setDiagValues(float[] values)
Defines this diagonal matrix with this float array (no copy, pointing to this array). |
void |
setDiagValues(float[] values,
int d)
Defines this matrix with this float array (no copy, pointing to this array). |
void |
setValue(int i,
int j,
float val)
Sets the element (i,j) of the matrix to the value val. |
void |
vectMult(FloatScalTable x,
FloatScalTable y)
Multyplies by a vector (x) and returns y = matrix x. |
Methods inherited from class spis.Util.Matrix.Matrix |
doubleVectMult, getDim1, getDim2, linearSystemSolve |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DiagMatrix(float[] values, int dim)
public DiagMatrix(float[] values)
public DiagMatrix(float x, int dim)
Method Detail |
public void vectMult(FloatScalTable x, FloatScalTable y)
vectMult
in class Matrix
public void matMult(Matrix m, Matrix result)
matMult
in class Matrix
m
- result
- this . m, as a matrix of predefined subtype (if possible)public Matrix matMult(Matrix m)
matMult
in class Matrix
m
-
public Matrix buildTranspose()
buildTranspose
in class Matrix
public Matrix buildLineNormalised()
buildLineNormalised
in class Matrix
public float[][] getValues()
getValues
in class Matrix
public void setDiagValues(float[] values)
values
- public void setDiagValues(float[] values, int d)
values
- d
- public void setValue(int i, int j, float val)
Matrix
setValue
in class Matrix
i
- j
- val
- Matrix.setValue(int, int, float)
public void incrementValue(int i, int j, float incr)
Matrix
incrementValue
in class Matrix
i
- j
- Matrix.incrementValue(int, int, float)
public float[] getDiagValues()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |