linalg 1.8.2
A linear algebra library that provides a user-friendly interface to several BLAS and LAPACK routines.
|
Computes the matrix sum: C = A + B, where the matrices are given in CSR format. More...
Public Member Functions | |
subroutine | aplb (nrow, ncol, job, a, ja, ia, b, jb, ib, c, jc, ic, nzmax, iw, ierr) |
Computes the matrix sum: C = A + B, where the matrices are given in CSR format.
[in] | nrow | The number of rows in the matrices. |
[in] | ncol | The number of columns in the matrices. |
[in] | a | The non-zero elements of matrix A. |
[in] | ja | The column indices of matrix A. |
[in] | ia | The index in A where the requested row starts. |
[in] | b | The non-zero elements of matrix B. |
[in] | jb | The column indices of matrix B. |
[in] | ib | The index in B where the requested row starts. |
[out] | c | The non-zero elements of matrix C. |
[out] | jc | The column indices of matrix C. |
[out] | ic | The index in C where the requested row starts. |
[in] | nzmax | The length of arrays C & JC. The routine will stop if the results matrix C has a number of elements that exceeds NZMAX. |
[out] | iw | A workspace array with a length equal to the number of of columns in matrix A. |
[out] | ierr | An error message indicator.
|
Definition at line 63 of file sparskit.f90.
subroutine sparskit::aplb::aplb | ( | integer(int32), intent(in) | nrow, |
integer(int32), intent(in) | ncol, | ||
integer(int32), intent(in) | job, | ||
real(real64), dimension(*), intent(in) | a, | ||
integer(int32), dimension(*), intent(in) | ja, | ||
integer(int32), dimension(nrow+1), intent(in) | ia, | ||
real(real64), dimension(*), intent(in) | b, | ||
integer(int32), dimension(*), intent(in) | jb, | ||
integer(int32), dimension(nrow+1), intent(in) | ib, | ||
real(real64), dimension(*), intent(out) | c, | ||
integer(int32), dimension(*), intent(out) | jc, | ||
integer(int32), dimension(nrow+1), intent(out) | ic, | ||
integer(int32), intent(in) | nzmax, | ||
integer(int32), dimension(ncol), intent(out) | iw, | ||
integer(int32), intent(out) | ierr ) |
Definition at line 63 of file sparskit.f90.