本文整理汇总了Python中numpy.dual.register_func函数的典型用法代码示例。如果您正苦于以下问题:Python register_func函数的具体用法?Python register_func怎么用?Python register_func使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了register_func函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: dir
from ._decomp_qz import *
from .decomp_svd import *
from .decomp_schur import *
from ._decomp_polar import *
from .matfuncs import *
from .blas import *
from .lapack import *
from .special_matrices import *
from ._solvers import *
__all__ = [s for s in dir() if not s.startswith('_')]
from numpy.dual import register_func
for k in ['norm', 'inv', 'svd', 'solve', 'det', 'eig', 'eigh', 'eigvals',
'eigvalsh', 'lstsq', 'cholesky']:
try:
register_func(k, eval(k))
except ValueError:
pass
try:
register_func('pinv', pinv2)
except ValueError:
pass
del k, register_func
from numpy.testing import Tester
test = Tester().test
bench = Tester().bench
开发者ID:317070,项目名称:scipy,代码行数:30,代码来源:__init__.py
示例2: sin
sinc -- sin(x)/x
.. [+] in the description indicates a function which is not a universal
.. function and does not follow broadcasting and automatic
.. array-looping rules.
"""
from __future__ import division, print_function, absolute_import
from ._ufuncs import *
from .basic import *
from . import specfun
from . import orthogonal
from .orthogonal import *
from .spfun_stats import multigammaln
from ._ellip_harm import ellip_harm, ellip_harm_2, ellip_normal
from .lambertw import lambertw
from ._spherical_bessel import (spherical_jn, spherical_yn, spherical_in,
spherical_kn)
__all__ = [s for s in dir() if not s.startswith('_')]
from numpy.dual import register_func
register_func('i0',i0)
del register_func
from numpy.testing import Tester
test = Tester().test
开发者ID:Jeet1994,项目名称:scipy,代码行数:30,代码来源:__init__.py
示例3: register_func
destroy_zfftnd_cache
"""
__all__ = ['fft','ifft','fftn','ifftn','rfft','irfft',
'fft2','ifft2',
'diff',
'tilbert','itilbert','hilbert','ihilbert',
'sc_diff','cs_diff','cc_diff','ss_diff',
'shift',
'rfftfreq'
]
from .fftpack_version import fftpack_version as __version__
from .basic import *
from .pseudo_diffs import *
from .helper import *
from numpy.dual import register_func
for k in ['fft', 'ifft', 'fftn', 'ifftn', 'fft2', 'ifft2']:
register_func(k, eval(k))
del k, register_func
from .realtransforms import *
__all__.extend(['dct', 'idct', 'dst', 'idst'])
from numpy.testing import Tester
test = Tester().test
bench = Tester().bench
开发者ID:b-t-g,项目名称:Sim,代码行数:30,代码来源:__init__.py
示例4: dir
.. [+] in the description indicates a function which is not a universal
.. function and does not follow broadcasting and automatic
.. array-looping rules.
"""
from __future__ import division, print_function, absolute_import
from ._ufuncs import *
from .basic import *
from . import specfun
from . import orthogonal
from .orthogonal import *
from .spfun_stats import multigammaln
from ._ellip_harm import ellip_harm, ellip_harm_2, ellip_normal
from .lambertw import lambertw
from ._spherical_bessel import spherical_jn, spherical_yn, spherical_in, spherical_kn
__all__ = [s for s in dir() if not s.startswith("_")]
from numpy.dual import register_func
register_func("i0", i0)
del register_func
from numpy.testing import Tester
test = Tester().test
开发者ID:gfyoung,项目名称:scipy,代码行数:29,代码来源:__init__.py
示例5: dir
from .decomp_schur import *
from ._decomp_polar import *
from .matfuncs import *
from .blas import *
from .lapack import *
from .special_matrices import *
from ._solvers import *
from ._procrustes import *
from ._decomp_update import *
__all__ = [s for s in dir() if not s.startswith("_")]
from numpy.dual import register_func
for k in ["norm", "inv", "svd", "solve", "det", "eig", "eigh", "eigvals", "eigvalsh", "lstsq", "cholesky"]:
try:
register_func(k, eval(k))
except ValueError:
pass
try:
register_func("pinv", pinv2)
except ValueError:
pass
del k, register_func
from numpy.testing import Tester
test = Tester().test
开发者ID:person142,项目名称:scipy,代码行数:30,代码来源:__init__.py
注:本文中的numpy.dual.register_func函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论