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

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