From 32c7d8370faca901162500a26f43a445f4f8e095 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 11 Aug 2015 03:32:23 +0200 Subject: simple-mat: open-code operator()(x, y) calls --- opentrack/simple-mat.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) mode change 100644 => 100755 opentrack/simple-mat.hpp (limited to 'opentrack') diff --git a/opentrack/simple-mat.hpp b/opentrack/simple-mat.hpp old mode 100644 new mode 100755 index 7432e665..1d3b10e1 --- a/opentrack/simple-mat.hpp +++ b/opentrack/simple-mat.hpp @@ -90,7 +90,7 @@ struct Mat num ret = 0; constexpr int len = vector_len::value; for (int i = 0; i < len; i++) - ret += operator()(i) * p2.operator ()(i); + ret += operator()(i) * p2(i); return ret; } @@ -108,7 +108,7 @@ struct Mat Mat ret; for (int j = 0; j < h_; j++) for (int i = 0; i < w_; i++) - ret(j, i) = this->operator ()(j, i) + other(j, i); + ret(j, i) = data[j][i] + other(j, i); return ret; } @@ -117,7 +117,7 @@ struct Mat Mat ret; for (int j = 0; j < h_; j++) for (int i = 0; i < w_; i++) - ret(j, i) = this->operator ()(j, i) - other(j, i); + ret(j, i) = data[j][i] - other(j, i); return ret; } @@ -126,7 +126,7 @@ struct Mat Mat ret; for (int j = 0; j < h_; j++) for (int i = 0; i < w_; i++) - ret(j, i) = this->operator ()(j, i) + other; + ret(j, i) = data[j][i] + other; return ret; } @@ -135,7 +135,7 @@ struct Mat Mat ret; for (int j = 0; j < h_; j++) for (int i = 0; i < w_; i++) - ret(j, i) = this->operator ()(j, i) - other; + ret(j, i) = data[j][i] - other; return ret; } @@ -144,7 +144,7 @@ struct Mat Mat ret; for (int j = 0; j < h_; j++) for (int i = 0; i < w_; i++) - ret(j, i) = operator()(j, i) * other; + ret(j, i) = data[j][i] * other; return ret; } -- cgit v1.2.3