Generalize the verification function `check_values()`.
The function check_values()
in minterpy.core.verification
is generalized to accept either a scalar or a NumPy array.
The optional arguments have been extended:
-
nan
: Allow NaN value ifTrue
(defaultFalse
) -
inf
: Allow inf value ifTrue
(defaultFalse
) -
negative
: Allow negative value ifTrue
(defaultTrue
) -
zero
: Allow zero value ifTrue
(defaultTrue
)
This MR should fix Issue #131 (closed).
Additional changes:
- The usage of the function
check_values()
in the code base is updated. - The test suite of
MultiIndexSet
is updated to include testing the behavior where a given exponents array is negative. - The tests for verification functions are updated to include testing the new function.