(git:107f6cb)
Loading...
Searching...
No Matches
cp_dbcsr_csr Module Reference

CSR matrix type, DBCSR-CSR conversions, and CSR file I/O built on cp_dbcsr_api. More...

Data Types

type  dbcsr_csr_type
type  dbcsr_csr_p_type
interface  dbcsr_csr_create

Functions/Subroutines

subroutine, public dbcsr_csr_destroy (csr_mat)
 Destroy a CSR matrix and release all allocated memory.
subroutine, public dbcsr_csr_create_from_dbcsr (dbcsr_mat, csr_mat, dist_format, csr_sparsity, numnodes)
 Create CSR matrix including DBCSR mapping from an arbitrary DBCSR matrix.
subroutine, public dbcsr_convert_dbcsr_to_csr (dbcsr_mat, csr_mat)
 Convert a DBCSR matrix to an existing CSR matrix.
subroutine, public dbcsr_convert_csr_to_dbcsr (dbcsr_mat, csr_mat)
 Convert a CSR matrix back to an allocated DBCSR matrix.
subroutine, public dbcsr_csr_create_and_convert_complex (rmatrix, imatrix, csr_mat, dist_format)
 Create and populate a complex CSR matrix from real and imaginary DBCSR matrices.
subroutine, public dbcsr_csr_print_sparsity (csr_mat, unit_nr)
 Print CSR sparsity statistics.
subroutine, public dbcsr_csr_write (csr_mat, unit_nr, upper_triangle, threshold, binary)
 Write a CSR matrix to file (formatted or unformatted).

Variables

integer, parameter, public dbcsr_csr_type_real_8 = 1
integer, parameter, public dbcsr_csr_dbcsr_blkrow_dist = 1
integer, parameter, public dbcsr_csr_eqrow_floor_dist = 3

Detailed Description

CSR matrix type, DBCSR-CSR conversions, and CSR file I/O built on cp_dbcsr_api.

Function/Subroutine Documentation

◆ dbcsr_csr_destroy()

subroutine, public cp_dbcsr_csr::dbcsr_csr_destroy ( type(dbcsr_csr_type), intent(inout) csr_mat)

Destroy a CSR matrix and release all allocated memory.

Parameters
csr_mat...

Definition at line 214 of file cp_dbcsr_csr.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dbcsr_csr_create_from_dbcsr()

subroutine, public cp_dbcsr_csr::dbcsr_csr_create_from_dbcsr ( type(dbcsr_type), intent(in) dbcsr_mat,
type(dbcsr_csr_type), intent(out) csr_mat,
integer, intent(in) dist_format,
type(dbcsr_type), intent(in), optional csr_sparsity,
integer, intent(in), optional numnodes )

Create CSR matrix including DBCSR mapping from an arbitrary DBCSR matrix.

Parameters
dbcsr_mat...
csr_mat...
dist_format...
csr_sparsity...
numnodes...

Definition at line 255 of file cp_dbcsr_csr.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dbcsr_convert_dbcsr_to_csr()

subroutine, public cp_dbcsr_csr::dbcsr_convert_dbcsr_to_csr ( type(dbcsr_type), intent(in) dbcsr_mat,
type(dbcsr_csr_type), intent(inout) csr_mat )

Convert a DBCSR matrix to an existing CSR matrix.

Parameters
dbcsr_mat...
csr_mat...

Definition at line 483 of file cp_dbcsr_csr.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dbcsr_convert_csr_to_dbcsr()

subroutine, public cp_dbcsr_csr::dbcsr_convert_csr_to_dbcsr ( type(dbcsr_type), intent(inout) dbcsr_mat,
type(dbcsr_csr_type), intent(inout) csr_mat )

Convert a CSR matrix back to an allocated DBCSR matrix.

Parameters
dbcsr_mat...
csr_mat...

Definition at line 556 of file cp_dbcsr_csr.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dbcsr_csr_create_and_convert_complex()

subroutine, public cp_dbcsr_csr::dbcsr_csr_create_and_convert_complex ( type(dbcsr_type), intent(in) rmatrix,
type(dbcsr_type), intent(in) imatrix,
type(dbcsr_csr_type), intent(inout) csr_mat,
integer, intent(in) dist_format )

Create and populate a complex CSR matrix from real and imaginary DBCSR matrices.

Parameters
rmatrix...
imatrix...
csr_mat...
dist_format...

Definition at line 622 of file cp_dbcsr_csr.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dbcsr_csr_print_sparsity()

subroutine, public cp_dbcsr_csr::dbcsr_csr_print_sparsity ( type(dbcsr_csr_type), intent(in) csr_mat,
integer, intent(in) unit_nr )

Print CSR sparsity statistics.

Parameters
csr_mat...
unit_nr...

Definition at line 713 of file cp_dbcsr_csr.F.

Here is the caller graph for this function:

◆ dbcsr_csr_write()

subroutine, public cp_dbcsr_csr::dbcsr_csr_write ( type(dbcsr_csr_type), intent(in) csr_mat,
integer, intent(in) unit_nr,
logical, intent(in), optional upper_triangle,
real(kind=dp), intent(in), optional threshold,
logical, intent(in), optional binary )

Write a CSR matrix to file (formatted or unformatted).

Parameters
csr_mat...
unit_nr...
upper_triangle...
threshold...
binary...

Definition at line 752 of file cp_dbcsr_csr.F.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ dbcsr_csr_type_real_8

integer, parameter, public cp_dbcsr_csr::dbcsr_csr_type_real_8 = 1

Definition at line 32 of file cp_dbcsr_csr.F.

◆ dbcsr_csr_dbcsr_blkrow_dist

integer, parameter, public cp_dbcsr_csr::dbcsr_csr_dbcsr_blkrow_dist = 1

Definition at line 35 of file cp_dbcsr_csr.F.

◆ dbcsr_csr_eqrow_floor_dist

integer, parameter, public cp_dbcsr_csr::dbcsr_csr_eqrow_floor_dist = 3

Definition at line 37 of file cp_dbcsr_csr.F.