Skip to content

fossil_csr_matrix

Source: src/lib/fossil_csr_matrix.f90

Dependencies

Contents

Variables

NameTypeAttributesDescription
CSR_STATUS_OKinteger(kind=I4P)parameter
CSR_STATUS_BAD_INPUTinteger(kind=I4P)parameter
CSR_STATUS_OUT_OF_RANGEinteger(kind=I4P)parameter
CSR_INITIAL_NNZ_PER_ROWinteger(kind=I4P)parameter

Derived Types

csr_matrix_t

Components

NameTypeAttributesDescription
n_rowsinteger(kind=I4P)
n_colsinteger(kind=I4P)
nnzinteger(kind=I4P)
row_ptrinteger(kind=I4P)allocatable
col_idxinteger(kind=I4P)allocatable
valreal(kind=R8P)allocatable
is_finalizedlogical
build_row_countsinteger(kind=I4P)allocatable
build_capacityinteger(kind=I4P)
build_col_idxinteger(kind=I4P)allocatable
build_valreal(kind=R8P)allocatable

Type-Bound Procedures

NameAttributesDescription
initializepass(self)
destroypass(self)
appendpass(self)
finalizepass(self)
get_nrowspass(self)
get_ncolspass(self)
get_nnzpass(self)
multiply_vectorpass(self)
row_sumpass(self)
get_valuepass(self)
is_symmetricpass(self)

Subroutines

csr_initialize

fortran
subroutine csr_initialize(self, n_rows, n_cols, status)

Arguments

NameTypeIntentAttributesDescription
selfclass(csr_matrix_t)inout
n_rowsinteger(kind=I4P)in
n_colsinteger(kind=I4P)in
statusinteger(kind=I4P)outoptional

Call graph

csr_destroy

fortran
subroutine csr_destroy(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(csr_matrix_t)inout

csr_append

fortran
subroutine csr_append(self, row, col, value, status)

Arguments

NameTypeIntentAttributesDescription
selfclass(csr_matrix_t)inout
rowinteger(kind=I4P)in
colinteger(kind=I4P)in
valuereal(kind=R8P)in
statusinteger(kind=I4P)outoptional

Call graph

grow_capacity

fortran
subroutine grow_capacity(self)

Arguments

NameTypeIntentAttributesDescription
selftype(csr_matrix_t)inout

Call graph

csr_finalize

fortran
subroutine csr_finalize(self, status)

Arguments

NameTypeIntentAttributesDescription
selfclass(csr_matrix_t)inout
statusinteger(kind=I4P)outoptional

Call graph

sort_and_coalesce

Attributes: pure

fortran
subroutine sort_and_coalesce(col, val, n, unique)

Arguments

NameTypeIntentAttributesDescription
colinteger(kind=I4P)inout
valreal(kind=R8P)inout
ninteger(kind=I4P)in
uniqueinteger(kind=I4P)out

Call graph

csr_multiply_vector

fortran
subroutine csr_multiply_vector(self, x, y, status)

Arguments

NameTypeIntentAttributesDescription
selfclass(csr_matrix_t)in
xreal(kind=R8P)in
yreal(kind=R8P)out
statusinteger(kind=I4P)outoptional

Functions

csr_get_nrows

Attributes: pure

Returns: integer(kind=I4P)

fortran
function csr_get_nrows(self) result(n)

Arguments

NameTypeIntentAttributesDescription
selfclass(csr_matrix_t)in

csr_get_ncols

Attributes: pure

Returns: integer(kind=I4P)

fortran
function csr_get_ncols(self) result(n)

Arguments

NameTypeIntentAttributesDescription
selfclass(csr_matrix_t)in

csr_get_nnz

Attributes: pure

Returns: integer(kind=I4P)

fortran
function csr_get_nnz(self) result(n)

Arguments

NameTypeIntentAttributesDescription
selfclass(csr_matrix_t)in

csr_row_sum

Attributes: pure

Returns: real(kind=R8P)

fortran
function csr_row_sum(self, row) result(s)

Arguments

NameTypeIntentAttributesDescription
selfclass(csr_matrix_t)in
rowinteger(kind=I4P)in

csr_get_value

Attributes: pure

Returns: real(kind=R8P)

fortran
function csr_get_value(self, row, col) result(v)

Arguments

NameTypeIntentAttributesDescription
selfclass(csr_matrix_t)in
rowinteger(kind=I4P)in
colinteger(kind=I4P)in

csr_is_symmetric

Returns: logical

fortran
function csr_is_symmetric(self, tol) result(yes)

Arguments

NameTypeIntentAttributesDescription
selfclass(csr_matrix_t)in
tolreal(kind=R8P)in

Call graph