onion (version 1.2-7)

as.matrix.onion: Coerces an onionic vector into a matrix

Description

Coerces an onionic vector into a matrix.

Usage

# S3 method for onion
as.matrix(x, ...)

Arguments

x

Onionic vector

...

Further arguments (currently ignored)

Details

The matrix returned has 4 rows for a quaternion, 8 for an octonion

Examples

Run this code
# NOT RUN {
det(as.matrix(roct(8)))
# }

Run the code above in your browser using DataLab