I think the compilation problem requires more context to diagnose. It doesn't seem to be ViennaCL-related, but something related to the structure of your code.
Best regards,
Karli
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
ViennaCL works with matrices in CSR format which consists of:
1: A column index array int* p_c_idx = &(c_idx[0]) ;
2: A row index array int* p_r_idx = &(r_idx[0]) ;
3: A value array scalar* p_vals = &(vals[0]) ;
This (1,2,3) is what I have after importing and converting the matrix of my engineering application.
Then I have the vectors
How can I use the above to solve the system with the linear solvers cg and bicgstab?
T.
I think, I made some progress here but there's one compile error left:
vclPCG.C:205:27: error: invalid use of non-static member function
ldu2vcl(matrix, vclMat);
The function is:
And I use it here:
Do you have any hint what causes the problem?
T.
Hi tario,
I think the compilation problem requires more context to diagnose. It doesn't seem to be ViennaCL-related, but something related to the structure of your code.
Best regards,
Karli