Your version:
```
for element in matrix:
  sum = sum + abs(element)
```
This is just take sum of abs value.
However, in LAPACK, 1-norm will take sum of abs on columns, and then take the max.