flatten Interface

public interface flatten

Reduce an array to one dimension


Module Procedures

private function flatten_2(A) result(o)

Arguments

Type IntentOptional AttributesName
real(kind=wp), intent(in), dimension(:,:):: A

Array to convert

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

Description

Convert a 2d array to 1d

private function flatten_3(A) result(o)

Arguments

Type IntentOptional AttributesName
real(kind=wp), intent(in), dimension(:,:,:):: A

Array to convert

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

Description

Convert a 3d array to 1d