-
Notifications
You must be signed in to change notification settings - Fork 6
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
iterative_solve ... did not match C++ signature #32
Comments
sorry for the bad formatting of the previous comment, apparently markups and hashtags are treated specially here... -sven |
No, that looks like a bug, though not one I've seen before. How did you install PyViennaCL? |
Am 17.02.2015 um 14:37 schrieb Toby Smithe:
I think I just ran the installer for Windows ("I think" because I'm experimenting on different systems and cannot Thanks for looking into this, |
I have now tried the same code also on a different machine with Debian testing (so the packaged version there is 1.0.2 I think) and I get the same error message. So it doesn't seem to be Windows-specific. |
Hi Sven, really sorry I haven't got round to sorting this yet. I will try and do so this week. Best, Toby |
Hi, |
Hello again, and thanks to elsdrm for the hint which I've read just now.
Would there be any problem with just using the working options? What I mean is, what are the features or advantages that we are missing because the first three are not working? thanks, |
Am 08.10.2015 um 10:23 schrieb Karl Rupp:
Ok, but if "upper" and "lower" also serve to describe the input matrix According to the help on thanks, |
i am having the same problem... is it fixed?? |
Hello again all. Alas it is not yet fixed. I expect to remain very busy with my studies until August, at which point I will dedicate some time to bringing PyViennaCL up to date. Please continue to report issues / otherwise complain in any way, if you wish! I am sorry that I do not bring better news. |
thank you for your reply. could you suggest an alternative workaround? @schreibe , i would like to know what method you have used finally... |
Am 11.04.2016 um 16:38 schrieb kvarun95:
None. I was testing different tools and haven't used pyviennacl anymore cheers, |
The solver (iterative, with gmres tag) worked for me when I used float64 instead of float32. |
going through util.py was insightful. I used the CompressedMatrix format as in util.py |
Am 12.04.2016 um 04:31 schrieb kvarun95:
Interesting! I would have thought that I had tried variations like that thanks, |
Am 12.04.2016 um 04:31 schrieb kvarun95:
Well it doesn't work for me. I guess it could also depend on whether the thanks, |
Hi,
I'm trying out pyviennacl, it sounds great so far. I can run some test code, so the setup seems to be ok. (Py 2.7 on 64bit Windows 7).
But when I try pyviennacl.linalg.solve() I'm getting an error where I'm stuck. Here's the code:
import numpy as n
import pyviennacl as p
Amat = n.random.rand(20,20).astype(n.float32)
Bvec = n.random.rand(20).astype(n.float32)
pvA = p.Matrix(Amat)
pvB = p.Vector(Bvec)
mysolvertag = p.linalg.cg_tag()
mysolvertag = p.linalg.gmres_tag()
result = p.linalg.solve(pvA, pvB, mysolvertag)
print(result)
And here's the beginning of the error message:
Traceback (most recent call last):File "", line 1, in
runfile('<path_removed>/pvcltest.py', wdir='<path_removed>')
File "C:\ANACONDA\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 580, in runfile
execfile(filename, namespace)
File "<path_removed>/pvcltest.py", line 19, in
result = p.linalg.solve(pvA, pvB, mysolvertag)
File "C:\ANACONDA\lib\site-packages\pyviennacl\linalg.py", line 474, in solve
return result_type(tag.vcl_solve_call(A.vcl_leaf, B.vcl_leaf, tag.vcl_tag),
File "C:\ANACONDA\lib\site-packages\pyviennacl\linalg.py", line 177, in vcl_solve_call
return _v.iterative_solve(*args)
ArgumentError: Python argument types in
pyviennacl._viennacl.iterative_solve(matrix_row_float, vector_float, gmres_tag)
did not match C++ signature:
iterative_solve(class viennacl::hyb_matrix<double,1> {lvalue}, class viennacl::vector<double,1> {lvalue}, class viennacl::linalg::gmres_tag {lvalue})
Is there some (stupid...) mistake in my code snippet, or is there a problem with pyviennacl?
Thanks,
sven
The text was updated successfully, but these errors were encountered: