flatten Interface

public interface flatten

Reduce an array to one dimension


Contents


Module Procedures

private function flatten_2(A) result(o)

Convert a 2d array to 1d

Arguments

TypeIntentOptionalAttributesName
real(kind=wp), intent(in), dimension(:, :):: A

Array to convert

Return Value real(kind=wp),dimension(:), allocatable

private function flatten_3(A) result(o)

Convert a 3d array to 1d

Arguments

TypeIntentOptionalAttributesName
real(kind=wp), intent(in), dimension(:, :, :):: A

Array to convert

Return Value real(kind=wp),dimension(:), allocatable