public class RandomMatrices_ZDRM
extends java.lang.Object
| Constructor and Description |
|---|
RandomMatrices_ZDRM() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fillHermitian(org.ejml.data.ZMatrixRMaj A,
double min,
double max,
java.util.Random rand)
Assigns the provided square matrix to be a random Hermitian matrix with elements from min to max value.
|
static void |
fillUniform(org.ejml.data.ZMatrixD1 mat,
double min,
double max,
java.util.Random rand)
Sets each element in the matrix to a value drawn from an uniform distribution from 'min' to 'max' inclusive.
|
static void |
fillUniform(org.ejml.data.ZMatrixRMaj mat,
java.util.Random rand)
Sets each element in the matrix to a value drawn from an uniform distribution from 0 to 1 inclusive.
|
static org.ejml.data.ZMatrixRMaj |
hermitian(int length,
double min,
double max,
java.util.Random rand)
Creates a random Hermitian matrix with elements from min to max value.
|
static org.ejml.data.ZMatrixRMaj |
hermitianPosDef(int width,
java.util.Random rand)
Creates a random symmetric positive definite matrix.
|
static org.ejml.data.ZMatrixRMaj |
rectangle(int numRow,
int numCol,
double min,
double max,
java.util.Random rand)
Returns a matrix where all the elements are selected independently from
a uniform distribution between 'min' and 'max' inclusive.
|
static org.ejml.data.ZMatrixRMaj |
rectangle(int numRow,
int numCol,
java.util.Random rand)
Returns a matrix where all the elements are selected independently from
a uniform distribution between -1 and 1 inclusive.
|
public static org.ejml.data.ZMatrixRMaj rectangle(int numRow,
int numCol,
java.util.Random rand)
Returns a matrix where all the elements are selected independently from a uniform distribution between -1 and 1 inclusive.
numRow - Number of rows in the new matrix.numCol - Number of columns in the new matrix.rand - Random number generator used to fill the matrix.public static org.ejml.data.ZMatrixRMaj rectangle(int numRow,
int numCol,
double min,
double max,
java.util.Random rand)
Returns a matrix where all the elements are selected independently from a uniform distribution between 'min' and 'max' inclusive.
numRow - Number of rows in the new matrix.numCol - Number of columns in the new matrix.min - The minimum value each element can be.max - The maximum value each element can be.rand - Random number generator used to fill the matrix.public static void fillUniform(org.ejml.data.ZMatrixRMaj mat,
java.util.Random rand)
Sets each element in the matrix to a value drawn from an uniform distribution from 0 to 1 inclusive.
mat - The matrix who is to be randomized. Modified.rand - Random number generator used to fill the matrix.public static void fillUniform(org.ejml.data.ZMatrixD1 mat,
double min,
double max,
java.util.Random rand)
Sets each element in the matrix to a value drawn from an uniform distribution from 'min' to 'max' inclusive.
min - The minimum value each element can be.max - The maximum value each element can be.mat - The matrix who is to be randomized. Modified.rand - Random number generator used to fill the matrix.public static org.ejml.data.ZMatrixRMaj hermitianPosDef(int width,
java.util.Random rand)
width - The width of the square matrix it returns.rand - Random number generator used to make the matrix.public static org.ejml.data.ZMatrixRMaj hermitian(int length,
double min,
double max,
java.util.Random rand)
length - Width and height of the matrix.min - Minimum value an element can have.max - Maximum value an element can have.rand - Random number generator.public static void fillHermitian(org.ejml.data.ZMatrixRMaj A,
double min,
double max,
java.util.Random rand)
A - The matrix that is to be modified. Must be square. Modified.min - Minimum value an element can have.max - Maximum value an element can have.rand - Random number generator.