code: public static DoubleMatrix floatToDouble(FloatMatrix fm) {
      	DoubleMatrix dm = new DoubleMatrix(fm.rows, fm.columns);
  
          for (int i = 0; i < fm.length; i++)
              dm.put(i, (double) fm.get(i));
  
          return dm;
      }
docs: STOP