Package org.ejml.sparse.triplet
Class RandomMatrices_DSTL
java.lang.Object
org.ejml.sparse.triplet.RandomMatrices_DSTL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DMatrixSparseTriplet
Randomly generates matrix with the specified number of matrix elements filled with values from min to max.
-
Constructor Details
-
RandomMatrices_DSTL
public RandomMatrices_DSTL()
-
-
Method Details
-
uniform
public static DMatrixSparseTriplet uniform(int numRows, int numCols, int nz_total, double min, double max, Random rand) Randomly generates matrix with the specified number of matrix elements filled with values from min to max.- Parameters:
numRows
- Number of rowsnumCols
- Number of columnsnz_total
- Total number of non-zero elements in the matrixmin
- Minimum valuemax
- maximum valuerand
- Random number generated- Returns:
- Randomly generated matrix
-