Temporarily overrides the session-default dispatch policy and/or
precision mode for the duration of code, then restores the
previous values on exit, even when code errors.
Examples
with_amatrix(policy = "auto", precision = "fast", {
adgeMatrix(matrix(1:4, nrow = 2))
})
#> An amatrix dense matrix [cpu|policy=auto|precision=fast]
#> 2 x 2 Matrix of class "adgeMatrix"
#> [,1] [,2]
#> [1,] 1 3
#> [2,] 2 4