Created
July 5, 2017 22:25
-
-
Save ghorn/ef9a2d8de383a85ed25779009af37507 to your computer and use it in GitHub Desktop.
switch dimension mismatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from casadi import * | |
x = MX.sym('x') | |
c = MX.sym('c') | |
z0 = conditional(c, [0, 1], 3) | |
#z0 = conditional(c, [x, x], 3) # works | |
f = z0 + x | |
#f = z0 # works | |
#f = x # works | |
print gradient(f, x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment