mod_array Module

This module contains tools (convolution/ravel) to manipulate 2D/3Darray


Uses

  • module~~mod_array~~UsesGraph module~mod_array mod_array module~mod_constants mod_constants module~mod_array->module~mod_constants iso_fortran_env iso_fortran_env module~mod_constants->iso_fortran_env

Used by

  • module~~mod_array~~UsedByGraph module~mod_array mod_array module~mod_rohsa mod_rohsa module~mod_rohsa->module~mod_array module~mod_functions mod_functions module~mod_rohsa->module~mod_functions module~mod_optimize mod_optimize module~mod_rohsa->module~mod_optimize module~mod_functions->module~mod_array module~mod_functions->module~mod_optimize module~mod_optimize->module~mod_array program~rohsa ROHSA program~rohsa->module~mod_rohsa

Contents


Functions

public pure function mean(array)

Compute the mean of a 1D array

Arguments

Type IntentOptional AttributesName
real(kind=xp), intent(in), dimension(:):: array

1D array

Return Value real(kind=xp)

public pure function std(array)

Compute the STD of a 1D array

Arguments

Type IntentOptional AttributesName
real(kind=xp), intent(in), dimension(:):: array

1D array

Return Value real(kind=xp)

standard deviation

public function std_2D(map, dim_y, dim_x)

Compute the STD of a 2D map

Arguments

Type IntentOptional AttributesName
real(kind=xp), intent(in), dimension(:,:), allocatable:: map

2D array

integer, intent(in) :: dim_y

dimension along spatial axis y

integer, intent(in) :: dim_x

dimension along spatial axis x

Return Value real(kind=xp)

public function max_2D(map, dim_y, dim_x)

Compute the MAX of a 2D map

Arguments

Type IntentOptional AttributesName
real(kind=xp), intent(in), dimension(:,:), allocatable:: map

2D array

integer, intent(in) :: dim_y

dimension along spatial axis y

integer, intent(in) :: dim_x

dimension along spatial axis x

Return Value real(kind=xp)

public function mean_2D(map, dim_y, dim_x)

Compute the MEAN of a 2D map

Arguments

Type IntentOptional AttributesName
real(kind=xp), intent(in), dimension(:,:), allocatable:: map

2D array

integer, intent(in) :: dim_y

dimension along spatial axis y

integer, intent(in) :: dim_x

dimension along spatial axis x

Return Value real(kind=xp)


Subroutines

public subroutine convolution_2D_mirror(image, conv, dim_y, dim_x, kernel, dim_k)

Arguments

Type IntentOptional AttributesName
real(kind=xp), intent(in), dimension(:,:), allocatable:: image
real(kind=xp), intent(inout), dimension(:,:), allocatable:: conv
integer, intent(in) :: dim_y
integer, intent(in) :: dim_x
real(kind=xp), intent(in), dimension(:,:), allocatable:: kernel
integer, intent(in) :: dim_k

public subroutine ravel_2D(map, vector, dim_y, dim_x)

Arguments

Type IntentOptional AttributesName
real(kind=xp), intent(in), dimension(:,:), allocatable:: map
real(kind=xp), intent(inout), dimension(:), allocatable:: vector
integer, intent(in) :: dim_y
integer, intent(in) :: dim_x

public subroutine ravel_3D(cube, vector, dim_v, dim_y, dim_x)

Arguments

Type IntentOptional AttributesName
real(kind=xp), intent(in), dimension(:,:,:), allocatable:: cube
real(kind=xp), intent(inout), dimension(:), allocatable:: vector
integer, intent(in) :: dim_v
integer, intent(in) :: dim_y
integer, intent(in) :: dim_x

public subroutine unravel_3D(vector, cube, dim_v, dim_y, dim_x)

Arguments

Type IntentOptional AttributesName
real(kind=xp), intent(in), dimension(:), allocatable:: vector
real(kind=xp), intent(inout), dimension(:,:,:), allocatable:: cube
integer, intent(in) :: dim_v
integer, intent(in) :: dim_y
integer, intent(in) :: dim_x