|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmatrices.dbl.MatrixFactory
MatrixFactory is one-stop shop for creating matrices.
Author: purangp
Date: 07.03.2004 Time: 15:56:59
Method Summary | |
static Matrix |
getEmptyMatrix()
Deprecated. |
static Matrix |
getIdentityMatrix(int dim,
Matrix hint)
Gets an Identity matrix |
static Matrix |
getMatrix(int rows,
int cols,
Matrix hint)
Gets a matrix of the asked dimensions. |
static Matrix |
getMatrix(int rows,
int cols,
Matrix hint,
double scalar)
Gets a matrix of the asked dimensions. |
static Matrix |
getMatrix(int rows,
int cols,
Matrix hint,
double[][] values)
Gets a matrix of the asked dimensions. |
static Matrix |
getMatrix(java.util.List list,
Matrix hint)
Gets a column vector with list values composing the vector's values. |
static Matrix |
getRandomMatrix(int rows,
int cols,
Matrix hint)
Gets a matrix of the asked dimensions, filled with random values |
static Matrix |
getScalarMatrix(int dim,
Matrix hint,
double scalar)
Gets a scalar matrix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Matrix getEmptyMatrix()
public static Matrix getMatrix(int rows, int cols, Matrix hint)
rows
- number of rows in the matrix (> 1)cols
- number of columns in the matrix (> 1)hint
- acts as a hint for the right implementation to use
public static Matrix getRandomMatrix(int rows, int cols, Matrix hint)
rows
- number of rows in the matrix (> 1)cols
- number of columns in the matrix (> 1)hint
- acts as a hint for the right implementation to use
public static Matrix getMatrix(int rows, int cols, Matrix hint, double scalar)
rows
- number of rows in the matrix (> 1)cols
- number of columns in the matrix (> 1)hint
- acts as a hint for the right implementation to usescalar
- initial value of the elements
public static Matrix getMatrix(int rows, int cols, Matrix hint, double[][] values)
rows
- number of rows in the matrix (> 1)cols
- number of columns in the matrix (> 1)hint
- acts as a hint for the right implementation to usevalues
- initial value of the elements
public static Matrix getIdentityMatrix(int dim, Matrix hint)
dim
- dimension of the square matrixhint
- acts as a hint for the right implementation to use
public static Matrix getScalarMatrix(int dim, Matrix hint, double scalar)
dim
- dimension of the square matrixhint
- acts as a hint for the right implementation to usescalar
- the value the main diagonal elements have to be set to
public static Matrix getMatrix(java.util.List list, Matrix hint)
IllegalArgumentException
if list.size()<=0
list
- list containing the Double
values that will be used to compose the vectorhint
- acts as a hint for the right implementation to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |