RobinHankin / spray

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

coeffs(x) #20

Closed RobinHankin closed 3 years ago

RobinHankin commented 3 years ago

Look at the following session:

> x <- rspray()
> x
           val
 1 2 0  =    9
 2 0 1  =    8
 1 0 2  =    7
 2 0 2  =    5
 1 1 0  =    4
 0 2 0  =    6
 1 2 1  =    2
 0 1 2  =    3
 1 0 0  =    1
> coeffs(x)
Error in coeffs(x) : could not find function "coeffs"
> val(x)
Error in val(x) : could not find function "val"
> value(x)
[1] 9 8 7 5 4 6 2 3 1
> 

Above, I wanted to access the coefficients (viz 9,8,7, etc) and tried coeffs() and val() but these were not right. Using coeffs() really ought to work.

RobinHankin commented 3 years ago

we are going to have to bite the bullet and change value() to coeffs() globally.