Skip to content

Quansight-Labs/udiff

Folders and files

NameName
Last commit message
Last commit date
Sep 28, 2020
Mar 7, 2021
Sep 28, 2020
Mar 18, 2020
Aug 4, 2020
Feb 19, 2021
Feb 17, 2020
Nov 20, 2019
Aug 20, 2020
Jul 17, 2020
Aug 28, 2020
Jul 17, 2020
May 27, 2020
Sep 28, 2020

udiff - Automatic differentiation with uarray/unumpy.

Join the chat at https://gitter.im/Plures/uarray language license

Quickstart

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)
    print(y.to(x1))
    print(y.to(x2))

Contributing

See CONTRIBUTING.md for more information on how to contribute to udiff.

About

Automatic differentiation with uarray/unumpy.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages