Skip to content
Snippets Groups Projects
Commit 77ce32eb authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Free elementwise complex demo from demo of what *doesn't* work.

parent 8fb851f0
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,5 @@ c_gpu_real = cl_array.empty(ctx, len(a_gpu), dtype=numpy.float32, queue=queue) ...@@ -50,7 +50,5 @@ c_gpu_real = cl_array.empty(ctx, len(a_gpu), dtype=numpy.float32, queue=queue)
real_part(c_gpu, c_gpu_real) real_part(c_gpu, c_gpu_real)
print c_gpu.get().real - c_gpu_real.get() print c_gpu.get().real - c_gpu_real.get()
print a_gpu + b_gpu
print la.norm(c_gpu.get() - (5*a_gpu.get()*b_gpu.get())) print la.norm(c_gpu.get() - (5*a_gpu.get()*b_gpu.get()))
assert la.norm(c_gpu.get() - (5*a_gpu.get()*b_gpu.get())) < 1e-5 assert la.norm(c_gpu.get() - (5*a_gpu.get()*b_gpu.get())) < 1e-5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment