HELPLIB.HLB  —  FORTRAN  Intrinsic Procedures, TRANSPOSE
  TRANSPOSE (matrix)

  Class:  Transformational function - Generic

  Transposes an array of rank two (can be any data type).

  The result is a rank-two array with the same type and kind type
  parameters as "matrix".  Its shape is (n, m), where (m, n) is the
  shape of "matrix".  For example, if the shape of "matrix" is (4,6),
  the shape of the result is (6,4).

  Element (i, j) of the result has the value matrix(j, i), where "i"
  is in the range 1 to n, and "j" is in the range 1 to m.

  Examples:

  Consider that B is the array:

   |2 3 4|
   |5 6 7|.
   |8 9 1|

  TRANSPOSE (B) has the value

   |2 5 8|
   |3 6 9|.
   |4 7 1|
Close Help