DBCSR data methods
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=*), | private, | parameter | :: | moduleN | = | 'dbcsr_data_methods_low' | |
logical, | private, | parameter | :: | careful_mod | = | .FALSE. | |
logical, | private, | parameter | :: | debug_mod | = | .FALSE. |
Encapsulates a scalar.
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | intent(in) | :: | scalar |
scalar to encapsulate |
encapsulated scalar
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | intent(in) | :: | scalar |
scalar to encapsulate |
encapsulated scalar
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | intent(in) | :: | scalar |
scalar to encapsulate |
encapsulated scalar
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | intent(in) | :: | scalar |
scalar to encapsulate |
encapsulated scalar
Encapsulates a scalar.
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | encapsulated_scalar |
encapsulated scalar |
||
real(kind=real_4), | intent(out) | :: | value |
value of the scalar |
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | encapsulated_scalar |
encapsulated scalar |
||
real(kind=real_8), | intent(out) | :: | value |
value of the scalar |
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | encapsulated_scalar |
encapsulated scalar |
||
complex(kind=real_4), | intent(out) | :: | value |
value of the scalar |
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | encapsulated_scalar |
encapsulated scalar |
||
complex(kind=real_8), | intent(out) | :: | value |
value of the scalar |
Sets a data pointer.
Assumptions Assumes that no memory will be lost when repointing the pointer in the data area and that the area is initialized.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
real(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | p |
source data pointer |
Sets a data pointer.
Assumptions Assumes that no memory will be lost when repointing the pointer in the data area and that the area is initialized.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
real(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | p |
source data pointer |
Sets a data pointer.
Assumptions Assumes that no memory will be lost when repointing the pointer in the data area and that the area is initialized.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
complex(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | p |
source data pointer |
Sets a data pointer.
Assumptions Assumes that no memory will be lost when repointing the pointer in the data area and that the area is initialized.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
complex(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | p |
source data pointer |
Sets a data pointer.
Assumptions Assumes that no memory will be lost when repointing the pointer in the data area and that the area is initialized.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
real(kind=real_4), | DIMENSION(:, :), POINTER | :: | p |
source data pointer |
Sets a data pointer.
Assumptions Assumes that no memory will be lost when repointing the pointer in the data area and that the area is initialized.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
real(kind=real_8), | DIMENSION(:, :), POINTER | :: | p |
source data pointer |
Sets a data pointer.
Assumptions Assumes that no memory will be lost when repointing the pointer in the data area and that the area is initialized.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
complex(kind=real_4), | DIMENSION(:, :), POINTER | :: | p |
source data pointer |
Sets a data pointer.
Assumptions Assumes that no memory will be lost when repointing the pointer in the data area and that the area is initialized.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
complex(kind=real_8), | DIMENSION(:, :), POINTER | :: | p |
source data pointer |
Points data area data pointers to another data area Assumes that no memory will be lost when repointing the pointer in the data area and that the area is initialized.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
data area to repoint |
||
integer, | intent(in) | :: | rsize |
size of data area to point to size of data area to point to |
||
integer, | intent(in) | :: | csize |
size of data area to point to size of data area to point to |
||
type(dbcsr_data_obj), | intent(in) | :: | pointee |
data area to point to |
||
integer, | intent(in), | optional | :: | source_lb |
point to this offset in pointee |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_4), | DIMENSION(:), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_8), | DIMENSION(:), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_4), | DIMENSION(:), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_8), | DIMENSION(:), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_4), | DIMENSION(:, :), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_8), | DIMENSION(:, :), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_4), | DIMENSION(:, :), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_8), | DIMENSION(:, :), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Calling This routine is hidden behind the dbcsr_get_data interface, hence the need for the select_data_type argument. see dbcsr_get_data_p_s
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_4), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data
Calling This routine is hidden behind the dbcsr_get_data interface, hence the need for the select_data_type argument. see dbcsr_get_data_p_c
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_4), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data
Calling This routine is hidden behind the dbcsr_get_data interface, hence the need for the select_data_type argument. see dbcsr_get_data_p_d
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_8), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data
Calling This routine is hidden behind the dbcsr_get_data interface, hence the need for the select_data_type argument. see dbcsr_get_data_p_z
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_8), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data
Calling This routine is hidden behind the dbcsr_get_data interface, hence the need for the select_data_type argument. see dbcsr_get_data_p_s
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_4), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data
Calling This routine is hidden behind the dbcsr_get_data interface, hence the need for the select_data_type argument. see dbcsr_get_data_p_c
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_4), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data
Calling This routine is hidden behind the dbcsr_get_data interface, hence the need for the select_data_type argument. see dbcsr_get_data_p_d
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_8), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data
Calling This routine is hidden behind the dbcsr_get_data interface, hence the need for the select_data_type argument. see dbcsr_get_data_p_z
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_8), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the allocated data size
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area to query for size |
||
integer, | intent(out), | DIMENSION(:) | :: | sizes |
array with the data sizes |
|
logical, | intent(out) | :: | valid |
whether the data is actually allocated |
Returns the allocated data size
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area to query for size |
||
integer, | intent(out) | :: | total_size |
size of array |
||
logical, | intent(out) | :: | valid |
whether the data is actually allocated |
Returns the allocated data size
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area to query for size, should be 2-D |
||
integer, | intent(out) | :: | row_size |
row size column size |
||
integer, | intent(out) | :: | col_size |
row size column size |
||
logical, | intent(out) | :: | valid |
whether the data is actually allocated |
Returns data type of a data area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
data type of the data area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
Checks whether a data area is valid
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
whether the data area is valid
Checks whether a data pointer exists
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
whether the data pointer exists
Returns the allocated data size
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
size of data
Returns an encapsulated scalar "1"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | data_type |
use the data type |
encapsulated value of one
Returns an encapsulated scalar "0"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | data_type |
use the data type |
encapsulated value of zero
Returns whether an encapsulated scalar is equal to another value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | s1 |
one value another value |
||
type(dbcsr_scalar_type), | intent(in) | :: | s2 |
one value another value |
whether values are equal
Returns an encapsulated scalar as a negation of the given
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | s |
given value |
negated value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | s1 | |||
type(dbcsr_scalar_type), | intent(in) | :: | s2 |
Returns data type of a scalar
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | scalar |
scalar |
data type of the scalar
Checks whether the data type is 2-D. \return Data type is 2-D.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | data_type |
Returns 1-d data type corresponding to the given 2-D one. \return 1-D data type
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | data_type |
Returns 2-D data type corresponding to the given 1-D one. \return 2-D data type
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | data_type |
Get actual data storage used for matrix
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
Count data of this matrix |
Data size used by matrix
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_8), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data \brief dbcsr_get_data_c_d
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data \brief dbcsr_get_data_c_d
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_8), | intent(in) | :: | scalar |
scalar to encapsulate |
encapsulated scalar
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_4), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data \brief dbcsr_get_data_c_s
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data \brief dbcsr_get_data_c_s
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real_4), | intent(in) | :: | scalar |
scalar to encapsulate |
encapsulated scalar
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_8), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data \brief dbcsr_get_data_c_z
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data \brief dbcsr_get_data_c_z
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_8), | intent(in) | :: | scalar |
scalar to encapsulate |
encapsulated scalar
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_4), | intent(in) | :: | select_data_type |
force datatype |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data \brief dbcsr_get_data_c_c
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Returns the single/double precision real/complex data \brief dbcsr_get_data_c_c
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
pointer to data
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | intent(in) | :: | scalar |
scalar to encapsulate |
encapsulated scalar
Initializes a data area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
data area |
Allocates pointers in the data type
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_area_type), | intent(inout) | :: | area |
internal structure holding array pointers |
||
integer, | intent(in), | DIMENSION(:), CONTIGUOUS | :: | sizes |
sizes to allocate to |
Allocates pointers in the data type
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_area_type), | intent(inout) | :: | area |
internal structure holding array pointers |
Clears pointers from the data area.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
data area |
Registers another use of the data area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
data area |
Points data area data pointers to another data area Assumes that no memory will be lost when repointing the pointer in the data area and that the area is initialized.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
data area to repoint |
||
integer, | intent(in) | :: | rsize |
size of data area to point to size of data area to point to |
||
integer, | intent(in) | :: | csize |
size of data area to point to size of data area to point to |
||
type(dbcsr_data_obj), | intent(in) | :: | pointee |
data area to point to |
||
integer, | intent(in), | optional | :: | source_lb |
point to this offset in pointee |
Verifies bounds of a data area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
Data area |
||
integer, | intent(in), | DIMENSION(:) | :: | lb |
lower bounds upper bounds |
|
integer, | intent(in), | DIMENSION(:) | :: | ub |
lower bounds upper bounds |
Clears a part of the data area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
data area |
||
integer, | intent(in), | DIMENSION(:) | :: | lb | ||
integer, | intent(in), | DIMENSION(:) | :: | ub |
Returns the allocated data size
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area to query for size |
||
integer, | intent(out), | DIMENSION(:) | :: | sizes |
array with the data sizes |
|
logical, | intent(out) | :: | valid |
whether the data is actually allocated |
Returns the allocated data size
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area to query for size, should be 2-D |
||
integer, | intent(out) | :: | row_size |
row size column size |
||
integer, | intent(out) | :: | col_size |
row size column size |
||
logical, | intent(out) | :: | valid |
whether the data is actually allocated |
Returns the allocated data size
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area to query for size |
||
integer, | intent(out) | :: | total_size |
size of array |
||
logical, | intent(out) | :: | valid |
whether the data is actually allocated |
Sets data type of a scalar
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(inout) | :: | scalar |
scalar |
||
integer, | intent(in) | :: | data_type |
Fills all data and precision types from the set one
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(inout) | :: | scalar |
data area |
Sets the referenced size of the data area
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | data_area |
area for which to set referenced data size |
||
integer, | intent(in) | :: | referenced_size |
set referenced data size to this value |
Sets a data pointer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
real(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | p |
source data pointer |
Sets a data pointer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
real(kind=real_8), | DIMENSION(:, :), POINTER | :: | p |
source data pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_8), | DIMENSION(:), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_8), | DIMENSION(:, :), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | encapsulated_scalar |
encapsulated scalar |
||
real(kind=real_8), | intent(out) | :: | value |
value of the scalar |
Sets a data pointer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
real(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | p |
source data pointer |
Sets a data pointer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
real(kind=real_4), | DIMENSION(:, :), POINTER | :: | p |
source data pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_4), | DIMENSION(:), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
real(kind=real_4), | DIMENSION(:, :), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | encapsulated_scalar |
encapsulated scalar |
||
real(kind=real_4), | intent(out) | :: | value |
value of the scalar |
Sets a data pointer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
complex(kind=real_8), | DIMENSION(:), POINTER, CONTIGUOUS | :: | p |
source data pointer |
Sets a data pointer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
complex(kind=real_8), | DIMENSION(:, :), POINTER | :: | p |
source data pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_8), | DIMENSION(:), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_8), | DIMENSION(:, :), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | encapsulated_scalar |
encapsulated scalar |
||
complex(kind=real_8), | intent(out) | :: | value |
value of the scalar |
Sets a data pointer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
complex(kind=real_4), | DIMENSION(:), POINTER, CONTIGUOUS | :: | p |
source data pointer |
Sets a data pointer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(inout) | :: | area |
target data area |
||
complex(kind=real_4), | DIMENSION(:, :), POINTER | :: | p |
source data pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_4), | DIMENSION(:), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional | :: | lb |
lower bound for pointer upper bound for pointer |
|
integer, | intent(in), | optional | :: | ub |
lower bound for pointer upper bound for pointer |
Returns the single/double precision real/complex data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_data_obj), | intent(in) | :: | area |
data area |
||
complex(kind=real_4), | DIMENSION(:, :), POINTER | :: | DATA |
pointer to data |
||
integer, | intent(in), | optional, | DIMENSION(2) | :: | lb |
lower bound for pointer upper bound for pointer |
integer, | intent(in), | optional, | DIMENSION(2) | :: | ub |
lower bound for pointer upper bound for pointer |
Sets a scalar in an encapsulated data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_scalar_type), | intent(in) | :: | encapsulated_scalar |
encapsulated scalar |
||
complex(kind=real_4), | intent(out) | :: | value |
value of the scalar |