<< CL_deg2rad Utilities CL_evalPoly >>

CelestLab >> Utilities > CL_dot

CL_dot

Dot product of column vectors

Calling Sequence

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

Description

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

Authors

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)
<< CL_deg2rad Utilities CL_evalPoly >>