|   | 1 |  initial version  | 
To replace the last six entries of the row number 1:
K[1, -6:] = vector([1] * 6)
To replace entries 40 to 43 of row 1 with the value 1:
K[1, 40:44] = vector([1] * 4)
 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.