-
Notifications
You must be signed in to change notification settings - Fork 408
veccat([]) -> Sparsity instead of MX #2549
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
Comments
But what if we want SX? |
The following passes: f = Function('f',[DM(0,1)],[])
print(f)
f = Function('f',[DM(0,1),SX.sym("x")],[])
print(f)
f = Function('f',[DM(0,1),MX.sym("x")],[])
print(f) So DM makes sense |
Check if C++ variants match up |
|
Do we give shape |
Matlab? |
Yeah, why would we want to cast [] to Sparsity? |
Nevermind, I get it now. I think you can solve it by modifying the casting priorities in SWIG. They decide in which order checks are made. Sparsity should have lower priority than DM. MATLAB uses the same typemaps |
Changing casting priorities is opening a can of worms. |
I don't think we should cast Sparsity to DM. Isn't that constructor explicit? |
No description provided.
The text was updated successfully, but these errors were encountered: