-
Couldn't load subscription status.
- Fork 29
Closed as not planned
Description
In these two spots, I use similar to preallocate a structured Jacobian / Hessian.
Pros:
- No need to fill the values
- Allows specifying the
eltype - Guarantees that we get a mutable object
Cons:
- As discussed with @ChrisRackauckas and @avik-pal, this means that some wrappers get lost
I think it's still worth using similar because of the mutability argument. If the semantics of similar are broken for e.g. banded matrices, that's where they should be fixed.
Related:
Metadata
Metadata
Assignees
Labels
No labels