vortex icon indicating copy to clipboard operation
vortex copied to clipboard

Take should by default only take unique indices unless underlying array is a PrimitiveArray

Open robert3005 opened this issue 1 year ago • 0 comments

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

robert3005 avatar Mar 28 '24 13:03 robert3005