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 amdis/amdis-core!11
parents 86d7ab1f 8b4f7c91
...@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment