next up previous contents index
Next: Interface operator(.feq.) Up: Module linearalgebra_module Previous: Interface matrix_mvmt   Contents   Index

Interface operator(.dot.)


\begin{boxedminipage}{\textwidth}
\begin{verbatim}prod = operator(.dot.)(mat...
...matrix2)
dotpr = operator(.dot.)(this,other)\end{verbatim}
\end{boxedminipage}

Inner product of two vectors or two matrices. For two vectors $\mathbf{v}$ and $\mathbf{w}$ this is simply:

\begin{displaymath}
d = \sum_{i=1}^N v_i w_i
\end{displaymath}

For $N \times M$ matrices $A$ and $B$ it is defined similarily:

\begin{displaymath}
d = \sum_{i=1}^N \sum_{j=1}^M A_{ij} B_{ij}
\end{displaymath}

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

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

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

Return value -- real(dp)
operator(.feq.) interface

gabor 2009-06-30