nrow,ncol,...: Further arguments specifying properties of the returned matrix
s: In the sparse functions rsquat() and rsoct(), an integer specifying the level of sparsity, with higher values meaning to return sparser onions
type: string specifying type of elements
Details
Function rquat() returns a quaternionic vector, roct()
returns an octonionic vector, and romat() a quaternionic matrix.
Functions rquat() and roct() give a quick get you going random onion to play with. Function romat() gives a simple onionmat, although arguably matrix(roct(4),2,2) is as convenient.
The sparse functions rsquat() and rsoct() and rsomat() return onions that have many zero entries; non-zero entries are small integers. They showcase the print method for the case when show_onions_compactly is set.
Author(s)
Robin K. S. Hankin
References
K. Shoemake 1992. Uniform random rotations . In D. Kirk, editor, Graphics Gems III pages 129-130. Academic, New York.