|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.java4less.rchart.RMatrix
This is a matrix class. It allows operations like add, subtract, multiply, invert and transpose
Constructor Summary | |
RMatrix(double[][] d)
constructor |
|
RMatrix(int[][] d)
constructor, using int[][] |
|
RMatrix(int prows,
int pcolumns)
constructor |
Method Summary | |
RMatrix |
add(RMatrix m2)
Return the matrix m = currentMatrix + m2 |
double |
getValue(int r,
int c)
get value |
RMatrix |
invert()
|
RMatrix |
mult(double v)
Multiply this matrix by the specified value. |
RMatrix |
mult(RMatrix m2)
Multiply this Matrix by m2 matrix |
void |
setValue(int r,
int c,
double v)
set value |
RMatrix |
transpose()
transpose this matrix |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RMatrix(double[][] d)
public RMatrix(int[][] d)
public RMatrix(int prows, int pcolumns)
Method Detail |
public RMatrix add(RMatrix m2)
public RMatrix invert()
public RMatrix mult(double v)
public void setValue(int r, int c, double v)
public double getValue(int r, int c)
public RMatrix mult(RMatrix m2)
public RMatrix transpose()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |