Dot product of column vectors
d = CL_dot(u,v) d = CL_dot(u)
Computes the dot product of column vectors (or matrices or hypermatrices considered as sets of column vectors).
The matrices or hypermatrices are automatically expanded and resized: the dimensions with size 1 are expanded to the maximum size between the 2 matrices (or hypermatrices). However, the sizes for the 1st dimension (number of rows) must be identical unless one of the 2 arguments is the empty matrix.
By convention: CL_dot(u) = CL_dot(u,u).
Notes:
- If one of the arguments is [], the result is also [].
Matrix or hypermatrix (NxPx... or Nx1x... etc...)
(optional) Matrix or hypermatrix (NxPx... or Nx1x... etc...)
Dot product of u and v (1xPx...)
CNES - DCT/SB
// 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) |