naginterfaces.library.blas.ztrsm

naginterfaces.library.blas.ztrsm(side, uplo, transa, diag, m, alpha, a, b)[source]

ztrsm performs one of the matrix-matrix operations

where is a complex triangular matrix, is an complex matrix, and is a complex scalar. denotes or equivalently ; denotes or equivalently .

No test for singularity or near-singularity of is included in this function. Such tests must be performed before calling this function.

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

https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/f06/f06zjf.html

Parameters
sidestr, length 1

Specifies whether is operated on from the left or the right.

is pre-multiplied from the left.

is post-multiplied from the right.

uplostr, length 1

Specifies whether is upper or lower triangular.

is upper triangular.

is lower triangular.

transastr, length 1

Specifies whether the operation involves , or .

The operation involves .

The operation involves .

The operation involves .

diagstr, length 1

Specifies whether has nonunit or unit diagonal elements.

The diagonal elements are stored explicitly.

The diagonal elements are assumed to be , and are not referenced.

mint

, the number of rows of the matrix ; the order of if .

alphacomplex

The scalar .

acomplex, 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 triangular matrix ; is if , or if .

bcomplex, array-like, shape

The matrix .

If , need not be set.

Returns
bcomplex, ndarray, shape

The updated 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: , or .

(errno )

On entry, error in parameter .

Constraint: or .

(errno )

On entry, error in parameter .

Constraint: .

(errno )

On entry, error in parameter .

Constraint: .

Notes

In the NAG Library the traditional C interface for this routine uses a different algorithmic base. Please contact NAG if you have any questions about compatibility.