Created
July 5, 2017 22:24
-
-
Save ghorn/b4a94b16c803480c6a14da21a1aae17c 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