private static boolean isZero(
     NumberArrayOperations<BigFraction, BigFraction[]> nops, BigFraction value) {
   return nops.getNumberOperators()
       .booleanUnary(BooleanUnaryOperator.Id.isZero)
       .booleanOperate(value);
 }
示例#2
0
 private static boolean isZero(
     NumberArrayOperations<VarIntNumber, VarIntNumber[]> nops, VarIntNumber value) {
   return nops.getNumberOperators()
       .booleanUnary(BooleanUnaryOperator.Id.isZero)
       .booleanOperate(value);
 }