Norm {onion} | R Documentation |
Norm of an onionic vector: the modulus and its square
## S3 method for class 'onion' Norm(z) ## S3 method for class 'onion' Mod(z) ## S3 replacement method for class 'onion' Mod(z) <- value ## S3 method for class 'onion' sign(x)
x,z |
Onionic vector |
value |
A real vector |
The norm of onionic vector O is the product of O with
its conjugate: |O|=OO^* but a more efficient numerical method is
used (see dotprod()
).
The Mod of onionic vector O is the square root of its norm.
The sign of onionic O is the onion with the same
direction as O but with unit Norm: sign(O)=O/Mod(O)
.
Robin K. S. Hankin
a <- roct(5) Norm(a) Mod(a)