viennacl/viennacl-dev — pull request #79 by ddemidov (2014-06-05 19:25:24+00:00)
Title: Fix a bug in hyb_matrix constructor

The bug lead to array overrun for non-square matrices where number of rows was less than number of columns.

The hist_entries vector should contain enough elements to hold full row of a matrix, not a full column.

P.S. I think this is second time I am fixing the same bug, sorry for not doing it right the first time :).