public class MatrixFactory
extends java.lang.Object
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.
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 trianglepublic 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)Copyright © 2001-2007 Luc Maisonobe. All Rights Reserved.