ndarray icon indicating copy to clipboard operation
ndarray copied to clipboard

Bounds on `remove_index`

Open akern40 opened this issue 1 year ago • 0 comments

While working on some code, I ran across remove_index and noticed that it has a bound of S: DataOwned, but I'm not sure why?

pub fn remove_index(&mut self, axis: Axis, index: usize)
where S: DataOwned + DataMut

As this method documents, it does not actually change the allocation of the underlying array, and none of its internal methods require DataOwned. Can this bound be removed? Or am I missing something?

akern40 avatar Oct 12 '24 13:10 akern40