Assert (m() == A.m(), ExcDimensionMismatch(m(), A.m()));
Assert (n() == A.n(), ExcDimensionMismatch(n(), A.n()));
- for (unsigned int i=0; i<n(); ++i)
- for (unsigned int j=0; j<m(); ++j)
+ for (unsigned int i=0; i<m(); ++i)
+ for (unsigned int j=0; j<n(); ++j)
(*this)(i,j) = a * number(A(i,j));
}
Assert (m() == B.m(), ExcDimensionMismatch(m(), B.m()));
Assert (n() == B.n(), ExcDimensionMismatch(n(), B.n()));
- for (unsigned int i=0; i<n(); ++i)
- for (unsigned int j=0; j<m(); ++j)
+ for (unsigned int i=0; i<m(); ++i)
+ for (unsigned int j=0; j<n(); ++j)
(*this)(i,j) = a * number(A(i,j)) + b * number(B(i,j));
}
Assert (m() == C.m(), ExcDimensionMismatch(m(), C.m()));
Assert (n() == C.n(), ExcDimensionMismatch(n(), C.n()));
- for (unsigned int i=0; i<n(); ++i)
- for (unsigned int j=0; j<m(); ++j)
+ for (unsigned int i=0; i<m(); ++i)
+ for (unsigned int j=0; j<n(); ++j)
(*this)(i,j) = a * number(A(i,j)) +
b * number(B(i,j)) +
c * number(C(i,j));
Assert (m() == A.m(), ExcDimensionMismatch(m(), A.m()));
Assert (n() == A.n(), ExcDimensionMismatch(n(), A.n()));
- for (unsigned int i=0; i<n(); ++i)
- for (unsigned int j=0; j<m(); ++j)
+ for (unsigned int i=0; i<m(); ++i)
+ for (unsigned int j=0; j<n(); ++j)
(*this)(i,j) += a * number(A(i,j));
}
Assert (m() == B.m(), ExcDimensionMismatch(m(), B.m()));
Assert (n() == B.n(), ExcDimensionMismatch(n(), B.n()));
- for (unsigned int i=0; i<n(); ++i)
- for (unsigned int j=0; j<m(); ++j)
+ for (unsigned int i=0; i<m(); ++i)
+ for (unsigned int j=0; j<n(); ++j)
(*this)(i,j) += a * number(A(i,j)) + b * number(B(i,j));
}
Assert (n() == C.n(), ExcDimensionMismatch(n(), C.n()));
- for (unsigned int i=0; i<n(); ++i)
- for (unsigned int j=0; j<m(); ++j)
+ for (unsigned int i=0; i<m(); ++i)
+ for (unsigned int j=0; j<n(); ++j)
(*this)(i,j) += a * number(A(i,j)) +
b * number(B(i,j)) +
c * number(C(i,j));