Assert compatibility between two spaces
Usage
assert_compatible_spaces(g1, g2, fields = c("type", "dim", "template_id"))Examples
sp1 <- space_voxel(c(2,2,2), diag(4), storage = "dense")
sp2 <- space_voxel(c(2,2,2), diag(4), storage = "dense")
assert_compatible_spaces(sp1, sp2)
#> [1] TRUE