Comparison of floats with more ULPs

The assert_array_max_ulp() function allows you to specify an upper bound for the number of ULPs you would allow. The maxulp parameter accepts an integer value for the limit. The value of this parameter is 1 by default.

Get NumPy : Beginner's Guide - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.