|
NAG[f07qsc] NAG[nag_zsptrs] - Solution of complex symmetric system of linear equations, multiple right-hand sides, matrix already factorized by f07qrc (nag_zsptrf), packed storage
|
|
Calling Sequence
f07qsc(uplo, ap, ipiv, b, 'n'=n, 'nrhs'=nrhs, 'fail'=fail)
nag_zsptrs(. . .)
Parameters
|
uplo - String;
|
|
|
On entry: indicates how has been factorized.
|
|
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 .
|
|
On entry: details of the factorization of stored in packed form, as returned by f07qrc (nag_zsptrf).
|
|
|
ipiv - Vector(1..dim, datatype=integer[kernelopts('wordsize')/8]);
|
|
|
Note: the dimension, dim, of the array ipiv must be at least .
|
|
On entry: details of the interchanges and the block structure of , as returned by f07qrc (nag_zsptrf).
|
|
|
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_zsptrs (f07qsc) solves a complex symmetric system of linear equations with multiple right-hand sides,
where has been factorized by f07qrc (nag_zsptrf), 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 f07qvc (nag_zsprfs) to refine the solution and return an error estimate.
The real analogue of this function is f07pec (nag_dsptrs).
|
|
|
Examples
|
|
>
|
uplo := "Nag_Lower":
n := 4:
nrhs := 2:
ap := Vector([-2.095414887840057 -2.201139281440786*I, 0.6163476554930588 +0.3205087519415588*I, -3.062435063227829 +0.5785222871831118*I, -0.6361017242414988 -0.1467934997322617*I, -6.055798556294841 -3.919323319763695*I, -4.045615983721325 +0.6791946874193678*I, 0.5427284633454681 -0.1831081849498078*I, 0.5412035604708979 -0.2900201404573731*I, -0.368537352783284 +0.1407508587514384*I, 8.859999999999999 +1.81*I], datatype=complex[8], order='C_order'):
ipiv := Vector([1, -1, -1, 2], datatype=integer[kernelopts('wordsize')/8]):
b := Matrix([[-55.64 +41.22*I , -19.09 -35.97*I ], [-48.18 +66*I , -12.08 -27.02*I ], [-0.49 -1.47*I , 6.95 +20.49*I ], [-6.43 +19.24*I , -4.59 -35.53*I ]], datatype=complex[8], order='C_order'):
NAG:-f07qsc(uplo, ap, ipiv, b, 'n' = n, 'nrhs' = nrhs):
|
|
|