Synopsis

PDX_MSGT mth_MatrixTranspose(long option, int row, int col, double *matrix1, double *matrix2)

Purpose

Find the transpose of a matrix

Description

Find the transpose of a matrix. The output matrix will have the same number of rows as the number of columns and the same number of columns as the number of rows in the input matrix.

The array of output matrix could be the same as that of input matrix.

Input

option

Options (not used)

row

The number of rowsin the input matrix

col

The number of columns in the input matrix

matrix1

The input matrix [row x col]

Output

matrix2

The inverse matrix [col x row]

Return

      MTH_NOERR
      Low level error return
      .fi