Example #1
0
 public static DMatrix randn(int r, int c, boolean _persist) {
   DMatrix m = new CUDAMatrix(r, c);
   m.persist = _persist;
   for (int i = 0; i < r * c; i++) m.put(i, RandomUtils.nextGaussian());
   if (m.persist) {
     m.cPointer = SimpleCuBlas.alloc(m.data());
   }
   return m;
 }
Example #2
0
 public static DMatrix randn(int r, int c) {
   DMatrix m = new CUDAMatrix(r, c);
   for (int i = 0; i < r * c; i++) m.put(i, RandomUtils.nextGaussian());
   return m;
 }