Example #1
0
 @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);
   }
 }
Example #2
0
 @Override
 public boolean dependsOn(RAny v) {
   return value.dependsOn(v) || index.dependsOn(v);
 }
Example #3
0
 @Override
 public void ref() {
   value.ref();
   index.ref();
 }
Example #4
0
 @Override
 public boolean isSharedReal() {
   return value.isShared() || index.isShared();
 }
Example #5
0
 public RDoubleSubset(RDouble value, RInt index) {
   this.value = value;
   this.index = index;
   this.isize = index.size();
   this.vsize = value.size();
 }