Archived
1
Fork 0

Remove explicit Matrix constructor

This commit is contained in:
redstrate 2021-10-14 16:42:37 -04:00
parent 0bb96b1747
commit 1ba5d8f8f3

View file

@ -8,7 +8,7 @@
template<class T, std::size_t M, std::size_t N>
class Matrix {
public:
constexpr explicit Matrix(const T diagonal = T(1)) {
constexpr Matrix(const T diagonal = T(1)) {
for(std::size_t i = 0; i < (M * N); i++)
unordered_data[i] = ((i / M) == (i % N) ? diagonal : T(0));
}