aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft/matrix.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/draft/matrix.h
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/draft/matrix.h')
-rw-r--r--util/draft/matrix.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/draft/matrix.h b/util/draft/matrix.h
index 5b366d32b9..154d00b35e 100644
--- a/util/draft/matrix.h
+++ b/util/draft/matrix.h
@@ -47,7 +47,7 @@ public:
}
void ReDim(size_t m, size_t n) {
- Y_ASSERT(m >= 1 && n >= 1);
+ Y_ASSERT(m >= 1 && n >= 1);
size_t newSize = m * n;
if (newSize > BufSize) {
T* newBuf = new T[newSize];
@@ -69,25 +69,25 @@ public:
// Access element matrix[i][j]
T* operator[](size_t i) {
- Y_ASSERT(i >= 0 && i < M);
+ Y_ASSERT(i >= 0 && i < M);
return Arr + i * N;
}
// Access element matrix[i][j]
const T* operator[](size_t i) const {
- Y_ASSERT(i >= 0 && i < M);
+ Y_ASSERT(i >= 0 && i < M);
return Arr + i * N;
}
// Access element matrix(i, j)
T& operator()(size_t i, size_t j) {
- Y_ASSERT(i >= 0 && i < M && j >= 0 && j < N);
+ Y_ASSERT(i >= 0 && i < M && j >= 0 && j < N);
return Arr[i * N + j];
}
// Access element matrix(i, j)
const T& operator()(size_t i, size_t j) const {
- Y_ASSERT(i >= 0 && i < M && j >= 0 && j < N);
+ Y_ASSERT(i >= 0 && i < M && j >= 0 && j < N);
return Arr[i * N + j];
}