Registered Member
|
Hi all,
I have a file in this format: 3 5 1 1 1.0 1 3 2.0 2 1 3.0 2 2 4.0 3 3 5.0 10.0 20.0 30.0 where the first two integers are N=3 (Dimension of the system) and nz=5 (number of non-zero elements) Then I have nz- lines i,j, A(i,j) and N-lines for vector b. The largest file has N>100000, so it is necessary use sparse matrix. It would be perfect use the triplets (http://eigen.tuxfamily.org/dox/Tutorial ... rseFilling) and i try do this, but it return always error. I post my code:
Someone can help me? Thanks, Simon ---edit: i undestand my error. The code above is correct. |
Moderator
|
for reference: http://stackoverflow.com/questions/1780 ... omtriplets
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]