TRANSPOSE (The GNU Fortran Compiler) (original) (raw)
Next: TRIM — Remove trailing blank characters of a string, Previous: TRANSFER — Transfer bit patterns, Up: Intrinsic Procedures [Contents][Index]
8.277 TRANSPOSE
— Transpose an array of rank two ¶
Synopsis:
RESULT = TRANSPOSE(MATRIX)
Description:
Transpose an array of rank two. Element (i, j) of the result has the value MATRIX(j, i)
, for all i, j.
Class:
Transformational function
Arguments:
MATRIX | Shall be an array of any type and have a rank of two. |
---|
Return value:
The result has the same type as MATRIX, and has shape (/ m, n /)
if MATRIX has shape (/ n, m /)
.
Standard:
Fortran 90 and later