fortran_test_helper 1.0.0
A Fortran library to provide assistance to testing.
Loading...
Searching...
No Matches
fortran_test_helper::create_random_array Interface Reference

Creates a random-valued array. More...

Detailed Description

Creates a random-valued array.

Supported Data Types
  • real(real32)
  • real(real64)
  • complex(real32)
  • complex(real64)
  • integer(int16)
  • integer(int32)
  • integer(int64)
Syntax 1
Populates a 1D array with random values.
subroutine create_random_array(T x(:), optional t xmin, optional t xmax)
Where T is the one of the types previously mentioned.
Parameters
[out]xThe array to populate.
[in]xminAn optional value defining the minimum range of random values. The default is -1.
[in]xmaxAn optional value defining the maximum range of random values. The default is 1.
Syntax 2
Populates a matrix with random values.
subroutine create_random_array(T x(:,:), optional t xmin, optional t xmax)
Where T is the one of the types previously mentioned.
Parameters
[out]xThe matrix to populate.
[in]xminAn optional value defining the minimum range of random values. The default is -1.
[in]xmaxAn optional value defining the maximum range of random values. The default is 1.

Definition at line 273 of file fortran_test_helper.f90.


The documentation for this interface was generated from the following file: