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