bellini.api.utils¶
A set of utility functions that are useful when interacting with a mix of Quantities, Distributions, and other numerical primitives
Module Attributes
|
A function that converts all values in args to Quantities |
Functions
|
A function that converts all values in args to Quantities |
|
Check if the provided args are broadcastable |
|
Checks if the shape of a and b is the same |
|
Flatten a nested set of lists, tuples, and dicts |
|
Returns if num is either an array or a Quantity holding an array |
|
Returns if num is a scalar i.e. float, int, or np.generic. |
|
Returns a mask for arr at positions idxs |