Function as.scalar()
takes a length-one numeric vector and
returns a Clifford scalar of that value (to extract the scalar
component of a multivector, use const()
).
Function as.1vector()
takes a numeric vector and returns the
linear sum of length-one blades with coefficients given by x
;
function is.1vector()
returns TRUE
if every term is of
grade 1.
Function pseudoscalar(n)
returns a pseudoscalar of
dimensionality n
and function is.pseudoscalar()
checks
for a Clifford object being a pseudoscalar.
Function numeric_to_vector()
dispatches to either
as.scalar()
for length-one vectors or as.1vector()
if the length is greater than one.
Function basis()
returns a clifford element comprising of
single blade with grade 1; function e()
is a synonym.