Commits

mattip  committed 2d1f512

add some funtionality

  • Participants
  • Parent commits d36b477
  • Branches python-numpy

Comments (0)

Files changed (1)

File lib_pypy/numpypy/multiarray/__init__.py

     '''
     def __init__(*args, **kwargs):
         raise ValueError('not implemented yet')
+
+class nested_iters(object):
+    def __init__(*args, **kwargs):
+        raise ValueError('not implemented yet')
+
+class broadcast(object):
+    def __init__(*args, **kwargs):
+        raise ValueError('not implemented yet')
+
+def copyto(dst, src, casting='same_kind', where=None, preservena=False):
+    raise ValueError('not implemented yet')
+
+def count_nonzero(a):
+    if not hasattr(a,'flat'):
+        a = ndarray(a)
+    return sum(a.flat != 0)