Change log-error to matrix-log