예제 #1
0
파일: RDouble.java 프로젝트: nunb/fastr
 public static RDouble copy(RDouble d) {
   if (d.size() == 1 && d.dimensions() == null && d.names() == null && d.attributes() == null) {
     return new ScalarDoubleImpl(d.getDouble(0));
   }
   return new DoubleImpl(d, false);
 }