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

Parameter and Variable shapes #359

Open
pckroon opened this issue Nov 16, 2022 · 0 comments
Open

Parameter and Variable shapes #359

pckroon opened this issue Nov 16, 2022 · 0 comments
Milestone

Comments

@pckroon
Copy link
Collaborator

pckroon commented Nov 16, 2022

This is related to #175.
Currently, Parameters must be scalars, and Variables can be any shape (scalar, vector, matrix, N-dimensional tensor, ...). This distinction stems from the scipy minimize interface, which demands all parameters to be scalars. This distinction between Variables and Parameters is rather annoying and limiting at times, however.

For Variables, the user provides the values and the shapes. For Parameters, we provide the values (initial values sometimes come from users, usually from us; scipy does the minimization, and we return those found values to the user). Users should provide their shape.

One way of approaching this would be to become agnostic to the underlying sympy objects, and accept e.g. Indexed, Symbol, Matrix, etc.

@pckroon pckroon added this to the 1.0.0 milestone Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant