dotprod {onion} | R Documentation |
Euclidean even product; dot product of two onions
dotprod(x, y)
x,y |
Onionic vectors |
Returns the Euclidean even product of two onionic vectors. That is,
if x
and y
are eight-element vectors of the components
of two onions, return sum(x*y)
.
Note that the returned value is a numeric vector (compare %<.>%
,
e.even()
, which return onionic vectors with zero imaginary part).
Robin K. S. Hankin
a <- roct(5) b <- roct(1) a %.% b a %.% (a+3)