Flatten the array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(array_type), | intent(in) | :: | this |
Instance of the array type |
Flattened array
pure module function flatten_array(this) result(output) !! Flatten the array implicit none ! Arguments class(array_type), intent(in) :: this !! Instance of the array type real(real32), dimension(this%size) :: output !! Flattened array output = reshape(this%val, [this%size]) end function flatten_array