private static int sumRowSumGtLeColSumLtGe(double value,double[] bv,BinaryOperator bOp) throws DMLRuntimeException {
  int ix=Arrays.binarySearch(bv,value);
  int cnt=0;
  if (ix >= 0) {
    while (ix > 0 && value == bv[ix - 1])     --ix;
    ix++;
  }
  cnt=bv.length - Math.abs(ix) + 1;
  if ((bOp.fn instanceof LessThan) || (bOp.fn instanceof GreaterThan))   cnt=bv.length - cnt;
  return cnt;
}

private static int sumRowSumGtLeColSumLtGe ( double value , double [ ] bv , BinaryOperator bOp ) throws DMLRuntimeException { int ix = Arrays . binarySearch ( bv , value ) ; int cnt = 0 ; if ( ix >= 0 ) { while ( ix > 0 && value == bv [ ix - 1 ] ) -- ix ; ix ++ ; } cnt = bv . length - Math . abs ( ix ) + 1 ; if ( ( bOp . fn instanceof LessThan ) || ( bOp . fn instanceof GreaterThan ) ) cnt = bv . length - cnt ; return cnt ; }
calculates the sum of number for rowsum of greaterthan and lessthanequal , and colsum of lessthan and greaterthanequal operators .
