<< CL_covDraw Math CL_dMult >>

CelestLab >> Math > CL_cross

CL_cross

Cross product of column vectors

Calling Sequence

w = CL_cross(u,v)

Description

Parameters

u:

Matrix or hypermatrix (NxPx... or Nx1x... etc...) with N: 0 or >= 3.

v:

Matrix or hypermatrix (NxPx... or Nx1x... etc...) with N: 0 or >= 3.

w:

Cross product of u and v (NxPx...)

See also

Authors

Examples

// u and v: matrices
u = [[1;0;0], [0;1;0]];
v = [[0;1;0], [0;0;1]];
w = CL_cross(u,v)

// u: column vector and v: matrix
u = [1;0;0];
v = [[0;1;0], [0;0;1]];
w = CL_cross(u,v)

// u: column vector and v: hypermatrix
u = [1;1;1];
v = rand(3, 2, 4);
w = CL_cross(u,v)

Report an issue
<< CL_covDraw Math CL_dMult >>