This function computes the 2-norm of a vector x.
If x is a real vector it computes 2-norm as:
else if x is a complex vector then it computes 2-norm as:
nrm2 | x | 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 [,global])
psb_norm2(x, desc_a, info [,global])
Notes
In this way the global communication, which for small sizes is a latency-bound operation, is invoked only once.