Skip to content

Commit

Permalink
[core.matrix] fixed a bug where matrix<T, N>::iden() was filling the …
Browse files Browse the repository at this point in the history
…top row with zeroes as opposed to creating a proper identity matrix
  • Loading branch information
harrand committed Oct 31, 2024
1 parent cc96f40 commit 09b2823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tz/core/matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace tz
auto ret = matrix<T, N>::zero();
for(std::size_t i = 0; i < N; i++)
{
ret.mat[i * N] = T{1};
ret.mat[i * N + i] = T{1};
}
return ret;
}
Expand Down

0 comments on commit 09b2823

Please sign in to comment.