You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I want to sum two compressed matrices, but it seems that there is no operator+ or operator+= implemented for them:
viennacl::compressed_matrix<float> a(3, 3);
viennacl::compressed_matrix<float> b(3, 3);
// Considering it is not using GPU for this toy example, so I can allocate// dynamic memory on the devicex(1,1) = 1.0f;
y(1,2) = 2.0f;
// The same occurs for x += y;
x = x + y;
I got the following error:
error: no match for ‘operator+’ (operand types are ‘viennacl::compressed_matrix’ and
‘viennacl::compressed_matrix’)
91 x = x + y;
92 ~~^~~
I'm using ViennaCL with OpenCL.
The text was updated successfully, but these errors were encountered:
@karlrupp The methods begin1(), begin2(), end1() and end2() are not available for compressed matrices. Will it be added in the future too? Should I open an issue for that?
@madc0ww The issue with .begin1(), .begin2(), end1() and end2() on compressed matrices in the context of ViennaCL is that they are very inefficient and are likely to cause a lot of trouble for users.
Hi, I want to sum two compressed matrices, but it seems that there is no
operator+
oroperator+=
implemented for them:I got the following error:
I'm using ViennaCL with OpenCL.
The text was updated successfully, but these errors were encountered: