FE-Project
Loading...
Searching...
No Matches
scale_sparsemat::sparsemat Type Reference

Derived type to manage a sparse matrix. More...

Public Member Functions

procedure, public init (this, mat, eps, storage_format)
procedure, public final (this)
procedure, public print (a)
procedure, public replaceval (a, i, j, v)
procedure, public getval (a, i, j)
procedure, public getstorageformatid (a)

Public Attributes

integer m
 Number of row of original matrix.
integer n
 Number of column of original matrix.
integer nnz
 Number of nonzero of the matrix.
real(rp), dimension(:), allocatable val
 Array storing the values of the nonzeros.
integer, dimension(:), allocatable colidx
 Array saving the column indices of the nonzeros.
integer, dimension(:), allocatable rowptr
 Array saving the start and end pointers of the nonzeros of the rows.
integer rowptrsize
 Size of rowPtr.
integer col_size

Detailed Description

Derived type to manage a sparse matrix.

Definition at line 33 of file scale_sparsemat.F90.

Member Function/Subroutine Documentation

◆ init()

procedure, public scale_sparsemat::sparsemat::init ( class(sparsemat), intent(inout) this,
real(rp), dimension(:,:), intent(in) mat,
real(rp), intent(in), optional eps,
character(len=*), intent(in), optional storage_format )

Definition at line 49 of file scale_sparsemat.F90.

◆ final()

procedure, public scale_sparsemat::sparsemat::final ( class(sparsemat), intent(inout) this)

Definition at line 50 of file scale_sparsemat.F90.

◆ print()

procedure, public scale_sparsemat::sparsemat::print ( class(sparsemat), intent(in) a)

Definition at line 51 of file scale_sparsemat.F90.

◆ replaceval()

procedure, public scale_sparsemat::sparsemat::replaceval ( class(sparsemat), intent(inout) a,
integer, intent(in) i,
integer, intent(in) j,
real(rp), intent(in) v )

Definition at line 52 of file scale_sparsemat.F90.

◆ getval()

procedure, public scale_sparsemat::sparsemat::getval ( class(sparsemat), intent(in) a,
integer, intent(in) i,
integer, intent(in) j )

Definition at line 53 of file scale_sparsemat.F90.

◆ getstorageformatid()

procedure, public scale_sparsemat::sparsemat::getstorageformatid ( class(sparsemat), intent(in) a)

Definition at line 54 of file scale_sparsemat.F90.

Member Data Documentation

◆ m

integer scale_sparsemat::sparsemat::m

Number of row of original matrix.

Definition at line 34 of file scale_sparsemat.F90.

34 integer :: M !< Number of row of original matrix

◆ n

integer scale_sparsemat::sparsemat::n

Number of column of original matrix.

Definition at line 35 of file scale_sparsemat.F90.

35 integer :: N !< Number of column of original matrix

◆ nnz

integer scale_sparsemat::sparsemat::nnz

Number of nonzero of the matrix.

Definition at line 36 of file scale_sparsemat.F90.

36 integer :: nnz !< Number of nonzero of the matrix

◆ val

real(rp), dimension(:), allocatable scale_sparsemat::sparsemat::val

Array storing the values of the nonzeros.

Definition at line 37 of file scale_sparsemat.F90.

37 real(RP), allocatable :: val(:) !< Array storing the values of the nonzeros

◆ colidx

integer, dimension(:), allocatable scale_sparsemat::sparsemat::colidx

Array saving the column indices of the nonzeros.

Definition at line 38 of file scale_sparsemat.F90.

38 integer, allocatable :: colIdx(:) !< Array saving the column indices of the nonzeros

◆ rowptr

integer, dimension(:), allocatable scale_sparsemat::sparsemat::rowptr

Array saving the start and end pointers of the nonzeros of the rows.

Definition at line 41 of file scale_sparsemat.F90.

41 integer, allocatable :: rowPtr(:) !< Array saving the start and end pointers of the nonzeros of the rows.

◆ rowptrsize

integer scale_sparsemat::sparsemat::rowptrsize

Size of rowPtr.

Definition at line 42 of file scale_sparsemat.F90.

42 integer :: rowPtrSize !< Size of rowPtr

◆ col_size

integer scale_sparsemat::sparsemat::col_size

Definition at line 45 of file scale_sparsemat.F90.

45 integer :: col_size

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