You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will take some time for me to get to and fix.
My current plan is to create a python type called a_float that wraps a_double and accomplishes this.
For now, you can use
ay[0] = a_double(0.5) * ax[0] * ax[0]
I am getting the following error message with your test above:
(Pdb)
TypeError: __init__() takes 2 positional arguments but 3 were given
> /home/bradbell/repo/cppad_py.git/junk.py(21)<module>()
-> af = cppad_py.a_fun(ax, ay)
There is a python __init__ function for the a_fun class in the lib/python/cppad_py/fun.py file. This is the function that the error message below is for: TypeError: __init__() takes 2 positional arguments but 3 were given
Here is a simple test program where the issue happens.
Test case:
Error report:
Thanks!
The text was updated successfully, but these errors were encountered: