RobinHankin / spray

sparse arrays and fast multivariate polynomials
https://robinhankin.github.io/spray/
2 stars 2 forks source link

value(x) should return an unordered (nonordered?) vector #21

Closed RobinHankin closed 3 years ago

RobinHankin commented 3 years ago

Function value() [see also issue #10] should return an unordered vector. Look:

> x <- rspray()
> x
           val
 1 2 0  =    9
 2 0 1  =    8
 [snip]

> value(x)
[1] 9 8 7 5 4 6 2 3 1
> 

The object returned by value() is a regular integer-valued vector and it looks like there is a "first" element, a "second" element, and so on. But the values are stored in an implementation-specific order. See https://github.com/RobinHankin/clifford/issues/46

RobinHankin commented 3 years ago

But note that commit 98b145f breaks the stokes package