![]() |
FSAIPACK Documentation
vers. 1.0
|
Data type to store a CSR matrix. More...
Data Types | |
| interface | assignment(=) |
| type | CSRMAT |
| matrix stored in CSR format More... | |
Public Member Functions | |
| integer function, public | new_CSRCOEF (CSRMAT_inout) |
| Allocates the CSR matrix coefficients. | |
| integer function, public | dlt_CSRCOEF (CSRMAT_inout) |
| Deallocates the CSR matrix coefficients. | |
| integer function, public | new_CSRMAT (nrows, nterm, CSRMAT_inout) |
| Allocates the CSR matrix data structure. | |
| integer function, public | dlt_CSRMAT (CSRMAT_inout) |
| Deallocates the CSR matrix data structure. | |
| subroutine, public | copy_CSRMAT (mat_out, mat_in) |
| Copy a CSR matrix data structure. | |
| subroutine, public | errchk_CSRMAT (ounit, sub, ierr) |
| Error handling routine. | |
Data type to store a CSR matrix.
This module is used to define the Compact Sparse Row (CSR) data type for matrices storage (see Y. Saad -- Iterative Methods for Sparse Linear Systems)
| subroutine, public class_CSRMAT::copy_CSRMAT | ( | type(CSRMAT), intent(inout) | mat_out, |
| type(CSRMAT), intent(in) | mat_in | ||
| ) |
| integer function, public class_CSRMAT::dlt_CSRCOEF | ( | type(CSRMAT), intent(inout) | CSRMAT_inout | ) |
Deallocates the CSR matrix coefficients.
| integer function, public class_CSRMAT::dlt_CSRMAT | ( | type(CSRMAT), intent(inout) | CSRMAT_inout | ) |
Deallocates the CSR matrix data structure.
| subroutine, public class_CSRMAT::errchk_CSRMAT | ( | integer, intent(in) | ounit, |
| character*(*), intent(in) | sub, | ||
| integer, intent(in) | ierr | ||
| ) |
Error handling routine.
| integer function, public class_CSRMAT::new_CSRCOEF | ( | type(CSRMAT), intent(inout) | CSRMAT_inout | ) |
Allocates the CSR matrix coefficients.
| integer function, public class_CSRMAT::new_CSRMAT | ( | integer, intent(in) | nrows, |
| integer, intent(in) | nterm, | ||
| type(CSRMAT), intent(inout) | CSRMAT_inout | ||
| ) |
Allocates the CSR matrix data structure.
| [in] | nrows | # of rows |
| [in] | nterm | # of non zeroes |
| inout] | mat_inout CSRMAT variable | |
| [out] | ierr | error code |
| == | 0, successful allocation | |
| /= | 0, allocation error |