[Numpy-discussion] add .H attribute?

Stéfan van der Walt stefan at sun.ac.za
Sun Jul 21 18:37:42 EDT 2013


On Sat, 20 Jul 2013 15:30:48 +0200, Sebastian Haase wrote:
> Are there other precedents where an attribute would involve
> data-copying ? I'm thinking that numpy generally does better than
> matlab by being more explicit about it's memory usage...
> (But, I'm no mathematician and I could see it beeing much of a
> convenience to have .H )

Hopefully we'll eventually have lazily evaluated arrays so that we can do
things like views of ufuncs on data.  Unfortunately, this is not doable with
the current ndarray, since its structure is tied to a pointer and strides.

Stéfan




More information about the NumPy-Discussion mailing list