bug inherited from tacit pixel

This commit is contained in:
Hartmut Seichter 2018-04-03 17:17:35 +02:00
parent 59cb75513d
commit 75d55faa31

View file

@ -95,8 +95,8 @@ public:
//! set identity
inline matrixbase& set_identity() {
for (unsigned int r = 0;r < rows(); r++)
for (unsigned int c = r; c < cols(); c++)
this->at(r,c) = (c == r) ? 1 : 0;
for (unsigned int c = 0; c < cols(); c++)
this->at(r,c) = (c == r) ? T(1) : T(0);
return *this;
}