cumsum {onion} | R Documentation |
Cumulative sums and products of onions
Description
Cumulative sums and products of onions
Usage
onion_cumsum(x)
onion_cumprod(x)
Arguments
x |
onion |
Value
An onion
Note
The octonions are nonassociative but cumprod()
operates
left-associatively, as in ((a[1]*a[2])*a[3])*a[4]
etc.
Author(s)
Robin K. S. Hankin
Examples
cumsum(as.quaternion(matrix(runif(20),4,5)))
cumsum(roct(5))
cumprod(rquat(7))
[Package onion version 1.5-3 Index]