Questions about type
in defineing problems
#511
Replies: 1 comment
-
You can use any type you want; however, this type is required to implement a number of traits which depend on the solver you are using. The easiest way is to use one of the types supported by the various math backends (docs, book), such as If you choose to use your own type, you will have to implement the relevant traits on that type. For the Newton solver you can find the trait bounds listed here. In particular you would have to implement |
Beta Was this translation helpful? Give feedback.
-
I do not exactly know how to conclude the question, so I am showing an example:
For example, I want to use the
Newton
solver, and I have to implementGradient
andHessian
.I wonder what types can I use to be
type Gradient
? Am I allowed to use sparse matrices? Is this documented anywhere?I browsed the docs and getting-started website but did not find anything related.
Thanks a lot in advance❤️
Beta Was this translation helpful? Give feedback.
All reactions