-
Notifications
You must be signed in to change notification settings - Fork 49
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
MechanismState(mechanism, q, v) should accept AbstractVector q and v #404
Comments
Hmm, so an issue with this is that currently, the In your specific use case, you were passing So the three options are:
Which one do you prefer? |
Makes sense. I agree that having ambiguity about whether a copy is made is undesirable. What about having the constructors that take q, v, and s just be simple wrappers that do:
so that we can accept any abstract vector with no ambiguity about whether a copy is made? I guess the only question is whether it is ever useful to construct a mechanism state whose q and v are shared with some other struct? I think it's not, and it would screw up the caching anyway. |
So I think I prefer option 3 |
No description provided.
The text was updated successfully, but these errors were encountered: