From 62ebd8eb6a761fc7fc8e28f16b4c7a4a3d0465ac Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 31 Jul 2010 11:49:25 +0000 Subject: TST: Add tests for matlib. Closes #1242. (From Ralf Gommers.) --- numpy/matlib.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'numpy/matlib.py') diff --git a/numpy/matlib.py b/numpy/matlib.py index 06bbaa02b..f55f763c3 100644 --- a/numpy/matlib.py +++ b/numpy/matlib.py @@ -160,10 +160,10 @@ def identity(n,dtype=None): Examples -------- >>> import numpy.matlib - >>> np.identity(3, dtype=int) - array([[1, 0, 0], - [0, 1, 0], - [0, 0, 1]]) + >>> np.matlib.identity(3, dtype=int) + matrix([[1, 0, 0], + [0, 1, 0], + [0, 0, 1]]) """ a = array([1]+n*[0],dtype=dtype) -- cgit v1.2.1