public function create_binary_matrix(p, L) result(binary_matrix)
Create a random, binary (logical
) matrix,
which can be used in percolation experiments.
Arguments
Type
Intent Optional
Attributes Name
real(kind=dp),
intent(in)
::
p Probability for each matrix element to be .true.
.
integer,
intent(in)
::
L
Return Value logical,
dimension(:,:),allocatable
Randomly created matrix, where each element is .true.
or .false.
if a randomly generated number is smaller
or greater than p.
Called by
proc~~create_binary_matrix~~CalledByGraph
proc~create_binary_matrix
create_binary_matrix
proc~probability_distribution
probability_distribution
proc~probability_distribution->proc~create_binary_matrix
proc~random_walkers
random_walkers
proc~random_walkers->proc~create_binary_matrix
proc~cluster_number_density
cluster_number_density
proc~cluster_number_density->proc~create_binary_matrix
Nodes of different colours represent the following:
Graph Key
Subroutine
Subroutine
Function
Function
Interface
Interface
Unknown Procedure Type
Unknown Procedure Type
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.