dbcsr_csr_create Interface

public interface dbcsr_csr_create

Module Procedures

private subroutine csr_create_new(csr_mat, nrows_total, ncols_total, nze_total, nze_local, nrows_local, mp_group, data_type)

Arguments

Type IntentOptional Attributes Name
type(dbcsr_csr_type), intent(out) :: csr_mat
integer, intent(in) :: nrows_total
integer, intent(in) :: ncols_total
integer(kind=int_8) :: nze_total
integer, intent(in) :: nze_local
integer, intent(in) :: nrows_local
integer, intent(in) :: mp_group
integer, intent(in), optional :: data_type

public subroutine csr_create_template(matrix_b, matrix_a)

Create a new CSR matrix and allocate all internal data using an existing CSR matrix. Copies the indices but no actual matrix data.

Arguments

Type IntentOptional Attributes Name
type(csr_type), intent(out) :: matrix_b

Target CSR matrix

type(csr_type), intent(in) :: matrix_a

Source CSR matrix