Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derivatives of symbolic matrix power #15650

Open
Upabjojr opened this issue Dec 16, 2018 · 3 comments
Open

Derivatives of symbolic matrix power #15650

Upabjojr opened this issue Dec 16, 2018 · 3 comments

Comments

@Upabjojr
Copy link
Contributor

We need support for derivatives of matrix expressions with symbolic powers.

@nileshpatra
Copy link

can I take up this issue?

@Upabjojr
Copy link
Contributor Author

can I take up this issue?

if you can find a way to solve this, feel free to open a PR.

@oscarbenjamin
Copy link
Contributor

I guess that this is not the ideal result:

In [83]: n = symbols('n')

In [84]: A = MatrixSymbol('A', 3, 3)

In [85]: diff(A**n, A)
Out[85]: ArrayDiagonal(ArrayTensorProduct(I, I, n*HadamardPower(A, n - 1)), (1, 4), (3, 5))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants