Previous: transpose, Up: Composition functions
The cross product of two vectors, using the first three components of each.
The norm of the grid. Kind can be :euclidean, for the euclidean, or 2-norm.
The inner product of two grids.
The norm of the grid. Kind can be :euclidean, for the euclidean norm.
Find the normalized grid, i.e., each element is divided by grid norm, and the normalization factor. If the norm is less than the non-nil threshold, then nil is returned; if it is zero and threshold is nil, a zero grid is returned.