bobbydrake
Technical User
dear all,
i have this problem inputing data. i have this following data:
index i j value
1 1 2 2
2 1 3 10
3 2 3 10
4 2 4 5
5 3 4 6
i need this data to read it in fortran and make it as a matrix a(i,j).
'i' mean the row of a matrix a, and 'j' column of matrix a.
example, from index 1, it has to be a(1,2)=2
from the given data it will produces matrix:
a=
0 2 10 0
0 0 10 5
0 0 0 6
0 0 0 0
would you help me through this? many thanks before.
i have this problem inputing data. i have this following data:
index i j value
1 1 2 2
2 1 3 10
3 2 3 10
4 2 4 5
5 3 4 6
i need this data to read it in fortran and make it as a matrix a(i,j).
'i' mean the row of a matrix a, and 'j' column of matrix a.
example, from index 1, it has to be a(1,2)=2
from the given data it will produces matrix:
a=
0 2 10 0
0 0 10 5
0 0 0 6
0 0 0 0
would you help me through this? many thanks before.