zero: The zero Clifford object

zeroR Documentation

The zero Clifford object

Description

Dealing with the zero Clifford object presents particular challenges. Some of the methods need special dispensation for the zero object.

Usage

is.zero(x)

Arguments

x

Clifford object

Details

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.

Note

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.

Author(s)

Robin K. S. Hankin

See Also

scalar

Examples


is.zero(rcliff())

clifford documentation built on June 8, 2025, 10:56 a.m.