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 1 : arrlib matrix math

Pure matrix multiplication, and element-by-element and scalar addition:

import arrlib as arr
m1 = arr.floatMat(10,10)
m2 = arr.floatMat(10,10)
# fill in elements in m1 and m2...
m3 = m1*m2
m4 = m3+m3
m5 = m4+10.3

 


 

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