|
NAG[f07fec] NAG[nag_dpotrs] - Solution of real symmetric positive-definite system of linear equations, multiple right-hand sides, matrix already factorized by f07fdc (nag_dpotrf)
|
|
Calling Sequence
f07fec(uplo, a, b, 'n'=n, 'nrhs'=nrhs, 'fail'=fail)
nag_dpotrs(. . .)
Parameters
|
uplo - String;
|
|
|
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.
|
|
|
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_dpotrs (f07fec) solves a real symmetric positive-definite system of linear equations with multiple right-hand sides,
where has been factorized by f07fdc (nag_dpotrf).
|
|
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 f07fhc (nag_dporfs) to refine the solution and return an error estimate.
The complex analogue of this function is f07fsc (nag_zpotrs).
|
|
|
Examples
|
|
>
|
uplo := "Nag_Lower":
n := 4:
nrhs := 2:
a := Matrix([[2.039607805437114, 0, 0, 0], [-1.529705854077835, 1.640121946685673, 0, 0], [0.2745625891934577, -0.2499814119483738, 0.7887488055748053, 0], [-0.04902903378454601, 0.6737303907389101, 0.6616575633742563, 0.5346894269298686]], datatype=float[8], order='C_order'):
b := Matrix([[8.699999999999999, 8.300000000000001], [-13.35, 2.13], [1.89, 1.61], [-4.14, 5]], datatype=float[8], order='C_order'):
NAG:-f07fec(uplo, a, b, 'n' = n, 'nrhs' = nrhs):
|
|
|