Class RandomMatrices_DSTL

java.lang.Object
org.ejml.sparse.triplet.RandomMatrices_DSTL

public class RandomMatrices_DSTL extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.ejml.data.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RandomMatrices_DSTL

      public RandomMatrices_DSTL()
  • Method Details

    • uniform

      public static org.ejml.data.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 rows
      numCols - Number of columns
      nz_total - Total number of non-zero elements in the matrix
      min - Minimum value
      max - maximum value
      rand - Random number generated
      Returns:
      Randomly generated matrix