nag_superlu_matrix_norm (f11mlc) computes the -norm, the -norm or the maximum absolute value of the elements of a real, square, sparse matrix which is held in compressed column (Harwell–Boeing) format.
nag_superlu_matrix_norm (f11mlc) computes various quantities relating to norms of a real, sparse by matrix presented in compressed column (Harwell–Boeing) format.
4 References
None.
5 Arguments
1:
– Nag_NormTypeInput
On entry: specifies the value to be returned in anorm.
The -norm of the matrix is computed, that is .
The -norm of the matrix is computed, that is .
The value (not a norm).
Constraint:
, or .
2:
– double *Output
On exit: the computed quantity relating the matrix.
3:
– IntegerInput
On entry: , the order of the matrix .
Constraint:
.
4:
– const IntegerInput
Note: the dimension, dim, of the array icolzp
must be at least
.
On entry: contains the index in of the start of a new column. See Section 2.1.3 in the f11 Chapter Introduction.
5:
– const IntegerInput
Note: the dimension, dim, of the array irowix
must be at least
, the number of nonzeros of the sparse matrix .
On entry: the row index array of sparse matrix .
6:
– const doubleInput
Note: the dimension, dim, of the array a
must be at least
, the number of nonzeros of the sparse matrix .
On entry: the array of nonzero values in the sparse matrix .
7:
– NagError *Input/Output
The NAG error argument (see Section 2.7 in How to Use the NAG Library and its Documentation).
6 Error Indicators and Warnings
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: .
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_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.
7 Accuracy
Not applicable.
8 Parallelism and Performance
nag_superlu_matrix_norm (f11mlc) is not threaded in any implementation.
9 Further Comments
None.
10 Example
This example computes norms and maximum absolute value of the matrix , where