firecrown.utils.compare_optional_arrays#
- firecrown.utils.compare_optional_arrays(x, y)[source]#
Compare two arrays, allowing for either or both to be None.
- Parameters:
x (
None
|ndarray
[Any
,dtype
[TypeVar
(_ScalarType_co
, bound=generic
, covariant=True)]]) –y (
None
|ndarray
[Any
,dtype
[TypeVar
(_ScalarType_co
, bound=generic
, covariant=True)]]) –
- Return type:
bool