Just a doc update to start :-)

diff -r 2c92cefdd78e sympy/matrices/matrices.py
--- a/sympy/matrices/matrices.py        Sun Jun 15 19:36:32 2008 +0200
+++ b/sympy/matrices/matrices.py        Tue Jun 17 13:46:51 2008 +0200
@@ -436,7 +436,17 @@
         self.cols -= 1

     def row_join(self, rhs):
-        # concatenates two matrices along self's last and rhs's first
col
+        """
+        Concatenates two matrices along self's last and rhs's first
column
+
+        >>> from sympy import *
+        >>> M = Matrix(3,3,lambda i,j: i+j)
+        >>> V = Matrix(3,1,lambda i,j: 3+i+j)
+        >>> M.row_join(V)
+        [0,1,2,3]
+        [1,2,3,4]
+        [2,3,4,5]
+        """
         assert self.lines == rhs.lines
         newmat = self.zeronm(self.lines, self.cols + rhs.cols)
         newmat[:,:self.cols] = self[:,:]
@@ -444,6 +454,18 @@
         return newmat

     def col_join(self, bott):
+        """
+        Concatenates two matrices along self's last and bott's first
row
+
+        >>> from sympy import *
+        >>> M = Matrix(3,3,lambda i,j: i+j)
+        >>> V = Matrix(1,3,lambda i,j: 3+i+j)
+        >>> M.col_join(V)
+        [0,1,2]
+        [1,2,3]
+        [2,3,4]
+        [3,4,5]
+        """
         assert self.cols == bott.cols
         newmat = self.zeronm(self.lines+bott.lines, self.cols)
         newmat[:self.lines,:] = self[:,:]

Riccardo Gori
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to