|   | 1 |  initial version  | 
@ whatupmatt , as an alternative, you can do
    K[1, -6:] = ones_matrix(1,6)
and 
    K[1, 40:44] = ones_matrix(1,4)
A warning: remember that in Python the first row of the matrix is row 0, so K[1,...] modifies the second row.
|   | 2 |  No.2 Revision  | 
@ whatupmatt , as an alternative, you can do
    do
K[1, -6:] = ones_matrix(1,6)
and
K[1,...] modifies the second row.  Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.