#
Fortran Wiki

transpose

## Description

Transpose an array of rank two. Element (i, j) of the result has the value `matrix(j, i)`

, for all i, j.

## Standard

Fortran 95 and later

## Class

Transformational function

## Syntax

`result = transpose(matrix)`

## 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 /)`

.

Revised on April 30, 2009 17:32:03
by

Jason Blevins
(71.70.142.190)
(462 characters / 0.0 pages)