|
◆ Zherk()
Sub Zherk |
( |
Uplo As |
String, |
|
|
Trans As |
String, |
|
|
N As |
Long, |
|
|
K As |
Long, |
|
|
Alpha As |
Double, |
|
|
A() As |
Complex, |
|
|
Beta As |
Double, |
|
|
C() As |
Complex, |
|
|
Optional Info As |
Long |
|
) |
| |
Rank k operation: C <- αAAH + βC or C <- αAHA + βC (Hermitian matrices) (BLAS 3)
- Purpose
- This routine performs one of the symmetric rank k operations
C <- αAA^H + βC or C <- αA^HA + βC
where α and β are real scalars, C is an n x n Hermitian matrix and A is an n x k matrix in the first case and a k x n matrix in the second case.
- Parameters
-
[in] | Uplo | Specifies whether the upper or lower triangular part of the array C() is to be referenced as follows:
= "U": Only the upper triangular part of C() is to be referenced.
= "L": Only the lower triangular part of C() is to be referenced. |
[in] | Trans | Specifies the operation to be performed as follows:
= "N": C <- αAA^H + βC.
= "C": C <- αA^HA + βC. |
[in] | N | Order of the matrix C. (N >= 0) (If N = 0, returns without computation) |
[in] | K | Number of columns of the matrix A when trans = "N", and number of rows of the matrix A when trans = "C". (K >= 0) |
[in] | Alpha | Scalar α. |
[in] | A() | Array A(LA1 - 1, LA2 - 1) (LA1 >= N, LA2 >= K (if Trans="N"), LA1 >= K, LA2 >= N (otherwise))
N x K matrix A when Trans = "N", or K x N matrix A otherwise. |
[in] | Beta | Scalar β. |
[in,out] | C() | Array C(LC1 - 1, LC2 - 1) (LC1 >= N, LC2 >= N)
[in] N x N Hermitian matrix C. Only the upper or lower triangular part is to be referenced in accordance with Uplo. The imaginary parts of the diagonal elements need not be set and are assumed to be zero.
[out] αAA^H + βC (if Trans = "N") or αA^HA + βC (otherwise). Only the upper or lower triangular part is overwritten in accordance with Uplo. The imaginary parts of the diagonal elements are set to zero. |
[out] | Info | (Optional)
= 0: Successful exit.
= -1: The argument Uplo had an illegal value. (Uplo <> "U" nor "L")
= -2: The argument Trans had an illegal value. (Trans <> "N" nor "C")
= -3: The argument N had an illegal value. (N < 0)
= -4: The argument K had an illegal value. (K < 0)
= -6: The argument A() is invalid.
= -8: The argument C() is invalid. |
- Reference
- BLAS
|