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

Add boundscheck to setp/setu #2996

Open
ggkountouras opened this issue Aug 28, 2024 · 0 comments
Open

Add boundscheck to setp/setu #2996

ggkountouras opened this issue Aug 28, 2024 · 0 comments

Comments

@ggkountouras
Copy link

Is your feature request related to a problem? Please describe.

Calling a setter! created with setter! = setp(sys, [sys.my_param]) doesn't ensure that the length of the array/tuple passed to the functor is the same as the number of symbolic parameters passed to setp/setu.

Describe the solution you’d like

setter! should have a boundscheck.

Additional context

If there is runtime overhead to the check, add the option to disable it for compiled code.

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

1 participant