$LastChangedDate: 27-Juil-2011 $

# CL_dot

Dot product of column vectors

## Calling Sequence

       [c] = CL_dot(u,v)
       [c] = CL_dot(u)

## Description

- Computes the dot product of vectors (or matrices considered as set of column vectors).

  The arguments may be matrices or hypermatrices of dimension 3.

  The second argument can be omitted: CL_dot(u) = CL_dot(u,u) (self dot product).

## Parameters

u:

  Matrix (considered as a set of column vectors) (Px1 or PxN) or hypermatrix (PxNxK)

v:

  (optional) Matrix (considered as a set of column vectors). (Px1 or PxN) or hypermatrix (PxNxK)

c:

  Matrix (dot products of column vectors) (1xN or 1xNxK)

## See also

- CL_cross

- CL_norm

## Authors

- CNES - DCT/SB

## Examples

    // u and v : set of column vectors
    u = [ [1;2] , [3;4]];
    v = [ [-1;5] , [-6;2]];
    CL_dot(u,v)

    // u : set of column vectors, v : one column vector
    u = [ [1;2;3] , [3;4;5]];
    v = [1;2;3];
    CL_dot(u,v)

    // u and v hypermatrix : set of column vectors
    u = rand(2,3,4);
    v = rand(2,3,4);
    CL_dot(u,v)