onion (version 1.2-7)

Re: Octonion components

Description

Get or set each component of an onionic vector

Usage

# S3 method for octonion
Re(z)
# S3 method for octonion
Im(z)
# S3 method for octonion
i(x)
# S3 method for octonion
j(x)
# S3 method for octonion
k(x)
# S3 method for octonion
l(x)
# S3 method for octonion
il(x)
# S3 method for octonion
jl(x)
# S3 method for octonion
kl(x)
# S3 method for octonion
Re(x) <- value
# S3 method for octonion
Im(x) <- value
# S3 method for octonion
i(x) <- value
# S3 method for octonion
j(x) <- value
# S3 method for octonion
k(x) <- value
# S3 method for octonion
l(x) <- value
# S3 method for octonion
il(x) <- value
# S3 method for octonion
jl(x) <- value
# S3 method for octonion
kl(x) <- value
# S3 method for quaternion
Re(z)
# S3 method for quaternion
Im(z)
# S3 method for quaternion
i(x)
# S3 method for quaternion
j(x)
# S3 method for quaternion
k(x)
# S3 method for quaternion
Re(x) <- value
# S3 method for quaternion
Im(x) <- value
# S3 method for quaternion
i(x) <- value
# S3 method for quaternion
j(x) <- value
# S3 method for quaternion
k(x) <- value
# S3 method for onion
get.comp(x,i)
# S3 method for onion
set.comp(x,i) <- value

Arguments

x,z

An onionic vector

value

A real vector (or, in the case of Im<-() and set.comp<-(), an appropriately sized matrix)

i

In functions get.comp() and set.comp<-(), an integer between 1 and \(2^n\) where \(n\) depends on the type of onion

Value

All return an onion of the appropriate class.

See Also

octonion

Examples

Run this code
# NOT RUN {
x <- octonion(Re=1,il=1:3,j=3:1)
Re(x)
kl(x) <- 1000
# }

Run the code above in your browser using DataLab