Choral
Private Member Functions | Private Attributes | List of all members
csr_mod::csr Interface Reference

Derived type for sparse matrices in CSR format. More...

Collaboration diagram for csr_mod::csr:
Collaboration graph

Private Member Functions

final csr_clear
 destructor More...
 
type(csr) function csr_create (nnz)
  Constructor for the type csr More...
 

Private Attributes

integer nl = 0
 
integer nnz = 0
 
logical sorted = .FALSE.
 
integer, dimension(:), allocatable row
 
integer, dimension(:), allocatable col
 
integer width = 0
 
real(rp), dimension(:), allocatable a
 
integer, dimension(:), allocatable diag
 

Detailed Description

Derived type for sparse matrices in CSR format.

Definition at line 62 of file csr_mod.F90.

Member Function/Subroutine Documentation

◆ csr_clear()

final csr_mod::csr::csr_clear ( )
finalprivate

destructor

Definition at line 75 of file csr_mod.F90.

Here is the call graph for this function:

◆ csr_create()

type(csr) function csr_mod::csr::csr_create ( integer, dimension(:), intent(in)  nnz)
private

Constructor for the type csr

  • OUTPUT:
    • m = csr matrix
  • INPUT:
    • nnz: integer array, nnz(i) = number of non zero entries on line i

Definition at line 204 of file csr_mod.F90.

Member Data Documentation

◆ a

real(rp), dimension(:), allocatable csr_mod::csr::a
private

Definition at line 69 of file csr_mod.F90.

◆ col

integer, dimension(:), allocatable csr_mod::csr::col
private

Definition at line 67 of file csr_mod.F90.

◆ diag

integer, dimension(:), allocatable csr_mod::csr::diag
private

Definition at line 70 of file csr_mod.F90.

◆ nl

integer csr_mod::csr::nl = 0
private

Definition at line 63 of file csr_mod.F90.

◆ nnz

integer csr_mod::csr::nnz = 0
private

Definition at line 64 of file csr_mod.F90.

◆ row

integer, dimension(:), allocatable csr_mod::csr::row
private

Definition at line 66 of file csr_mod.F90.

◆ sorted

logical csr_mod::csr::sorted = .FALSE.
private

Definition at line 65 of file csr_mod.F90.

◆ width

integer csr_mod::csr::width = 0
private

Definition at line 68 of file csr_mod.F90.


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