Choral
Data Types | Functions/Subroutines
csr_fromgraph Module Reference

USE graph TO DEFINE csr MATRICES More...

Data Types

interface  csr
 constructor More...
 

Functions/Subroutines

type(csr) function csr_create_fromgraph (g)
 Constructor for the type csr. More...
 

Detailed Description

USE graph TO DEFINE csr MATRICES

Create a csr matrix knowing its sparsity pattern.

The sparsity pattern is given as a graph.

Author
Charles Pierre

Function/Subroutine Documentation

◆ csr_create_fromgraph()

type(csr) function csr_fromgraph::csr_create_fromgraph ( type(graph), intent(in)  g)
private

Constructor for the type csr.

Allocate memory for matrix 'm' and defines 'm%row', 'm%col'.

Entries can be given afterwards.

  • OUTPUT:
    • m = csr matrix
  • INPUT:
    • g = graph (the pattern of m)

Definition at line 47 of file csr_fromGraph.f90.

Here is the call graph for this function: