concatenate_columns Module Procedure

module procedure concatenate_columns pure module function concatenate_columns(a, b) result(concatenated)

Using reshape rather than manipulating array elements directly frees the compiler to decide the particular order of array element references that best exploits the given platform. Alternatively, do concurrent could instead free the compiler to order element accesses however is best. Trade-off: reshape requires the creation of temporary array results but reshape is likely to have more mature compiler support than do concurrent. If this code turns out to be a critical performance bottleneck, try replacing this implementation with element-by-element copying using do concurrent.

Arguments

Type IntentOptional Attributes Name
real, intent(in), dimension(:,:) :: a
real, intent(in), dimension(:,:) :: b

Return Value real, dimension(:,:), allocatable


Calls

proc~~concatenate_columns~~CallsGraph proc~concatenate_columns concatenate_columns assert assert proc~concatenate_columns->assert