FNN 1.0.0
Toolbox to use NNs in Fortran.
Loading...
Searching...
No Matches
Functions/Subroutines | Variables
fnn_common Module Reference

Module fnn_common. Implements some common features. More...

Functions/Subroutines

subroutine, public rand1d (x)
 Fills a 1d table with random numbers. More...
 
subroutine, public rand2d (x)
 Fills a 2d table with random numbers. More...
 

Variables

integer, parameter, public rk = real64
 The precision for real numbers. More...
 
integer, parameter, public ik = int32
 The precision for integer numbers. More...
 

Detailed Description

Module fnn_common. Implements some common features.

We should implement a common interface to rand1d and rand2d, but doxygen does not handle Fortran interfaces...

Function/Subroutine Documentation

◆ rand1d()

subroutine, public fnn_common::rand1d ( real(rk), dimension(:), intent(out)  x)

Fills a 1d table with random numbers.

The random numbers are drawn from a uniform distribution in [0, 1].

Parameters
[out]xThe 1d table of real numbers to fill.

◆ rand2d()

subroutine, public fnn_common::rand2d ( real(rk), dimension(:, :), intent(out)  x)

Fills a 2d table with random numbers.

The random numbers are drawn from a uniform distribution in [0, 1].

Parameters
[out]xThe 2d table of real numbers to fill.

Variable Documentation

◆ ik

integer, parameter, public fnn_common::ik = int32

The precision for integer numbers.

◆ rk

integer, parameter, public fnn_common::rk = real64

The precision for real numbers.