naginterfaces.library.blas.zgeapr

naginterfaces.library.blas.zgeapr(side, trans, perm, k, b)[source]

zgeapr permutes the rows or columns of a complex rectangular matrix using a float array of permutations.

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

https://www.nag.com/numeric/nl/nagdoc_29.3/flhtml/f06/f06vkf.html

Parameters
sidestr, length 1

Specifies the operation to be performed.

and

.

and

.

and

.

and

.

transstr, length 1

Specifies the operation to be performed.

and

.

and

.

and

.

and

.

permfloat, array-like, shape

The indices which define the interchanges in the representation of . It is usual to have , but this is not necessary.

kint

, the number of columns of if , or the number of rows of if .

bcomplex, array-like, shape

Note: the required extent for this argument in dimension 1 is determined as follows: if : ; if : ; otherwise: .

Note: the required extent for this argument in dimension 2 is determined as follows: if : ; if : ; otherwise: .

The original matrix ; is if , or if .

Returns
bcomplex, ndarray, shape

The permuted matrix .

Raises
NagValueError
(errno )

On entry, error in parameter .

Constraint: or .

(errno )

On entry, error in parameter .

Constraint: or .

(errno )

On entry, error in parameter .

Constraint: .

(errno )

On entry, error in parameter .

Constraint: .

(errno )

On entry, error in parameter .

Constraint: .

Notes

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

zgeapr performs one of the permutation operations

where is a complex matrix, and is a permutation matrix.

is represented in the form

where is the permutation matrix that interchanges items and ; that is, is the unit matrix with rows and columns and interchanged. If , .

Let denote the number of rows of if , or the number of columns of if : the function does not require to be passed as an argument, but assumes that , for .

This function requires the indices to be supplied in a float array (the function takes the integer part of the array elements); zgeap() performs the same operation with the indices supplied in an int array.