yk-choi-yk / cusp-library

Automatically exported from code.google.com/p/cusp-library
Apache License 2.0
0 stars 0 forks source link

support cusp::complex in cusp::multiply() #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In particular, the sparse matrix-vector multiplication routines need to support 
cusp::complex [1].

[1] 
http://groups.google.com/group/cusp-users/browse_thread/thread/6cabe7d6078ff33c

Original issue reported on code.google.com by wnbell on 6 Nov 2010 at 9:58

GoogleCodeExporter commented 8 years ago
Small fix in coo_flat.h to make it compatible with cusp::complex (ints don't 
get automatically promoted to complex).
The rest of the fix will take longer.

Original comment by filipe.c...@gmail.com on 8 Nov 2010 at 7:51

Attachments:

GoogleCodeExporter commented 8 years ago
The attached patch adds support for limited operations with volatile complex 
number (basically assignment and +) while hopefully not breaking anything. This 
is enough for the current use of volatile in coo_flat.h and probably most other 
uses of volatile.

Works with floats and doubles and I tried all the tests and examples and they 
seem to run fine. 

Original comment by filipe.c...@gmail.com on 12 Nov 2010 at 6:39

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision b63e3e5633.

Original comment by filipe.c...@gmail.com on 15 Nov 2010 at 5:38