RobinHankin / stokes

methods for exterior calculus
https://robinhankin.github.io/stokes/
3 stars 0 forks source link

bug in extraction/replacement #85

Closed RobinHankin closed 7 months ago

RobinHankin commented 7 months ago
library("stokes")
set.seed(0)
(p <- rform())
#> An alternating linear map from V^3 to R with V=R^7:
#>            val
#>  2 6 7  =    6
#>  2 5 7  =    5
#>  5 6 7  =   -9
#>  1 3 7  =    4
#>  1 5 7  =    7
#>  2 3 5  =   -3
#>  1 5 6  =   -8
#>  1 2 7  =    2
#>  1 4 6  =    1
p[coeffs(p) < 0]
#> Error in `[.spray`(p, coeffs(p) < 0): incorrect number of dimensions specified
p[coeffs(p) < 0] <- 99
#> Error in `[<-.spray`(`*tmp*`, coeffs(p) < 0, value = 99): incorrect number of dimensions specified

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

RobinHankin commented 7 months ago

See https://github.com/RobinHankin/spray/issues/45