示例#1
0
文件: RDouble.java 项目: nunb/fastr
 @Override
 public double getDouble(int i) {
   int j = index.getInt(i);
   assert Utils.check(j > 0);
   if (j > vsize) {
     return RDouble.NA;
   } else {
     return value.getDouble(j - 1);
   }
 }
示例#2
0
文件: RDouble.java 项目: nunb/fastr
 @Override
 public boolean dependsOn(RAny v) {
   return value.dependsOn(v) || index.dependsOn(v);
 }
示例#3
0
文件: RDouble.java 项目: nunb/fastr
 @Override
 public void ref() {
   value.ref();
   index.ref();
 }
示例#4
0
文件: RDouble.java 项目: nunb/fastr
 @Override
 public boolean isSharedReal() {
   return value.isShared() || index.isShared();
 }
示例#5
0
文件: RDouble.java 项目: nunb/fastr
 public RDoubleSubset(RDouble value, RInt index) {
   this.value = value;
   this.index = index;
   this.isize = index.size();
   this.vsize = value.size();
 }