|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsim.util.mantissa.linalg.MatrixFactory
This class is a factory for the linear algebra package.
This class is devoted to building the right type of matrix according to the structure of the non null elements.
This is a utility class, no instance of this class should be built, so the constructor is explicitly made private.
This file is from the "Mantissa" Java software package found at http://www.spaceroots.org/software/mantissa/index.html. The license is included at the end of the source file.
| Method Summary | |
static Matrix |
buildMatrix(int rows,
int columns,
double[] data)
Build a matrix of the right subtype. |
static Matrix |
buildMatrix(int rows,
int columns,
double[] data,
int lowerElements,
int upperElements)
Build a matrix of the right subtype. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Matrix buildMatrix(int rows,
int columns,
double[] data,
int lowerElements,
int upperElements)
SymetricalMatrix class. When the data corresponding to a
symetrical matrix is given, this method can only build an
instance of the GeneralSquareMatrix class.
rows - number of row of the matrixcolumns - number of columns of the matrixdata - table of the matrix elements (stored row after row)lowerElements - number of non null elements in the lower triangleupperElements - number of non null elements in the upper triangle
public static Matrix buildMatrix(int rows,
int columns,
double[] data)
rows - number of row of the matrixcolumns - number of columns of the matrixdata - table of the matrix elements (stored row after row)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||