Re: how to compact many maps?

*To*: mathgroup at smc.vnet.net*Subject*: [mg70769] Re: how to compact many maps?*From*: "dimitris" <dimmechan at yahoo.com>*Date*: Fri, 27 Oct 2006 00:28:05 -0400 (EDT)*References*: <ehplcu$j9g$1@smc.vnet.net>

data = Table[{Random[], Random[]}, {10}, {5}]; d0 = ((MapAt[f, #1, 2] & ) /@ #1 & ) /@ data; d1 = Table[{data[[i,j,1]], f[data[[i,j,2]]]}, {i, 1, Dimensions[data][[1]]}, {j, 1, Dimensions[data][[2]]}]; d2 = data /. {x_Real, y_Real} -> {x, f[y]}; Dimensions /@ {data, d0, d1, d2} {{10, 5, 2}, {10, 5, 2}, {10, 5, 2}, {10, 5, 2}} d0 == d1 == d2 True Regards Dimitris