This function replaces the contents of a subset in a matrix by the contents of a smaller one (note that the name of the third parameter should be source, not dest):
import arrlib as arr m=arr.intMat(10,10) s=arr.intMat(3,3) m.copyToSubMatr(2,2,s)