public static SimpleMatrix <T> random32(int numRows, int numCols, float minValue, float maxValue, IMersenneTwister rand) { SimpleMatrix <T> ret = new SimpleMatrix <T>(numRows, numCols, typeof(FMatrixRMaj)); RandomMatrices_FDRM.fillUniform(ret.mat as FMatrixRMaj, minValue, maxValue, rand); return(ret); }
public static FMatrixRBlock createRandom(int numRows, int numCols, float min, float max, IMersenneTwister rand) { FMatrixRBlock ret = new FMatrixRBlock(numRows, numCols); RandomMatrices_FDRM.fillUniform(ret, min, max, rand); return(ret); }