Up | Example 1 : arrlib matrix math | Example 2 : Two-dimentional geometry | Example 3 : Member functions | Example 4 : Setting sub matrices | Example 5 : Locating peaks in a list

 

  

 
Example 4 : Setting sub matrices

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) 

 

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.