RobinHankin / spray

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

as.spray() should be generic #3

Closed RobinHankin closed 3 years ago

RobinHankin commented 5 years ago

In the wedge package I want as.spray(x) to return a spray object when x is a kform object. I can't do this nicely because as.spray() is not suitable for changing into a generic. It would be better to include the intelligent processing currently in as.spray() in function spray() and make as.spray() generic (and leave the class assignment in spraymaker()). That way, I could write as.spray.kform() in the wedge package.

RobinHankin commented 3 years ago

It's now the stokes package.