next up previous contents index
Next: Interface find_in_array Up: Module linearalgebra_module Previous: Interface norm2   Contents   Index

Interface randomise


\begin{boxedminipage}{\textwidth}
\begin{verbatim}call randomise(v,a)
call randomise(m,a)\end{verbatim}
\end{boxedminipage}

Randomise the elements of an array. Uniformly distributed random quantities in the range $(-\frac{a}{2},\frac{a}{2})$ are added to each element of the vector or matrix.

v -- intent(inout), dimension(:), real(dp) or complex(dp)

a -- real(dp), intent(in), scalar or dimension(:)

m -- intent(inout), dimension(:,:), real(dp) or complex(dp)

find_in_array interface

gabor 2009-06-30