Choral
Data Types | Modules | Functions/Subroutines
csr_mod.F90 File Reference

Go to the source code of this file.

Data Types

interface  csr_mod::csr
 Derived type for sparse matrices in CSR format. More...
 
interface  csr_mod::clear
 destructor More...
 
interface  csr_mod::csr
 Derived type for sparse matrices in CSR format. More...
 
interface  csr_mod::print
 print a short description More...
 
interface  csr_mod::valid
 is the csr matrix well defined ? More...
 
interface  csr_mod::getrow
 
interface  csr_mod::setrow
 
interface  csr_mod::sortrows
 
interface  csr_mod::addentry
 
interface  csr_mod::equal
 test csr matrices equality More...
 
interface  csr_mod::write
 write the matrix to a file for a given format More...
 
interface  csr_mod::matvecprod
 matrix vector product More...
 
interface  csr_mod::add
 addition of csr matrices (with the same pattern) More...
 
interface  csr_mod::add_submatrix
 add a CSR matrix M1 with pattern P1 to a CSR matrix M with pattern P such that P1 is included in P More...
 
interface  csr_mod::scale
 scale the matrix entries More...
 
interface  csr_mod::reorder
 reorder rows and cols of a matrix following a permutation of the indexes More...
 
interface  csr_mod::copy
 M2 = M1. More...
 
interface  csr_mod::transpose
 transpose matrix of a sparse csr matrix More...
 
interface  csr_mod::invllt
 x solution of LLT x = b, L lower diagonal LT = transpose(L) More...
 

Modules

module  csr_mod
  DERIVED TYPE csr for sparse matrices
 

Functions/Subroutines

subroutine csr_mod::csr_clear (m)
 Destructor for csr type. More...
 
type(csr) function csr_mod::csr_create (nnz)
  Constructor for the type csr More...
 
logical function csr_mod::csr_valid (m)
 Check if structure contents is correct. More...
 
subroutine csr_mod::csr_getrow (sz, v, p, n, g, ii)
 Extract row ii of the csr matrix g. More...
 
subroutine csr_mod::csr_setrow (m, val, col, ii)
 Set line ii. More...
 
logical function csr_mod::csr_equal (g1, g2)
 test equality More...
 
subroutine csr_mod::csr_addentry (m, rw, cl, val)
 Filling matrix m entries. More...
 
subroutine, public csr_mod::addentry_2 (m, rw, cl, val)
 Filling matrix m entries. More...
 
subroutine csr_mod::csr_write (m, fileName, fileFormat)
 Write matrix m to file 'fileName' with format 'fileFormat'. More...
 
subroutine csr_mod::matlab_write (m, fileName)
 Write matrix m to file 'fileName' matlab ASCII format. More...
 
subroutine csr_mod::csr_copy (s2, s1)
 s2 = s1, copy : s2 is nullified, reallocated and set to s1 More...
 
subroutine csr_mod::csr_matvecprod (v, m, u)
 Matrix Vector Product v <= m*u. More...
 
subroutine csr_mod::csr_add_2 (m, m1, a, m2, b)
 m <= a*m1 + b*m2 m1, m2 with identical patterns More...
 
subroutine csr_mod::csr_add_1 (m1, a, m2, b)
 m1 = a*m1 + b*m2 m1, m2 with identical patterns More...
 
subroutine csr_mod::csr_scale (m1, a)
 m1 <= a*m1 More...
 
subroutine csr_mod::csr_reorder (s, perm, permInv)
 reorder s according to the permutation perm, permInv = perm^{-1} More...
 
subroutine csr_mod::csr_sortrows (s)
 Sort column indexing per line (increasingly) More...
 
subroutine csr_mod::csr_invllt (x, LLT, b)
 x solution of LLT x = b, L lower diagonal LT = transpose(L) More...
 
subroutine csr_mod::invlt (x, LT, b)
 x solution of LT x = b, L lower diagonal LT = transpose(L) More...
 
subroutine csr_mod::invl (x, L, b)
 x solution of L x = b More...
 
subroutine, public csr_mod::getdiag (A)
 Computes the array Adiag of the indices in Acol for the diagonal coefficients. More...
 
subroutine csr_mod::csr_transpose (g2, g1)
 Transpose csr. More...
 
subroutine csr_mod::add_submatrix_1 (m, m2)
 m <= m + m2 m2(i,j) /=0 ==> m(i,j)/=0 More...
 
subroutine csr_mod::add_submatrix_2 (m, m2, a)
 m <= m + a*m2 m2(i,j) /=0 ==> m(i,j)/=0 More...
 
subroutine csr_mod::csr_print (g)
 Print a short description. More...