LArray.filter(self, collapse=False, **kwargs)[source]

Filters the array along the axes given as keyword arguments.

The collapse argument determines whether consecutive ranges should be collapsed to slices, which is more efficient and returns a view (and not a copy) if possible (if all ranges are consecutive). Only use this argument if you do not intent to modify the resulting array, or if you know what you are doing.

It is similar to np.take but works with several axes at once.