Choral
Private Member Functions | Private Attributes | List of all members
graph_mod::graph Interface Reference

The type graph stores sparse matrices of boolean in CSR format. More...

Collaboration diagram for graph_mod::graph:
Collaboration graph

Private Member Functions

final graph_clear
 destructor More...
 
type(graph) function graph_create (nnz, nl, nc)
  Constructor for the type graph More...
 

Private Attributes

integer nl = 0
 Number of lines. More...
 
integer nc = 0
 Number of columns. More...
 
integer nnz = 0
 Number of non-zero entries. More...
 
integer, dimension(:), allocatable row
 row(i+1) - row(i) : number of non-zero entries of line i More...
 
integer, dimension(:), allocatable col
 col(ji:j2) : column indexes of the non-zero entries of line i More...
 
integer width = 0
 Max number of non-zero entries per line. More...
 
logical sorted = .FALSE.
 .TRUE. if every row is sorted in ascending order More...
 

Detailed Description

The type graph stores sparse matrices of boolean in CSR format.

See the description in graph_mod detailed description.

Definition at line 78 of file graph_mod.F90.

Member Function/Subroutine Documentation

◆ graph_clear()

final graph_mod::graph::graph_clear ( )
finalprivate

destructor

Definition at line 103 of file graph_mod.F90.

Here is the call graph for this function:

◆ graph_create()

type(graph) function graph_mod::graph::graph_create ( integer, dimension(nl), intent(in)  nnz,
integer, intent(in)  nl,
integer, intent(in)  nc 
)
private

Constructor for the type graph

Parameters
[out]ggraph
[in]nnz(i)= number of non zero entries on line i
[in]nl= nulber of lines
[in]nc= nulber of columns if nc is unknown when creating the graph, set nc to 0 and reset it afterwards0

Definition at line 188 of file graph_mod.F90.

Member Data Documentation

◆ col

integer, dimension(:), allocatable graph_mod::graph::col
private

col(ji:j2) : column indexes of the non-zero entries of line i

with : j1 = row(i), j2 = row(i+1) - 1

Definition at line 92 of file graph_mod.F90.

◆ nc

integer graph_mod::graph::nc = 0
private

Number of columns.

Definition at line 82 of file graph_mod.F90.

◆ nl

integer graph_mod::graph::nl = 0
private

Number of lines.

Definition at line 80 of file graph_mod.F90.

◆ nnz

integer graph_mod::graph::nnz = 0
private

Number of non-zero entries.

Definition at line 84 of file graph_mod.F90.

◆ row

integer, dimension(:), allocatable graph_mod::graph::row
private

row(i+1) - row(i) : number of non-zero entries of line i

Definition at line 87 of file graph_mod.F90.

◆ sorted

logical graph_mod::graph::sorted = .FALSE.
private

.TRUE. if every row is sorted in ascending order

Definition at line 98 of file graph_mod.F90.

◆ width

integer graph_mod::graph::width = 0
private

Max number of non-zero entries per line.

Definition at line 95 of file graph_mod.F90.


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