<< CL_detectZero Math CL_evalPoly >>

CelestLab >> Math > CL_dot

CL_dot

Dot product of column vectors

Calling Sequence

d = CL_dot(u,v)
d = CL_dot(u)

Description

Parameters

u:

Matrix or hypermatrix (NxPx... or Nx1x... etc...)

v:

(optional) Matrix or hypermatrix (NxPx... or Nx1x... etc...)

d:

Dot product of u and v (1xPx...)

See also

Authors

Examples

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

// u: column vector and v: matrix
u = [1; 2; 3];
v = [[1; 2; 3], [3; 4; 5]];
CL_dot(u,v)

// u: column vector and v: hypermatrix
u = [1; 2; 3];
v = ones(3, 2, 4);
CL_dot(u,v)

// u: matrix and v: hypermatrix
u = [[1; 2; 3], [3; 4; 5]];
v = ones(3, 2, 4);
CL_dot(u,v)

Report an issue
<< CL_detectZero Math CL_evalPoly >>