Skip to content
Snippets Groups Projects
Commit c3c0e160 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'issue/mtl_size_functions' into 'master'

import mtl::size for size of std::vector

See merge request !11
parents 86d7ab1f 8b4f7c91
No related branches found
No related tags found
1 merge request!11import mtl::size for size of std::vector
...@@ -130,6 +130,7 @@ namespace AMDiS ...@@ -130,6 +130,7 @@ namespace AMDiS
ins[t.row][t.col] += t.value; ins[t.row][t.col] += t.value;
if (setDiagonal) { if (setDiagonal) {
using mtl::size;
for (std::size_t i = 0; i < size(left); ++i) { for (std::size_t i = 0; i < size(left); ++i) {
if (left[i]) { if (left[i]) {
ins[i][i] = T(1); ins[i][i] = T(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment