Open asmeurer opened 1 year ago
Actually, there's one annoying thing here. NumPy scalars are never views, because they are supposed to be immutable. It's impossible to tell if an index would produce a scalar or not without knowing the shape of the array.
Need a method that returns True iff the index would produce a view. Should be quite simple to implement.