Next: psb_genrm2s Generalized
Up: Computational routines
Previous: psb_geasum 1-Norm
Contents
This subroutine computes a series of 1-norms on the columns of
a dense matrix
:
This function computes the 1-norm of a vector
.
If
is a real vector
it computes 1-norm as:
else if
is a complex vector then it computes 1-norm as:
call psb_geasums(res, x, desc_a, info)
Table 7:
Data types
 |
 |
Subroutine |
Short Precision Real |
Short Precision Real |
psb_geasums |
Long Precision Real |
Long Precision Real |
psb_geasums |
Short Precision Real |
Short Precision Complex |
psb_geasums |
Long Precision Real |
Long Precision Complex |
psb_geasums |
|
- Type:
- Synchronous.
- On Entry
-
- x
- the local portion of global dense matrix
.
Scope: local
Type: required
Intent: in.
Specified as: a rank one or two array
containing numbers of type specified in
Table 7.
- desc_a
- contains data structures for communications.
Scope: local
Type: required
Intent: in.
Specified as: a structured data of type descdatapsb_desc_type.
- On Return
-
- res
- contains the 1-norm of (the columns of)
.
Scope: global
Intent: out.
Short as: a long precision real number.
Specified as: a long precision real number.
- info
- Error code.
Scope: local
Type: required
Intent: out.
An integer value; 0 means no error has been detected.
ifstarsubroutinesubroutinepsb_genrm22-Norm of Vector
This function computes the 2-norm of a vector
.
If
is a double precision real vector
it computes 2-norm as:
else if
is double precision complex vector then it computes 2-norm as:
Table 8:
Data types
 |
 |
Function |
Short Precision Real |
Short Precision Real |
psb_genrm2 |
Long Precision Real |
Long Precision Real |
psb_genrm2 |
Short Precision Real |
Short Precision Complex |
psb_genrm2 |
Long Precision Real |
Long Precision Complex |
psb_genrm2 |
|
psb_genrm2(x, desc_a, info)
- Type:
- Synchronous.
- On Entry
-
- x
- the local portion of global dense matrix
.
Scope: local
Type: required
Intent: in.
Specified as: a rank one or two array
containing numbers of type specified in
Table 8.
- desc_a
- contains data structures for communications.
Scope: local
Type: required
Intent: in.
Specified as: a structured data of type descdatapsb_desc_type.
- On Return
-
- Function Value
- is the 2-norm of subvector
.
Scope: global
Type: required
Specified as: a long precision real number.
- info
- Error code.
Scope: local
Type: required
Intent: out.
An integer value; 0 means no error has been detected.
Next: psb_genrm2s Generalized
Up: Computational routines
Previous: psb_geasum 1-Norm
Contents