MCPcopy Create free account
hub / github.com/PythonOT/POT / isnan

Method isnan

ot/backend.py:512–520  ·  view source on GitHub ↗

r""" Tests element-wise for NaN and returns result as a boolean tensor. This function follows the api from :any:`numpy.isnan` See: https://numpy.org/doc/stable/reference/generated/numpy.isnan.html

(self, a)

Source from the content-addressed store, hash-verified

510 raise NotImplementedError()
511
512 def isnan(self, a):
513 r"""
514 Tests element-wise for NaN and returns result as a boolean tensor.
515
516 This function follows the api from :any:`numpy.isnan`
517
518 See: https://numpy.org/doc/stable/reference/generated/numpy.isnan.html
519 """
520 raise NotImplementedError()
521
522 def isinf(self, a):
523 r"""

Callers 15

test_empty_backendFunction · 0.95
sinkhorn_low_rank_kernelFunction · 0.45
co_optimal_transportFunction · 0.45
isnanMethod · 0.45
isnanMethod · 0.45
isnanMethod · 0.45
isnanMethod · 0.45
isnanMethod · 0.45

Calls

no outgoing calls