Next: psb_spsm Triangular
Up: Computational routines
Previous: psb_spnrmi Infinity
Contents
This subroutine computes the Sparse Matrix by Dense Matrix Product:
 |
(1) |
 |
(2) |
 |
(3) |
where:

- is the global dense submatrix

- is the global dense submatrix

- is the global sparse submatrix

- are the permutation matrices.
Table 11:
Data types
, , , ,  |
Subroutine |
Short Precision Real |
psb_spmm |
Long Precision Real |
psb_spmm |
Short Precision Complex |
psb_spmm |
Long Precision Complex |
psb_spmm |
|
call psb_spmm(alpha, a, x, beta, y, desc_a, info)
call psb_spmm(alpha, a, x, beta, y,desc_a, info, &
& trans, work)
- Type:
- Synchronous.
- On Entry
-
- alpha
- the scalar
.
Scope: global
Type: required
Intent: in.
Specified as: a number of the data type indicated in
Table 11.
- a
- the local portion of the sparse matrix
.
Scope: local
Type: required
Intent: in.
Specified as: a structured data of type spdatapsb_spmat_type.
- 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 11. The rank of
must be the same of
.
- beta
- the scalar
.
Scope: global
Type: required
Intent: in.
Specified as: a number of the data type indicated in Table 11.
- y
- the local portion of global dense matrix
.
Scope: local
Type: required
Intent: inout.
Specified as: a rank one or two array
containing numbers of type specified in
Table 11. The rank of
must be the same of
.
- desc_a
- contains data structures for communications.
Scope: local
Type: required
Intent: in.
Specified as: a structured data of type descdatapsb_desc_type.
- trans
- indicate what kind of operation to perform.
- trans = N
- the operation is specified by equation 1
- trans = T
- the operation is specified by equation
2
- trans = C
- the operation is specified by equation
3
Scope: global
Type: optional
Intent: in.
Default:
Specified as: a character variable.
- work
- work array.
Scope: local
Type: optional
Intent: inout.
Specified as: a rank one array of the same type of
and
with
the TARGET attribute.
- On Return
-
- y
- the local portion of result submatrix
.
Scope: local
Type: required
Intent: inout.
Specified as: an array of rank one or two
containing numbers of type specified in
Table 11.
- info
- Error code.
Scope: local
Type: required
Intent: out.
An integer value; 0 means no error has been detected.
Next: psb_spsm Triangular
Up: Computational routines
Previous: psb_spnrmi Infinity
Contents