patricknharris / cusp-library

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

ell_to_csr conversion rounds ValueType to IndexType #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here's a quick patch:

Index: cusp/detail/host/conversion.h
===================================================================
--- cusp/detail/host/conversion.h   (revision 76)
+++ cusp/detail/host/conversion.h   (working copy)
@@ -328,7 +328,7 @@
         for(IndexType n = 0; n < num_entries_per_row; n++)
         {
             const IndexType j = src.column_indices(i,n);
-            const IndexType v = src.values(i,n);
+            const ValueType v = src.values(i,n);
             if(j != invalid_index)
             {
                 dst.column_indices[num_entries] = j;

Original issue reported on code.google.com by egastal on 15 Nov 2009 at 4:50

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

Original comment by wnbell on 15 Nov 2009 at 5:32

GoogleCodeExporter commented 8 years ago
The format conversion unit tests will now catch this sort of error too.

Original comment by wnbell on 15 Nov 2009 at 5:40