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

Matrix multiplication #2

Open
IgorTo opened this issue Jul 25, 2020 · 0 comments
Open

Matrix multiplication #2

IgorTo opened this issue Jul 25, 2020 · 0 comments

Comments

@IgorTo
Copy link

IgorTo commented Jul 25, 2020

Hi,
my objective function is:

def F(x):
    A = np.diag(np.random.rand(100))
    return np.diag(x**2) @ A @ x

For x0 = np.random.rand(100), the command:
F(ad.seed(x0))
returns:
ValueError: Input must be 1- or 2-d.

Is a matrix multiplication in an objective function unsupported?

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

No branches or pull requests

1 participant