Skip to content

What's the deal with utype? #5

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

Closed
jariji opened this issue Aug 18, 2024 · 1 comment
Closed

What's the deal with utype? #5

jariji opened this issue Aug 18, 2024 · 1 comment

Comments

@jariji
Copy link

jariji commented Aug 18, 2024

What is it? How am I supposed to use it?

@aplavin
Copy link
Member

aplavin commented Aug 19, 2024

Do you mean the second (optional) argument to OptProblemSpec, or something else? If the former, then it specifies the vector type to use during optimization, see the docs, eg:

ops = OptProblemSpec(Base.Fix2(loss, data), mod0, vars)
ops = OptProblemSpec(Base.Fix2(loss, data), Vector, mod0, vars)
ops = OptProblemSpec(Base.Fix2(loss, data), SVector, mod0, vars)

@aplavin aplavin closed this as completed Sep 2, 2024
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

2 participants