From 0028ae845eb336420fd2e6c82f829881ff7818ee Mon Sep 17 00:00:00 2001 From: Biljana Bojovic Date: Fri, 24 Mar 2023 11:58:30 +0100 Subject: [PATCH] core: Fix MatrixArray::HermitianTranspose --- src/core/model/matrix-array.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/model/matrix-array.cc b/src/core/model/matrix-array.cc index 7ac670ae7..4c33a758a 100644 --- a/src/core/model/matrix-array.cc +++ b/src/core/model/matrix-array.cc @@ -224,7 +224,7 @@ MatrixArray::HermitianTranspose() const for (size_t index = 0; index < this->GetSize(); ++index) { - retMatrix[index] = std::conj(m_values[index]); + retMatrix.m_values[index] = std::conj(retMatrix.m_values[index]); } return retMatrix; }