Beispiel #1
0
 DiagonalMatrix operator/(double x, const DiagonalMatrix &d) {
   return d.inv() * x;
 }
Beispiel #2
0
 DiagonalMatrix operator/(const DiagonalMatrix &m1, const DiagonalMatrix &m2) {
   DiagonalMatrix ans(m2.inv());
   ans *= m1;
   return ans;
 }