From: Daniel Arndt Date: Sat, 14 Oct 2017 12:31:53 +0000 (+0200) Subject: Fix undefined behavior in TridiagonalMatrix X-Git-Tag: v9.0.0-rc1~952^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d39257b84453f2ed11e290f7b543d3563fca78f4;p=dealii.git Fix undefined behavior in TridiagonalMatrix --- diff --git a/source/lac/tridiagonal_matrix.cc b/source/lac/tridiagonal_matrix.cc index 711343ecf6..16937b5445 100644 --- a/source/lac/tridiagonal_matrix.cc +++ b/source/lac/tridiagonal_matrix.cc @@ -237,7 +237,7 @@ TridiagonalMatrix::compute_eigenvalues() const int nn = n(); int info; - stev (&N, &nn, &*diagonal.begin(), &*right.begin(), nullptr, &one, nullptr, &info); + stev (&N, &nn, diagonal.data(), right.data(), nullptr, &one, nullptr, &info); Assert(info == 0, ExcInternalError()); state = LAPACKSupport::eigenvalues;