vectors | R Documentation |
%dot%
, %onto%
, and %perp%
are infix operators.
The left-hand argument is a vector.
u %dot% b
b %onto% A
b %perp% A
normalize(A)
as_magnitude(A, metric = c("2", "O", "I", "F", "M"))
u |
a row vector, but a column vector is acceptable too |
b |
a column vector |
A |
a matrix |
metric |
metric to use for matrix norm |
Convenience functions for basic operations relating to vector projection. These use the MOSAIC Calc conventions that require vectors to be one column matrices.
either a number (for %dot%
) or a vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.