Remove explicit Matrix constructor
This commit is contained in:
parent
0bb96b1747
commit
1ba5d8f8f3
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Reference in a new issue