udiff:使用uarrayunumpy自动区分

时间:2021-05-20 01:10:31
【文件属性】:
文件名称:udiff:使用uarrayunumpy自动区分
文件大小:828KB
文件格式:ZIP
更新时间:2021-05-20 01:10:31
Python udiff使用uarray / unumpy进行自动区分。 快速开始 import uarray as ua import unumpy as np import udiff from unumpy import numpy_backend with ua . set_backend ( udiff . DiffArrayBackend ( numpy_backend ), coerce = True ): x1 = np . reshape ( np . arange ( 1 , 26 ), ( 5 , 5 )) x2 = np . reshape ( np . arange ( 1 , 26 ), ( 5 , 5 )) y = np . log ( x1 ) + x1 * x2 - np . sin ( x2 ) print ( y ) pri
【文件预览】:
udiff-master
----setup.py(1KB)
----.gitignore(1KB)
----doc8.ini(103B)
----conftest.py(379B)
----src()
--------udiff()
--------tests()
----CONTRIBUTING.md(828B)
----CODE_OF_CONDUCT.md(164B)
----LICENSE(1KB)
----.conda()
--------environment.yml(319B)
----README.md(893B)
----pytest.ini(238B)
----.coveragerc(73B)
----azure-pipelines.yml(2KB)
----docs()
--------install.rst(1KB)
--------_templates()
--------generated()
--------index.rst(1KB)
--------conf.py(5KB)
--------_static()
--------notebooks()
--------logo.png(42KB)
--------auto_diff.rst(9KB)

网友评论