xiaotaiye / cusp-library

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

cusp::print_matrix for CSR leaves out last row #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a CSR-Matrix
2. Convert to an ELL-Matrix
3. Print out the matrices.

The cusp::print_matrix for ELL is correct, the CSR output is incomplete (last 
row missing).

CUDA   v3.1
Thrust v1.2
Cusp   v0.1

----

Matrix:

22 23 24 
4 5 6 
16 17 18 
10 11 12 
19 20 21 
1 2 3 
25 26 27 
7 8 9 

CSR output:

csr_matrix <8, 3> with 24 entries
            0            0           22
            0            1           23
            0            2           24
            1            0            4
            1            1            5
            1            2            6
            2            0           16
            2            1           17
            2            2           18
            3            0           10
            3            1           11
            3            2           12
            4            0           19
            4            1           20
            4            2           21
            5            0            1
            5            1            2
            5            2            3
            6            0           25
            6            1           26
            6            2           27

coo_matrix <8, 3> with 24 entries
            0            0           22
            0            1           23
            0            2           24
            1            0            4
            1            1            5
            1            2            6
            2            0           16
            2            1           17
            2            2           18
            3            0           10
            3            1           11
            3            2           12
            4            0           19
            4            1           20
            4            2           21
            5            0            1
            5            1            2
            5            2            3
            6            0           25
            6            1           26
            6            2           27
            7            0            7
            7            1            8
            7            2            9

extra note: The output for ell should probably say "ell_matrix" instead of 
"coo_matrix".

Original issue reported on code.google.com by matthias...@gmail.com on 25 Jan 2011 at 8:04

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
The data part of the matrix was set correctly, but the last row offset was 
invalid while printing. This issue is invalid.

Original comment by matthias...@gmail.com on 25 Jan 2011 at 9:49

GoogleCodeExporter commented 8 years ago
Thanks for the update Matthais, closing as invalid

Original comment by wnbell on 25 Jan 2011 at 11:47