|
NAG[f08qlc] NAG[nag_dtrsna] - Estimates of sensitivities of selected eigenvalues and eigenvectors of real upper quasi-triangular matrix
|
|
Calling Sequence
f08qlc(job, how_many, select, t, vl, vr, s, sep, m, 'n'=n, 'mm'=mm, 'fail'=fail)
nag_dtrsna(. . .)
Parameters
|
job - String;
|
|
|
On entry: indicates whether condition numbers are required for eigenvalues and/or eigenvectors.
|
|
Condition numbers for eigenvalues only are computed.
|
|
Condition numbers for eigenvectors only are computed.
|
|
Condition numbers for both eigenvalues and eigenvectors are computed.
|
|
Constraint: "Nag_EigVals", "Nag_EigVecs" or "Nag_DoBoth". .
|
|
|
how_many - String;
|
|
|
On entry: indicates how many condition numbers are to be computed.
|
|
Condition numbers for all eigenpairs are computed.
|
|
Condition numbers for selected eigenpairs (as specified by select) are computed.
|
|
Constraint: "Nag_ComputeAll" or "Nag_ComputeSelected". .
|
|
|
select - Vector(1..dim, datatype=boolean);
|
|
|
Note: the dimension, dim, of the array select must be at least
|
|
when ;
|
|
otherwise.
|
|
If , select is not referenced.
|
|
|
t - 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.
|
|
|
vl - 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.
|
|
If , vl is not referenced.
|
|
|
vr - 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.
|
|
If , vr is not referenced.
|
|
|
s - Vector(1..dim, datatype=float[8]);
|
|
|
Note: the dimension, dim, of the array s must be at least
|
|
when .
|
|
s is not referenced if .
|
|
|
sep - Vector(1..dim, datatype=float[8]);
|
|
|
Note: the dimension, dim, of the array sep must be at least
|
|
when .
|
|
If , sep is not referenced.
|
|
|
m - assignable;
|
|
|
Note: On exit the variable m will have a value of type integer.
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the dimension of the array t.
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
'mm'=mm - integer; (optional)
|
|
|
Default value: the second dimension of the arrays vl, vr.
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_dtrsna (f08qlc) estimates condition numbers for specified eigenvalues and/or right eigenvectors of a real upper quasi-triangular matrix.
|
|
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: .
"NE_INT_2"
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.
|
|
Accuracy
|
|
The computed values may over estimate the true value, but seldom by a factor of more than 3.
|
|
|
Examples
|
|
>
|
job := "Nag_DoBoth":
how_many := "Nag_ComputeAll":
n := 4:
mm := 4:
selector := Vector([false], datatype=boolean):
t := Matrix([[0.7995, -0.1144, 0.006, 0.0336], [0, -0.0994, 0.2478, 0.3474], [0, -0.6483, -0.0994, 0.2026], [0, 0, 0, -0.1007]], datatype=float[8]):
vl := Matrix([[1, 0, 0, 0], [-0.1101757724599591, 0.8492971136777001, 0, 0], [-0.02369735945664465, 0, 0.5250761453388552, 0], [-0.01052671448401023, -0.2630232022148211, 0.7369767977851788, 1]], datatype=float[8]):
vr := Matrix([[1, 0.06811593844054897, 0.02369735945664464, 0.008112867113990377], [0, 0.6182478862610575, 0, 0.2206494686069181], [0, 0, 1, -1], [0, 0, 0, 0.7124731021612292]], datatype=float[8]):
s := Vector(4, datatype=float[8]):
sep := Vector(4, datatype=float[8]):
NAG:-f08qlc(job, how_many, selector, t, vl, vr, s, sep, m, 'n' = n, 'mm' = mm):
|
|
|