Gmp (multipoint arithmetic) apply.bigz function error

Using the example on the help page:

library(gmp) x <- as.bigz(matrix(1:12,3)) apply(x,1,min) # Big Integer ('bigz') object of length 3: # [1] 1 2 3 apply(x,2,max) # Big Integer ('bigz') object of length 3: # [1] 10 11 12 

The results should be:

 x <- matrix(1:12,3) apply(x,1,min) # [1] 1 2 3 apply(x,2,max) # [1] 3 6 9 12 
+5
source share

Source: https://habr.com/ru/post/1236146/


All Articles