Table 1: Matrix operation times.

  Operation Matrix PolMat Return Ratio Member
1 Ctor,Dtor 0.67 18.14 0.04 yes
2 Copy Ctor, Dtor 0.97 10.80 0.09 yes
3 Op == (mat) 1.68 1.33 bool 1.27 yes
4 Op = (mat) 0.63 1.10 ref 0.57 yes
5 Op ~(mat) 1.68 16.15 val 0.10 yes
6 Op ( ) 0.04 0.07 ref 0.56 yes
7 Op -(mat) 2.64 21.47 val 0.12 yes
8 Op *= (const) 4.57 2.21 ref 2.07 yes
9 Op += (mat) 21.13 1.40 ref 15.04 yes
10 dat=mat*dat 9.02 val
11 Op *=(mat) N/A 2.21 ref 4.08 yes
12 Op * (mat) 8.40 val yes
13 Op + (mat) 3.20 val yes
14 Op * (const) 2.59 val yes
15 GetRow(n) 1.43 2.10 val 0.68 yes
16 GetRow(n,v) N/A 0.29 ref yes
17 GetCol(n) 1.10 0.03 val/ref 33.90 yes
18 Op * (mat,mat) 23.23 val 0.36 no
19 Op + (mat,mat) 21.78 val 0.15 no
20 Op * (mat,const) 21.34 val 0.12 no
21 Process 10.03 3.02 3.32 N/A