X-Git-Url: https://git.sthu.org/?p=libstick.git;a=blobdiff_plain;f=include%2Flibstick-0.1%2Fbooleanmatrix.h;h=d98e7b52cb5174795563ec0c785863dbd514305a;hp=2b64a4ecb79bcd4200e3e26ab3c16bfa2fd10025;hb=c24df30e6826f1eca6444681c09723198bc675b7;hpb=67e57c5aa58f667dc96dfee34ec4859af175b7a9 diff --git a/include/libstick-0.1/booleanmatrix.h b/include/libstick-0.1/booleanmatrix.h index 2b64a4e..d98e7b5 100644 --- a/include/libstick-0.1/booleanmatrix.h +++ b/include/libstick-0.1/booleanmatrix.h @@ -47,7 +47,8 @@ class boolean_colmatrix_base { return cols.size(); } - /** Get height of the matrix, i.e. maximum row-index + 1 among all columns. */ + /** Get height of the matrix, i.e. maximum row-index + 1 among all + * columns. */ size_t height() const { IT h = 0; for (unsigned c=0; c < width(); ++c) @@ -68,7 +69,8 @@ class boolean_colmatrix_base { get_derived()->_set(r, c, value); } - /** For each of the 'count'-many (row-index, column-pair) pair in 'indices', set the specific value. */ + /** For each of the 'count'-many (row-index, column-pair) pair in + * 'indices', set the specific value. */ void set_all(index_type indices[][2], size_t count, bool value) { for (unsigned i=0; i < count; ++i) set(indices[i][0], indices[i][1], value); @@ -257,7 +259,8 @@ class boolean_rowmatrix_base { get_derived()->_set(r, c, value); } - /** For each of the 'count'-many (row-index, column-pair) pair in 'indices', set the specific value. */ + /** For each of the 'count'-many (row-index, column-pair) pair in + * 'indices', set the specific value. */ void set_all(index_type indices[][2], size_t count, bool value) { for (unsigned i=0; i < count; ++i) set(indices[i][0], indices[i][1], value); @@ -410,7 +413,8 @@ class boolean_colrowmatrix : public boolean_colmatrix_base void multiply_matrix(RT &result, const boolean_rowmatrix_base &a, const boolean_colmatrix_base &b) { assert(a.height() == b.width());