ERT-673: Fixed bug in matrix_diag_std()
Merge pull request #534 from joakim-hove/ERT-673-matrix-diag-std

ERT-673: Fixed bug in matrix_diag_std()