From a1087a9871f299478b480492ae1c6e38a26527ee Mon Sep 17 00:00:00 2001 From: Godzil Date: Mon, 17 Feb 2020 13:52:28 +0000 Subject: [PATCH] Add default size to matrix (4 as it is the most common) --- source/include/matrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/include/matrix.h b/source/include/matrix.h index be644f6..4a9806b 100644 --- a/source/include/matrix.h +++ b/source/include/matrix.h @@ -19,7 +19,7 @@ protected: int size; public: - Matrix(int size); + Matrix(int size = 4); Matrix(double values[], int size); double get(int x, int y) const { return this->data[this->size * x + y]; };