next up previous contents index
Next: Interface randomise Up: Module linearalgebra_module Previous: Interface norm   Contents   Index

Interface norm2


\begin{boxedminipage}{\textwidth}
\begin{verbatim}n1 = norm2(vector)
a2 = norm2(this,dir)\end{verbatim}
\end{boxedminipage}

Euclidean norm$^2$ of a vector or a of a list of vectors. Result is equal to x .dot. x for a single vector x.

vector -- real(dp), intent(in), dimension(:)

this -- real(dp), dimension(:,:)

dir -- integer, intent(in)

Return values:

n1 -- real(dp)
a2 -- real(dp), dimension(size(this,3-dir))
randomise interface

gabor 2009-06-30