Exercise 2: Defining the set_gaussian subroutine in a module
The task is to define the set_gaussian subroutine, which sets the values of an input array to a specific shape, in its own module. The solution is analogous to defining the diff function in the mod_diff module. This time, we’re defining the set_gaussian procedure in the mod_initial module, as shown in the following listing. Listing 4.12 Defining the set_gaussian subroutine in a custom module ❶ Imports standard type kinds […]