Indexing an array with rounded array of floating point indexes

There is

a[round.(Int, i)...]

Performance-wise, though,

a[round.(Int, (i[1], i[2]))...]

would be better, as splatting can be done at compile time.

3 Likes