-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
Description
In experimenting with mirai_map(), I do not understand why the documented example:
(mat <- matrix(1:4, nrow = 2L))
mirai_map(mat, sum)[.flat]
works fine, but:
(mat <- matrix(1:4, nrow = 2L))
mirai_map(mat, mean)[.flat]
gives the incorrect result of <1 2> instead of the expected <2 3>. What am I doing wrong? In the 2nd case, mirai_map only seems to be considering the first element of each row, rather than the whole row. Thanks in advance for your help...