|
NAG[f07mec] NAG[nag_dsytrs] - Solution of real symmetric indefinite system of linear equations, multiple right-hand sides, matrix already factorized by f07mdc (nag_dsytrf)
|
|
Calling Sequence
f07mec(uplo, a, ipiv, b, 'n'=n, 'nrhs'=nrhs, 'fail'=fail)
nag_dsytrs(. . .)
Parameters
|
uplo - String;
|
|
|
On entry: indicates how has been factorized.
|
|
Constraint: "Nag_Upper" or "Nag_Lower". .
|
|
|
a - Matrix(1..dim1, 1..dim2, datatype=float[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.
|
|
|
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 f07mdc (nag_dsytrf).
|
|
|
b - Matrix(1..dim1, 1..dim2, datatype=float[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 a.
|
|
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_dsytrs (f07mec) solves a real symmetric indefinite system of linear equations with multiple right-hand sides,
where has been factorized by f07mdc (nag_dsytrf).
|
|
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 floating-point operations is approximately .
This function may be followed by a call to f07mhc (nag_dsyrfs) to refine the solution and return an error estimate.
The complex analogues of this function are f07msc (nag_zhetrs) for Hermitian matrices and f07nsc (nag_zsytrs) for symmetric matrices.
|
|
|
Examples
|
|
>
|
uplo := "Nag_Lower":
n := 4:
nrhs := 2:
a := Matrix([[1.335954681697555, 0, 0, 0], [-0.6975109160126703, -1.905898246668038, 0, 0], [0.8273386982024001, 0.7403045011146071, 3.494530386740331, 0], [0.6353591160220995, -0.3480662983425414, -1.138121546961326, -1.81]], datatype=float[8], order='C_order'):
ipiv := Vector([1, 2, 3, 4], datatype=integer[kernelopts('wordsize')/8]):
b := Matrix([[-9.5, 27.85], [-8.380000000000001, 9.9], [-6.07, 19.25], [-0.96, 3.93]], datatype=float[8], order='C_order'):
NAG:-f07mec(uplo, a, ipiv, b, 'n' = n, 'nrhs' = nrhs):
|
|
|