Methods to operate on n-dimensional tensor blocks.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=*), | private, | parameter | :: | moduleN | = | 'dbcsr_tensor_block' |
Create block from array, array can be n-dimensional.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes | ||
real(kind=real_8), | intent(in), | DIMENSION(PRODUCT(sizes)) | :: | array |
Create block from array, array can be n-dimensional.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes | ||
real(kind=real_4), | intent(in), | DIMENSION(PRODUCT(sizes)) | :: | array |
Create block from array, array can be n-dimensional.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes | ||
complex(kind=real_8), | intent(in), | DIMENSION(PRODUCT(sizes)) | :: | array |
Create block from array, array can be n-dimensional.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes | ||
complex(kind=real_4), | intent(in), | DIMENSION(PRODUCT(sizes)) | :: | array |
Create block without data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes | ||
integer, | intent(in) | :: | data_type |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
real(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
real(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
real(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
real(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
real(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
real(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Generic implementation of dbcsr_t_put_block (arbitrary tensor rank and arbitrary datatype)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd), | intent(in) | :: | block |
block to put |
||
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
type(dbcsr_scalar_type), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
real(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
real(kind=real_8), | intent(out), | DIMENSION(:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
real(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
real(kind=real_8), | intent(out), | DIMENSION(:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
real(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
real(kind=real_8), | intent(out), | DIMENSION(:,:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
real(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
real(kind=real_4), | intent(out), | DIMENSION(:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
real(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
real(kind=real_4), | intent(out), | DIMENSION(:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
real(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
real(kind=real_4), | intent(out), | DIMENSION(:,:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
complex(kind=real_8), | intent(out), | DIMENSION(:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
complex(kind=real_8), | intent(out), | DIMENSION(:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
complex(kind=real_8), | intent(out), | DIMENSION(:,:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
complex(kind=real_4), | intent(out), | DIMENSION(:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
complex(kind=real_4), | intent(out), | DIMENSION(:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
complex(kind=real_4), | intent(out), | DIMENSION(:,:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Generic implementation of dbcsr_t_get_block (arbitrary tensor rank and arbitrary datatype)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd), | intent(out) | :: | block |
block to get |
||
logical, | intent(out) | :: | found |
whether block was found |
reserve tensor blocks using block indices
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | optional, | DIMENSION(:) | :: | blk_ind_1 |
index of blocks to reserve in each dimension |
integer, | intent(in), | optional, | DIMENSION(:) | :: | blk_ind_2 |
index of blocks to reserve in each dimension |
integer, | intent(in), | optional, | DIMENSION(:) | :: | blk_ind_3 |
index of blocks to reserve in each dimension |
integer, | intent(in), | optional, | DIMENSION(:) | :: | blk_ind_4 |
index of blocks to reserve in each dimension |
reserve blocks from indices as array object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(:, :) | :: | blk_ind |
reserve tensor blocks using template
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(in) | :: | tensor_in |
template tensor |
||
type(dbcsr_t_type), | intent(inout) | :: | tensor_out |
reserve matrix blocks using tensor template
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(in) | :: | tensor_in | |||
type(dbcsr_type), | intent(inout) | :: | matrix_out |
reserve tensor blocks using matrix template
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_type), | intent(in), | TARGET | :: | matrix_in | ||
type(dbcsr_t_type), | intent(inout) | :: | tensor_out |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(dbcsr_tas_iterator), | public | :: | iter | = | dbcsr_tas_iterator() | ||
type(nd_to_2d_mapping), | public | :: | nd_index_blk | = | nd_to_2d_mapping() | ||
type(nd_to_2d_mapping), | public | :: | nd_index | = | nd_to_2d_mapping() | ||
type(array_list), | public | :: | blk_sizes | = | array_list() | ||
type(array_list), | public | :: | blk_offsets | = | array_list() |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | DIMENSION(:), ALLOCATABLE | :: | sizes | |||
real(kind=real_8), | public, | DIMENSION(:), ALLOCATABLE | :: | blk |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | DIMENSION(:), ALLOCATABLE | :: | sizes | |||
real(kind=real_4), | public, | DIMENSION(:), ALLOCATABLE | :: | blk |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | DIMENSION(:), ALLOCATABLE | :: | sizes | |||
complex(kind=real_8), | public, | DIMENSION(:), ALLOCATABLE | :: | blk |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | DIMENSION(:), ALLOCATABLE | :: | sizes | |||
complex(kind=real_4), | public, | DIMENSION(:), ALLOCATABLE | :: | blk |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(block_nd_r_dp), | public | :: | r_dp | = | block_nd_r_dp() | ||
type(block_nd_r_sp), | public | :: | r_sp | = | block_nd_r_sp() | ||
type(block_nd_c_dp), | public | :: | c_dp | = | block_nd_c_dp() | ||
type(block_nd_c_sp), | public | :: | c_sp | = | block_nd_c_sp() | ||
integer, | public | :: | data_type | = | -1 |
block size
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd), | intent(in) | :: | block |
Number of dimensions.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_iterator_type), | intent(in) | :: | iterator |
Generalization of dbcsr_iterator_blocks_left for tensors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_iterator_type), | intent(in) | :: | iterator |
Create block without data
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes | ||
integer, | intent(in) | :: | data_type |
Generalization of dbcsr_iterator_start for tensors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_iterator_type), | intent(out) | :: | iterator | |||
type(dbcsr_t_type), | intent(in) | :: | tensor |
Generalization of dbcsr_iterator_stop for tensors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_iterator_type), | intent(inout) | :: | iterator |
iterate over nd blocks of an nd rank tensor, index only (blocks must be retrieved by calling dbcsr_t_get_block on tensor).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_iterator_type), | intent(inout) | :: | iterator | |||
integer, | intent(out), | DIMENSION(ndims_iterator(iterator)) | :: | ind_nd |
nd index of block |
|
integer, | intent(out) | :: | blk |
is this needed? |
||
integer, | intent(out), | optional | :: | blk_p |
is this needed? |
|
integer, | intent(out), | optional, | DIMENSION(ndims_iterator(iterator)) | :: | blk_size |
blk size in each dimension blk offset in each dimension |
integer, | intent(out), | optional, | DIMENSION(ndims_iterator(iterator)) | :: | blk_offset |
blk size in each dimension blk offset in each dimension |
reserve blocks from indices as array object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(:, :) | :: | blk_ind |
reserve tensor blocks using block indices
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | optional, | DIMENSION(:) | :: | blk_ind_1 |
index of blocks to reserve in each dimension |
integer, | intent(in), | optional, | DIMENSION(:) | :: | blk_ind_2 |
index of blocks to reserve in each dimension |
integer, | intent(in), | optional, | DIMENSION(:) | :: | blk_ind_3 |
index of blocks to reserve in each dimension |
integer, | intent(in), | optional, | DIMENSION(:) | :: | blk_ind_4 |
index of blocks to reserve in each dimension |
reserve tensor blocks using template
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(in) | :: | tensor_in |
template tensor |
||
type(dbcsr_t_type), | intent(inout) | :: | tensor_out |
reserve tensor blocks using matrix template
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_type), | intent(in), | TARGET | :: | matrix_in | ||
type(dbcsr_t_type), | intent(inout) | :: | tensor_out |
reserve matrix blocks using tensor template
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(in) | :: | tensor_in | |||
type(dbcsr_type), | intent(inout) | :: | matrix_out |
indices of non-zero blocks
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(in) | :: | tensor | |||
integer, | intent(out), | DIMENSION(dbcsr_t_get_num_blocks(tensor), ndims_tensor(tensor)) | :: | blk_ind |
Create block from array, array can be n-dimensional.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes | ||
real(kind=real_8), | intent(in), | DIMENSION(PRODUCT(sizes)) | :: | array |
Create block from array, array can be n-dimensional.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes | ||
real(kind=real_4), | intent(in), | DIMENSION(PRODUCT(sizes)) | :: | array |
Create block from array, array can be n-dimensional.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes | ||
complex(kind=real_8), | intent(in), | DIMENSION(PRODUCT(sizes)) | :: | array |
Create block from array, array can be n-dimensional.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes | ||
complex(kind=real_4), | intent(in), | DIMENSION(PRODUCT(sizes)) | :: | array |
Create and allocate block, but no data.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd_r_dp), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes |
Create and allocate block, but no data.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd_r_sp), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes |
Create and allocate block, but no data.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd_c_dp), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes |
Create and allocate block, but no data.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd_c_sp), | intent(out) | :: | block | |||
integer, | intent(in), | DIMENSION(:) | :: | sizes |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd_r_dp), | intent(inout) | :: | block |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd_r_sp), | intent(inout) | :: | block |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd_c_dp), | intent(inout) | :: | block |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(block_nd_c_sp), | intent(inout) | :: | block |
Generic implementation of dbcsr_t_get_block (arbitrary tensor rank and arbitrary datatype)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd), | intent(out) | :: | block |
block to get |
||
logical, | intent(out) | :: | found |
whether block was found |
Generic implementation of dbcsr_t_put_block (arbitrary tensor rank and arbitrary datatype)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd), | intent(in) | :: | block |
block to put |
||
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
type(dbcsr_scalar_type), | intent(in), | optional | :: | scale |
scaling factor |
Generic implementation of dbcsr_t_put_block, template for datatype
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd_r_dp), | intent(in) | :: | block |
block to put |
||
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Generic implementation of dbcsr_t_put_block, template for datatype
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd_r_sp), | intent(in) | :: | block |
block to put |
||
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Generic implementation of dbcsr_t_put_block, template for datatype
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd_c_dp), | intent(in) | :: | block |
block to put |
||
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Generic implementation of dbcsr_t_put_block, template for datatype
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd_c_sp), | intent(in) | :: | block |
block to put |
||
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Generic implementation of dbcsr_t_get_block (arbitrary tensor rank)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd), | intent(out) | :: | block |
block to get |
||
logical, | intent(out) | :: | found |
whether block was found |
Generic implementation of dbcsr_t_get_block (arbitrary tensor rank)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd), | intent(out) | :: | block |
block to get |
||
logical, | intent(out) | :: | found |
whether block was found |
Generic implementation of dbcsr_t_get_block (arbitrary tensor rank)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd), | intent(out) | :: | block |
block to get |
||
logical, | intent(out) | :: | found |
whether block was found |
Generic implementation of dbcsr_t_get_block (arbitrary tensor rank)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(ndims_tensor(tensor)) | :: | ind |
block index |
|
type(block_nd), | intent(out) | :: | block |
block to get |
||
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
real(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
real(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
real(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
real(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
real(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
real(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
real(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_8), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
Template for dbcsr_t_put_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(in), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)), TARGET | :: | block |
block to put |
|
logical, | intent(in), | optional | :: | summation |
whether block should be summed to existing block |
|
complex(kind=real_4), | intent(in), | optional | :: | scale |
scaling factor |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
real(kind=real_8), | intent(out), | DIMENSION(:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
real(kind=real_8), | intent(out), | DIMENSION(:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
real(kind=real_8), | intent(out), | DIMENSION(:,:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
real(kind=real_4), | intent(out), | DIMENSION(:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
real(kind=real_4), | intent(out), | DIMENSION(:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
real(kind=real_4), | intent(out), | DIMENSION(:,:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
complex(kind=real_8), | intent(out), | DIMENSION(:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
complex(kind=real_8), | intent(out), | DIMENSION(:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
complex(kind=real_8), | intent(out), | DIMENSION(:,:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
complex(kind=real_4), | intent(out), | DIMENSION(:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
complex(kind=real_4), | intent(out), | DIMENSION(:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
allocate and get block
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
complex(kind=real_4), | intent(out), | DIMENSION(:,:,:,:), ALLOCATABLE | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
real(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
real(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
real(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
real(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
real(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
real(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
complex(kind=real_8), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(2) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(2) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(3) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(3) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |
Template for dbcsr_t_get_block.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_t_type), | intent(inout) | :: | tensor | |||
integer, | intent(in), | DIMENSION(4) | :: | ind |
block index |
|
integer, | intent(in), | DIMENSION(4) | :: | sizes |
block size |
|
complex(kind=real_4), | intent(out), | DIMENSION(sizes(1), sizes(2), sizes(3), sizes(4)) | :: | block |
block to get |
|
logical, | intent(out) | :: | found |
whether block was found |