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

Transformations to and from vectors #21

Closed
mohamed82008 opened this issue Mar 27, 2021 · 4 comments · Fixed by #58
Closed

Transformations to and from vectors #21

mohamed82008 opened this issue Mar 27, 2021 · 4 comments · Fixed by #58
Projects

Comments

@mohamed82008
Copy link
Member

mohamed82008 commented Mar 27, 2021

Currently constraints are assumed to return a vector. We need functions to transform to and from vectors. For example to support constraints on sparse matrix valued functions or functions of structs.

@mohamed82008 mohamed82008 added this to To do in v0.6.0 Apr 17, 2021
@mohamed82008
Copy link
Member Author

@mohamed82008 mohamed82008 changed the title Vector to sparse matrix transformation Transformations to and from vectors Apr 21, 2021
@mohamed82008
Copy link
Member Author

PR to handle sparse matrix to and from a vector in ParameterHandling.jl JuliaGaussianProcesses/ParameterHandling.jl#21.

@mohamed82008
Copy link
Member Author

Can also provide Nonconvex.flatten which calls ParameterHandling.flatten and handles arbitrary structs using NamedTupleTools throwing away the non-reals.

@mohamed82008
Copy link
Member Author

Automatic flattening and unflattening when x0 is not a vector would be cool.

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

Successfully merging a pull request may close this issue.

1 participant