changeset 1415:424bf9fe18d4

matrix: better set/get example
author Martin Geisler <mg@cs.au.dk>
date Mon, 14 Dec 2009 11:10:40 +0100
parents 53274a428c04
children c539b4196ea5
files viff/matrix.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/viff/matrix.py	Mon Dec 14 11:08:57 2009 +0100
+++ b/viff/matrix.py	Mon Dec 14 11:10:40 2009 +0100
@@ -55,7 +55,7 @@
             self._init_zeros(*args)
 
     def __setitem__(self, (i, j), value):
-        """Allows matrix entry assignment using ``[,]``.
+        """Allows matrix entry assignment using ``M[x, y] = z``.
 
         The assignment works as follows:
 
@@ -68,7 +68,7 @@
         self.rows[i][j] = value
 
     def __getitem__(self, (i, j)):
-        """Allows matrix entry access using ``[, ]``.
+        """Allows matrix entry access using ``z = M[x, y]``.
 
         The access works as follows: