number res = 0.;
const size_type size_m = m(),
size_n = n();
- for (size_type i=0; i<size_n; ++i)
+ for (size_type i=0; i<size_m; ++i)
{
number s = number(right(i));
- for (size_type j=0; j<size_m; ++j)
+ for (size_type j=0; j<size_n; ++j)
s -= number(src(j)) * (*this)(i,j);
dst(i) = s;
res += s*s;
{
Assert (!this->empty(), ExcEmptyMatrix());
- for (size_type k=0; k<m(); ++k)
+ for (size_type k=0; k<n(); ++k)
(*this)(i,k) += s*(*this)(j,k);
}
{
Assert (!this->empty(), ExcEmptyMatrix());
- const size_type size_m = m();
+ const size_type size_m = n();
for (size_type l=0; l<size_m; ++l)
(*this)(i,l) += s*(*this)(j,l) + t*(*this)(k,l);
}
{
Assert (!this->empty(), ExcEmptyMatrix());
- for (size_type k=0; k<n(); ++k)
+ for (size_type k=0; k<m(); ++k)
(*this)(k,i) += s*(*this)(k,j);
}
{
Assert (!this->empty(), ExcEmptyMatrix());
- for (size_t l=0; l<n(); ++l)
+ for (size_t l=0; l<m(); ++l)
(*this)(l,i) += s*(*this)(l,j) + t*(*this)(l,k);
}