RobinHankin / spray

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

bug in replacement method #46

Closed RobinHankin closed 7 months ago

RobinHankin commented 7 months ago
library("spray")
#> 
#> Attaching package: 'spray'
#> The following objects are masked from 'package:base':
#> 
#>     pmax, pmin
set.seed(0)
p <- rspray()
coeffs(p)[coeffs(p) < 100] <- 66
#> Error in `coeffs<-.spray`(`*tmp*`, value = c(66, 66, 66, 66, 66, 66, 66: length(value) == 1 is not TRUE

Created on 2024-01-29 with reprex v2.1.0