title: How to find absolute value in matrix in C?
body: <p>I'm doing a C program to solve a system of linear equations by fixed point iteration method. And I have to check if the main matrix is diagonally dominant. But when I enter abs and element of the matrix, it says</p>
  <p>Error (active)  E0308   more than one instance of overloaded function &quot;abs&quot; matches the argument list.</p>
  <ul>
  <li>How can I fix this?</li>
  </ul>
  <pre><code>//for every row
              for (i = 0; i &lt; size; i++)
              {
      //for every column finds the sum of the row
                  double sum = 0;
                  for (j = 0; j &lt; size; j++)
                      sum += abs(k[i][j]);
                  sum -= abs(k[i][i]);
      //check
                  if (abs(k[i][i]) &lt; sum) {
                      printf(&quot;The matrix is not diagonally dominant.&quot;);
                  }
              }
  </code></pre>