title: numpy.ndarray as Dictionary value
body: <p>I am storing numpy.ndarray as a value of a dictionary. My dictionary looks like:</p>
  
  <pre><code>{0: array([[ 1,  0, -1],
     [ 0, -1,  0],
     [ 1,  0,  0]])}
  </code></pre>
  
  <p>But when I am trying to find out if array exists in the dictionary using the following command</p>
  
  <pre><code>S = np.zeros((3,3), dtype=int)
  if S in myDict.values():
     print "something"
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <pre><code>ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
  </code></pre>
  
  <p>I have seen some one who have this problem, but their situation is different. Can anybody help me get ouf it?</p>
  
  <p>At least any suggestion to check if a value exist in Dictionary? Thank you in advance.</p>