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