|
NAG[f07gsc] NAG[nag_zpptrs] - Solution of complex Hermitian positive-definite system of linear equations, multiple right-hand sides, matrix already factorized by f07grc (nag_zpptrf), packed storage
|
|
Calling Sequence
f07gsc(uplo, ap, b, 'n'=n, 'nrhs'=nrhs, 'fail'=fail)
nag_zpptrs(. . .)
Parameters
|
uplo - String;
|
|
|
Constraint: "Nag_Upper" or "Nag_Lower". .
|
|
|
ap - Vector(1..dim, datatype=complex[8]);
|
|
|
Note: the dimension, dim, of the array ap must be at least .
|
|
|
b - Matrix(1..dim1, 1..dim2, datatype=complex[8], order=order);
|
|
|
Note: this array may be supplied in Fortran_order or C_order , as specified by order. All array parameters must use a consistent order.
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the dimension of the array ap.
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
'nrhs'=nrhs - integer; (optional)
|
|
|
Default value: the second dimension of the array b.
|
|
On entry: , the number of right-hand sides.
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_zpptrs (f07gsc) solves a complex Hermitian positive-definite system of linear equations with multiple right-hand sides,
where has been factorized by f07grc (nag_zpptrf), using packed storage.
|
|
Error Indicators and Warnings
|
|
"NE_ALLOC_FAIL"
Dynamic memory allocation failed.
"NE_BAD_PARAM"
On entry, argument had an illegal value.
"NE_INT"
On entry, . Constraint: .
On entry, . Constraint: .
"NE_INTERNAL_ERROR"
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please consult NAG for assistance.
|
|
Further Comments
|
|
The total number of real floating-point operations is approximately .
This function may be followed by a call to f07gvc (nag_zpprfs) to refine the solution and return an error estimate.
The real analogue of this function is f07gec (nag_dpptrs).
|
|
|
Examples
|
|
>
|
uplo := "Nag_Lower":
n := 4:
nrhs := 2:
ap := Vector([1.797220075561143 +0*I, 0.8401864749527325 +1.068316577423342*I, 1.316353439509685 +0*I, 1.057188279741849 -0.467388502622712*I, -0.4701749470106329 +0.3130658155999466*I, 1.560392977137124 +0*I, 0.233694251311356 -1.391037210186643*I, 0.08335250923944192 +0.03676071443037458*I, 0.9359617337923402 +0.9899692192815736*I, 0.6603332973655891 +0*I], datatype=complex[8], order='C_order'):
b := Matrix([[3.93 -6.14*I , 1.48 +6.58*I ], [6.17 +9.42*I , 4.65 -4.75*I ], [-7.17 -21.83*I , -4.91 +2.29*I ], [1.99 -14.38*I , 7.64 -10.79*I ]], datatype=complex[8], order='C_order'):
NAG:-f07gsc(uplo, ap, b, 'n' = n, 'nrhs' = nrhs):
|
|
|