private static void s_uacvar(SparseBlock a,double[] c,int m,int n,CM_COV_Object cbuff,CM cm,int rl,int ru) throws DMLRuntimeException {
  Arrays.fill(c,n * 2,n * 3,ru - rl);
  if (a.isContiguous()) {
    countDisAgg(a.values(rl),c,a.indexes(rl),a.pos(rl),n * 2,(int)a.size(rl,ru));
  }
 else {
    for (int i=rl; i < ru; i++) {
      if (!a.isEmpty(i))       countDisAgg(a.values(i),c,a.indexes(i),a.pos(i),n * 2,a.size(i));
    }
  }
  if (a.isContiguous()) {
    varAgg(a.values(rl),c,a.indexes(rl),a.pos(rl),(int)a.size(rl,ru),n,cbuff,cm);
  }
 else {
    for (int i=rl; i < ru; i++) {
      if (!a.isEmpty(i))       varAgg(a.values(i),c,a.indexes(i),a.pos(i),a.size(i),n,cbuff,cm);
    }
  }
}

private static void s_uacvar ( SparseBlock a , double [ ] c , int m , int n , CM_COV_Object cbuff , CM cm , int rl , int ru ) throws DMLRuntimeException { Arrays . fill ( c , n * 2 , n * 3 , ru - rl ) ; if ( a . isContiguous ( ) ) { countDisAgg ( a . values ( rl ) , c , a . indexes ( rl ) , a . pos ( rl ) , n * 2 , ( int ) a . size ( rl , ru ) ) ; } else { for ( int i = rl ; i < ru ; i ++ ) { if ( ! a . isEmpty ( i ) ) countDisAgg ( a . values ( i ) , c , a . indexes ( i ) , a . pos ( i ) , n * 2 , a . size ( i ) ) ; } } if ( a . isContiguous ( ) ) { varAgg ( a . values ( rl ) , c , a . indexes ( rl ) , a . pos ( rl ) , ( int ) a . size ( rl , ru ) , n , cbuff , cm ) ; } else { for ( int i = rl ; i < ru ; i ++ ) { if ( ! a . isEmpty ( i ) ) varAgg ( a . values ( i ) , c , a . indexes ( i ) , a . pos ( i ) , a . size ( i ) , n , cbuff , cm ) ; } } }
colvar , opcode : uacvar , sparse input .
