![]() Registered Member ![]()
|
Hi !!
In the following code, I am trying to define a matrix in CCS (which is equivalent to CSR for a symmetric matrix, right ?) in ARPACK++. I have installed and patched ARPACK++. (The matrix is not sparse, but still it should not give an error)
This code gives me the error - Arpack error in ARluSymMatrix::DefineMatrix. -> Matrix data contain inconsistencies. Why is this so ? I have checked the values of ia and ja by running intel MKl on the matrix to find the CSR (again, CSR=CCS for symmetric matrix, right ?), and the values are the same. Is this some problem of 0 and 1 indexing ? Does ARPACK++ use 1 indexing ? Thank you for your help in advance !! |
![]() Registered Member ![]()
|
Never mind, got it.
For someone else who might get stuck, 1. The function requires only non zero elements from the lower/upper triangle, instead of the whole matrix. 2. So, to get CCS considering the lower triangle, consider the upper triangle and calculate the CSR (CCS=CSR of transposed) and vice versa. Then feed this into the function and it should be fine. |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]