viff

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 diff
     1.1 --- a/viff/matrix.py	Mon Dec 14 11:08:57 2009 +0100
     1.2 +++ b/viff/matrix.py	Mon Dec 14 11:10:40 2009 +0100
     1.3 @@ -55,7 +55,7 @@
     1.4              self._init_zeros(*args)
     1.5  
     1.6      def __setitem__(self, (i, j), value):
     1.7 -        """Allows matrix entry assignment using ``[,]``.
     1.8 +        """Allows matrix entry assignment using ``M[x, y] = z``.
     1.9  
    1.10          The assignment works as follows:
    1.11  
    1.12 @@ -68,7 +68,7 @@
    1.13          self.rows[i][j] = value
    1.14  
    1.15      def __getitem__(self, (i, j)):
    1.16 -        """Allows matrix entry access using ``[, ]``.
    1.17 +        """Allows matrix entry access using ``z = M[x, y]``.
    1.18  
    1.19          The access works as follows:
    1.20