CP2K 2.4 (Revision 12889)
Private Member Functions

dbcsr_work_operations::dbcsr_create Interface Reference

List of all members.

Private Member Functions

subroutine dbcsr_create_new (matrix, name, dist, matrix_type, row_blk_size, col_blk_size, nblks, nze, data_type, data_memory_type, index_memory_type, reuse, mutable_work, replication_type, error)
 Creates a matrix, allocating the essentials.
subroutine dbcsr_create_template (matrix, template, name, dist, matrix_type, row_blk_size, col_blk_size, nblks, nze, data_type, data_memory_type, index_memory_type, reuse, mutable_work, replication_type, error)

Detailed Description

Definition at line 120 of file dbcsr_work_operations.f90.


Member Function Documentation

subroutine dbcsr_work_operations::dbcsr_create::dbcsr_create_new ( TYPE(dbcsr_obj),intent(inout)  matrix,
CHARACTER(len=*),intent(in)  name,
TYPE(dbcsr_distribution_obj),intent(in)  dist,
CHARACTER,intent(in)  matrix_type,
TYPE(array_i1d_obj),intent(in)  row_blk_size,
TYPE(array_i1d_obj),intent(in)  col_blk_size,
INTEGER,intent(in),optional  nblks,
INTEGER,intent(in),optional  nze,
INTEGER,intent(in),optional  data_type,
INTEGER,intent(in),optional  data_memory_type,
INTEGER,intent(in),optional  index_memory_type,
LOGICAL,intent(in),optional  reuse,
LOGICAL,intent(in),optional  mutable_work,
CHARACTER,intent(in),optional  replication_type,
TYPE(dbcsr_error_type),intent(inout)  error 
) [private]

Creates a matrix, allocating the essentials.

The matrix itself is allocated, as well as the essential parts of
the index. When passed the nze argument, the data is also allocated to that size.
Parameters:
[in,out]matrixnew matrix
[in]distdistribution_2d distribution
[in]matrix_type'N' for normal, 'T' for transposed, 'S' for symmetric, and 'A' for antisymmetric
[in]nblks(optional) number of blocks
[in]nze(optional) number of elements
[in]data_typetype of data from [rRcC] for single/double precision real/complex, default is 'R'
[in]memory_type(optional) allocate indices and data using special memory
[in]index_memory_type(optional) allocate indices using special memory
[in]reuse(optional) reuses an existing matrix, default is to create a fresh one
[in]mutable_workuses the mutable data for working and not the append-only data; default is append-only
[in]replication_typereplication to be used for this matrix; default is dbcsr_repl_none
See also:
dbcsr_types.F
Parameters:
[in,out]errorcp2k error

Definition at line 158 of file dbcsr_work_operations.f90.

subroutine dbcsr_work_operations::dbcsr_create::dbcsr_create_template ( TYPE(dbcsr_obj),intent(inout)  matrix,
TYPE(dbcsr_obj),intent(in)  template,
CHARACTER(len=*),intent(in),optional  name,
TYPE(dbcsr_distribution_obj),intent(in),optional  dist,
CHARACTER,intent(in),optional  matrix_type,
TYPE(array_i1d_obj),intent(in),optional  row_blk_size,
TYPE(array_i1d_obj),intent(in),optional  col_blk_size,
INTEGER,intent(in),optional  nblks,
INTEGER,intent(in),optional  nze,
INTEGER,intent(in),optional  data_type,
INTEGER,intent(in),optional  data_memory_type,
INTEGER,intent(in),optional  index_memory_type,
LOGICAL,intent(in),optional  reuse,
LOGICAL,intent(in),optional  mutable_work,
CHARACTER,intent(in),optional  replication_type,
TYPE(dbcsr_error_type),intent(inout)  error 
) [private]

Definition at line 421 of file dbcsr_work_operations.f90.


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