Adding missing scalar argument to Matrix::UpdateDiagonal and extending into C and Python interfaces