For example say we have an original array  a=np.random.random((512, 512, 3))
and we take a slice of that array b=a[:100, :100, :]

now, b is discontiguous, but all if its memory is owned by a.

Will there ever be a situation where a discontiguous array owns its
own data? Or more generally, will discontiguous data alway have a
contiguous parent?

As far as i understand the numpy strided model, that could only be
supported if len(strides) = ndim+1, I dont think numpy supports that.

Don't get me wrong, I'm not making a feature request, just making sure
I fully understand the array model so I can avoid trampling on memory.

Cheers!

Chris
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to