|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsugr.linalg.LinearAlgebraFactory
| Constructor Summary | |
LinearAlgebraFactory()
|
|
| Method Summary | |
static Matrix |
getDiagMatrix(int size,
double d)
Create new diagonal matrix. |
static Matrix |
getMatrix(double[][] values)
create a new matrix by a given double precision floating point array. |
static Matrix |
getMatrix(int no_rows,
int no_cols)
Return a Matrix no_rows x no_cols filled with zeros. |
static Matrix |
getMatrix(Matrix A)
create new Matrix given Matrix. |
static Matrix |
getMatrix(Vector v)
creates a Matrix from a given Vector. |
static Matrix |
getMatrix(Vector v,
int times)
creates a Matrix from a given Vector. |
static Matrix |
getMatrixId(int dim)
creates an identity Matrix |
static Vector |
getVector(double[] values)
create a new Vector by a given double precision floating point array. |
static Vector |
getVector(double a,
double b)
create a new Vector by 2 doubles |
static Vector |
getVector(double a,
double b,
double c)
create a new Vector by 3 doubles |
static Vector |
getVector(double a,
double b,
double c,
double d)
create a new Vector by 4 doubles |
static Vector |
getVector(int size)
Return a Vector size x 1 filled with zeros. |
static Vector |
getVector(Vector v)
create new Vector by given Vector. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LinearAlgebraFactory()
| Method Detail |
public static Matrix getMatrix(int no_rows,
int no_cols)
no_rows - Number of rows the matrix should haveno_cols - Number of columns the matrix should have
public static Vector getVector(int size)
size - Dimension the vector should have
public static Matrix getMatrix(double[][] values)
double[][] array = { {0,1,2,3},
{0,1,2,3},
{0,1,2,3}};
Matrix A = LinearAlgebraFactory.getMatrix(array);
Matrix A has dimension 3x4.
values - given in double
public static Matrix getMatrix(Matrix A)
A - Matrix to clone
public static Matrix getDiagMatrix(int size,
double d)
size - the number of rows and columns of the matrixd - the value the diagonal elements should have
public static Matrix getMatrix(Vector v,
int times)
v - Vector to create Matrix fromtimes - how often should the vector v be repeated
public static Vector getVector(double[] values)
values - given in double
public static Vector getVector(double a,
double b)
a - first double valueb - second double value
public static Vector getVector(double a,
double b,
double c)
a - first double valueb - second double valuec - third double value
public static Vector getVector(double a,
double b,
double c,
double d)
a - first double valueb - second double valuec - third double valued - fourth double value
public static Vector getVector(Vector v)
v - Vector to clone
public static Matrix getMatrixId(int dim)
dim - dimension the Matrix should have
public static Matrix getMatrix(Vector v)
v - Vector to create Matrix from
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||