vortex
vortex copied to clipboard
Take should by default only take unique indices unless underlying array is a PrimitiveArray
i.e. if we are taking indces [1, 1, 1, 3, 3, 3] we can just take [1, 3] from underlying array and repeat it appropriately. This, however, assumes that access to elements is expensive and trades that off against another copy. For arrays like PrimitiveArray we should just take original indicies