Skip to content
This repository was archived by the owner on Aug 12, 2021. It is now read-only.
This repository was archived by the owner on Aug 12, 2021. It is now read-only.

Support for numpy matrices and nd arrays #1

@martinResearch

Description

@martinResearch

This library does not support matrix operations
For example this does not work

import numpy as np
import sparsegrad.forward as ad
def f(x):
    return x-x[::-1,::-1]
x=np.zeros((3,3))
print(f(ad.seed(x)).dvalue)

Would it be possible to add support for operations on matrices and Nd arrays ?
For the reference here is a matlab implementation for forward differentiation that support nd arrays.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions