Skip to contents

Given a clifford object with all terms of grade 1, return the corresponding numeric vector

Usage

# S3 method for class 'clifford'
as.vector(x,mode = "any")

Arguments

x

Object of class clifford

mode

ignored

Author

Robin K. S. Hankin

Note

The awkward R idiom of this function is because the terms may be stored in any order; see the examples

Examples

x <- clifford(list(6,2,9),1:3)
as.vector(x)
#> [1] 0 2 0 0 0 1 0 0 3

as.1vector(as.vector(x)) == x  # should be TRUE
#> [1] TRUE