[Numpy-discussion] fancy view question

Gael Varoquaux gael.varoquaux at normalesup.org
Tue Feb 17 10:01:13 EST 2009


On Tue, Feb 17, 2009 at 04:58:57PM +0200, Stéfan van der Walt wrote:
> 2009/2/17 Gael Varoquaux <gael.varoquaux at normalesup.org>:
> > That's handy, you should commit this somewhere. Actually, it would be
> > even cooler if you could have different zoom factor in different
> > direction :).

> Something like this:

> a = np.array([[1, 2, 3],
>               [4, 5, 6]])
> print a
> print zoom(a, x=2, y=3)

Exactly, but with a signature that accepts a integer, or a tuple of
integers. And commiting this in eg stride_tricks.

Gaël



More information about the NumPy-Discussion mailing list