2 // Bug: g++ fails to compare integer constants properly.
4 template <int X, int Y>
9 template <int M,int H,int N>
10 Matrix<M,N>& Mul(Matrix<M,N>& Q,Matrix<M,H>& A,Matrix<H,N>& B) {
11 for(int i=0;i<M;i++) {
12 for(int j=0;j<N;j++) {
14 for(int k=0;k<H;k++) {
15 Q.base[i][j]+=A.base[i][k]*B.base[k][j];