This interface overloads the Fortran intrinsic matmul
for a
Bidiagonal
matrix, both for matrix-vector and matrix-matrix
products. For a matrix-matrix product , only the matrix
has to be a Bidiagonal
matrix. Both and
need to be standard Fortran rank-2 arrays. All the underlying
functions are defined as pure
.
y = matmul(A, x)
Compute the matrix-vector product for a Bidiagonal
matrix . Both x
and y
are rank-1 arrays with the same
kind as A
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Bidiagonal), | intent(in), | target | :: | A |
Input matrix. |
|
real(kind=dp), | intent(in), | target | :: | x(:) |
Input vector. |
Output vector.
Compute the matrix-matrix product for a Bidiagonal
matrix and a dense matrix (rank-2 array). is
also a rank-2 array with the same dimensions as .
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Bidiagonal), | intent(in) | :: | A |
Input matrix. |
||
real(kind=dp), | intent(in) | :: | X(:,:) |
Input vectors. |
Output vectors.