- #1
d4n1el
- 3
- 1
Hi!
I'm working on a programming project(fortran 77).
and I need to transpose a big matrix, and for the moment I'm doing it by to do-loops:
DO 20 J = 2,NP
DO 10 I = 1,J-1
T = P(I,J)
P(I,J) = P(J,I)
P(J,I) = T
10 CONTINUE
20 CONTINUE
But is this the most optimized way? is it any way you could do it by using for example BLAS?
I've been googleing, but could't find out how to do it..
/Daniel
I'm working on a programming project(fortran 77).
and I need to transpose a big matrix, and for the moment I'm doing it by to do-loops:
DO 20 J = 2,NP
DO 10 I = 1,J-1
T = P(I,J)
P(I,J) = P(J,I)
P(J,I) = T
10 CONTINUE
20 CONTINUE
But is this the most optimized way? is it any way you could do it by using for example BLAS?
I've been googleing, but could't find out how to do it..
/Daniel