Up to date
This page is up to date for NumDot stable.
If you still find outdated information, please open an issue.
ndb
Inherits: Object
Contains NumDot functions returning booleans.
Description
All mathematical functions in this namespace return booleans. If you're planning to use the result of reductions in further tensor computations, consider using nd instead.
Methods
|
all(a: |
|
all_close(a: |
|
any(a: |
|
array_equal(a: |
|
array_equiv(a: |
Method Descriptions
bool all(a: Variant) static 🔗
No-axis equivalent of nd.all() that returns a bool.
bool all_close(a: Variant, b: Variant, rtol: float = 1e-05, atol: float = 1e-08, equal_nan: bool = false) static 🔗
Returns True if two arrays are element-wise equal within a tolerance.
The tolerance values are positive, typically very small numbers. The relative difference (rtol * abs(b)) and the absolute difference atol are added together to compare against the absolute difference between a and b.
NaNs are treated as equal if they are in the same place and if equal_nan=true. Infs are treated as equal if they are in the same place and of the same sign in both arrays.
bool any(a: Variant) static 🔗
No-axis equivalent of nd.any() that returns a bool.
bool array_equal(a: Variant, b: Variant) static 🔗
true if two arrays have the same shape and elements, false otherwise.
bool array_equiv(a: Variant, b: Variant) static 🔗
true if two arrays have the same elements, if broadcast to each other, false otherwise.