|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.math.Matrix
Class Matrix represents a generic matrix of size n * m.
If an instance has a size of (n, n + 1) and has been initialized with a
system of linear equations, the solutions can be computed automatically
by means of gaussian elimination.
| Constructor Summary | |
Matrix(int rows,
int columns)
Constructs a 3x3 matrix with the specified numer of row and column, and initializes the corresponding transform. |
|
Matrix(Matrix template)
Constructs a 3x3 matrix and initializes all fields of the matrix with the corresponding values from another matrix. |
|
| Method Summary | |
double |
get(int row,
int column)
Returns the value at position (row, column). |
int |
getColumnCount()
Returns the number of columns in the matrix. |
double[] |
getGaussianSolution()
Solves a linear equation system. |
int |
getRowCount()
Returns the number of rows in the matrix. |
void |
set(int row,
int column,
double value)
Sets the value at position (row, column) to
value. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Matrix(int rows,
int columns)
rows - number of rows.columns - number of columns.public Matrix(Matrix template)
template - the other matrix whose values are copied into
this object.| Method Detail |
public final void set(int row,
int column,
double value)
(row, column) to
value.
row - the row identifier.column - the column identifier.value - the value to set.
public final double get(int row,
int column)
(row, column).
row - the row identifier.column - the column identifier.
public final int getRowCount()
public final int getColumnCount()
public double[] getGaussianSolution()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||