[Numpy-discussion] Should numpy.allclose return True for arrays of different shape ?

David Cournapeau david at ar.media.kyoto-u.ac.jp
Mon May 7 06:30:37 EDT 2007


Hi,

    I wanted to know if the following behaviour is a bug or intended 
behaviour:

"""  
import numpy as N
N.allclose(N.array([[1., 1.]]), N.array([1.]))
"""

eg should allclose return True if arrays have different shape ?

    cheers,

    David




More information about the NumPy-Discussion mailing list