linalg 1.8.2
A linear algebra library that provides a user-friendly interface to several BLAS and LAPACK routines.
Loading...
Searching...
No Matches
sparskit::aplb Interface Reference

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)
 

Detailed Description

Computes the matrix sum: C = A + B, where the matrices are given in CSR format.

Parameters
[in]nrowThe number of rows in the matrices.
[in]ncolThe number of columns in the matrices.
[in]aThe non-zero elements of matrix A.
[in]jaThe column indices of matrix A.
[in]iaThe index in A where the requested row starts.
[in]bThe non-zero elements of matrix B.
[in]jbThe column indices of matrix B.
[in]ibThe index in B where the requested row starts.
[out]cThe non-zero elements of matrix C.
[out]jcThe column indices of matrix C.
[out]icThe index in C where the requested row starts.
[in]nzmaxThe length of arrays C & JC. The routine will stop if the results matrix C has a number of elements that exceeds NZMAX.
[out]iwA workspace array with a length equal to the number of of columns in matrix A.
[out]ierrAn error message indicator.
  • 0: Normal return
  • .gt. 0: Routine failed in row I with IERR = I because the number of elements in C exceeds NZMAX.

Definition at line 63 of file sparskit.f90.

Constructor & Destructor Documentation

◆ aplb()

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.


The documentation for this interface was generated from the following file: