Previous: transpose, Up: Composition functions


4.3.4.13 Vector products and norms

— Function: grid:cross grid0 grid1

The cross product of two vectors, using the first three components of each.

— Function: grid:euclidean grid &optional kind

The norm of the grid. Kind can be :euclidean, for the euclidean, or 2-norm.

— Generic Function: grid:inner grid0 grid1

The inner product of two grids.

— Function: grid:norm grid &optional kind

The norm of the grid. Kind can be :euclidean, for the euclidean norm.

— Function: grid:normalize grid &optional threshold

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.