Fixed database typo and removed unnecessary class identifier.
This commit is contained in:
parent
00ad49a143
commit
45fb349a7d
5098 changed files with 952558 additions and 85 deletions
22
venv/Lib/site-packages/scipy/fft/_debug_backends.py
Normal file
22
venv/Lib/site-packages/scipy/fft/_debug_backends.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import numpy as np
|
||||
|
||||
class NumPyBackend:
|
||||
"""Backend that uses numpy.fft"""
|
||||
__ua_domain__ = "numpy.scipy.fft"
|
||||
|
||||
@staticmethod
|
||||
def __ua_function__(method, args, kwargs):
|
||||
kwargs.pop("overwrite_x", None)
|
||||
|
||||
fn = getattr(np.fft, method.__name__, None)
|
||||
return (NotImplemented if fn is None
|
||||
else fn(*args, **kwargs))
|
||||
|
||||
|
||||
class EchoBackend:
|
||||
"""Backend that just prints the __ua_function__ arguments"""
|
||||
__ua_domain__ = "numpy.scipy.fft"
|
||||
|
||||
@staticmethod
|
||||
def __ua_function__(method, args, kwargs):
|
||||
print(method, args, kwargs, sep='\n')
|
||||
Loading…
Add table
Add a link
Reference in a new issue