bug inherited from tacit pixel
This commit is contained in:
parent
59cb75513d
commit
75d55faa31
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue