naginterfaces.library.matop.real_​gen_​trans_​inplace

naginterfaces.library.matop.real_gen_trans_inplace(a, m, n)[source]

real_gen_trans_inplace transposes a rectangular matrix in-situ.

For full information please refer to the NAG Library document for f01cr

https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f01/f01crf.html

Parameters
afloat, ndarray, shape , modified in place

On entry: the elements of the matrix , stored by columns.

On exit: the elements of the transpose matrix, also stored by columns.

mint

, the number of rows of the matrix .

nint

, the number of columns of the matrix .

Raises
NagValueError
(errno )

A serious internal error has occurred in real_gen_trans_inplace.

(errno )

On entry, , and .

Constraint: .

Notes

No equivalent traditional C interface for this routine exists in the NAG Library.

real_gen_trans_inplace requires that the elements of an matrix are stored consecutively by columns in a one-dimensional array. It reorders the elements so that on exit the array holds the transpose of stored in the same way. For example, if and , on entry the array must hold:

and on exit it holds

References

Cate, E G and Twigg, D W, 1977, Algorithm 513: Analysis of in-situ transposition, ACM Trans. Math. Software (3), 104–110