nag_dgeequ (f07afc) 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.
- NE_BAD_PARAM
-
On entry, argument had an illegal value.
- NE_INT
-
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_2
-
On entry, and .
Constraint: .
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.
- NE_MAT_COL_ZERO
-
The column of is exactly zero.
- NE_MAT_ROW_ZERO
-
The row of is exactly zero.
The computed scale factors will be close to the exact scale factors.
Not applicable.
The complex analogue of this function is
nag_zgeequ (f07atc).
This example equilibrates the general matrix
given by
Details of the scaling factors, and the scaled matrix are output.