nag_dgbequ (f07bfc) computes the diagonal scaling matrices. The diagonal scaling matrices are chosen to try to make the elements of largest absolute value in each row and column of the matrix
given by
have absolute value
. The diagonal elements of
and
are restricted to lie in the safe range
, where
is the value returned by function
nag_real_safe_small_number (X02AMC). Use of these scaling factors is not guaranteed to reduce the condition number of
but works well in practice.
None.
- NE_ALLOC_FAIL
-
Dynamic memory allocation failed.
See
Section 2.3.1.2 in How to Use the NAG Library and its Documentation for further information.
- NE_BAD_PARAM
-
On entry, argument had an illegal value.
- NE_INT
-
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_3
-
On entry, , and .
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 contact
NAG for assistance.
An unexpected error has been triggered by this function. Please contact
NAG.
See
Section 2.7.6 in How to Use the NAG Library and its Documentation for further information.
- NE_MAT_COL_ZERO
-
Column of is exactly zero.
- NE_MAT_ROW_ZERO
-
Row of is exactly zero.
- NE_NO_LICENCE
-
Your licence key may have expired or may not have been installed correctly.
See
Section 2.7.5 in How to Use the NAG Library and its Documentation for further information.
The computed scale factors will be close to the exact scale factors.
nag_dgbequ (f07bfc) is not threaded in any implementation.
The complex analogue of this function is
nag_zgbequ (f07btc).
This example equilibrates the band matrix
given by
Details of the scaling factors, and the scaled matrix are output.