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

Interface norm


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

Return the euclidean norm of a vector or of an array. For a single vector x, norm(x) is equal to sqrt(x .dot. x) A two-dimensional array is treated as a list of vectors in either Fortran (dir=1) or C (dir=2) style-ordering. The result is then a one-dimensional array of the norms of each vector.

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

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

dir -- integer, intent(in)

Return values:

n1 -- real(dp)
s2 -- real(dp), dimension(size(this,3-dir))
norm2 interface

gabor 2009-06-30