[Numpy-discussion] Bug in max()

Edward C. Jones edcjones at erols.com
Fri Dec 12 06:44:02 CST 2003


I am using a CVS copy of numarray downloaded on Dec 9, 2003. The 
following program raises "TypeError: Can't reshape non-contiguous numarray":

#! /usr/bin/env python

import numarray

z = numarray.zeros((2,2,2))
z.max()

The error happens because "numarray.maximum.areduce" returns a 
non-contiguous array.





More information about the Numpy-discussion mailing list