zero | R Documentation |
Dealing with the zero Clifford object presents particular challenges. Some of the methods need special dispensation for the zero object.
is.zero(x)
x |
Clifford object |
To test for a Clifford object's being zero, use is.zero()
.
Idiom such as x==0
will work irregardless, but sometimes one
might prefer the functional form for stylistic reasons.
To create the zero object ab initio, use
clifford(list(),numeric(0))
although note that scalar(0)
will work too.
The coefficient of the zero clifford object, as in
coeff(scalar(0))
, is numeric(0)
(but note that 1 +
NULL
also returns numeric(0)
).
Function is.zero()
is problematic if another package which also
has an is.zero()
generic is loaded, for this will mask
clifford::is.zero()
. Specifically, the jordan
package includes jordan::is.zero()
and the two do not play
nicely together.
Robin K. S. Hankin
scalar
is.zero(rcliff())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.