summaryrefslogtreecommitdiff
path: root/numpy/matlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/matlib.py')
-rw-r--r--numpy/matlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/matlib.py b/numpy/matlib.py
index 6035f394f..a4720bc3c 100644
--- a/numpy/matlib.py
+++ b/numpy/matlib.py
@@ -12,7 +12,7 @@ def empty(shape, dtype=None, order='C'):
"""return an empty matrix of the given shape
"""
return ndarray.__new__(matrix, shape, dtype, order=order)
-
+
def ones(shape, dtype=None, order='C'):
"""return a matrix initialized to all ones
"""
@@ -23,7 +23,7 @@ def ones(shape, dtype=None, order='C'):
def zeros(shape, dtype=None, order='C'):
"""return a matrix initialized to all zeros
"""
- a = ndarray.__new__(matrix, shape, dtype, order=order)
+ a = ndarray.__new__(matrix, shape, dtype, order=order)
a.fill(0)
return a