From cbe162ab8478f60099532365d893d6fccf1c7b50 Mon Sep 17 00:00:00 2001 From: dehnert Date: Sat, 8 Dec 2012 11:31:27 +0100 Subject: [PATCH] Fixed some copy-paste errors. --- src/exceptions/NoConvergence.h | 4 ++-- src/utility/vector.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/exceptions/NoConvergence.h b/src/exceptions/NoConvergence.h index 1ae6a8eab..bd5b71af9 100644 --- a/src/exceptions/NoConvergence.h +++ b/src/exceptions/NoConvergence.h @@ -26,11 +26,11 @@ class NoConvergence : public std::exception this->maxIterations = maxIterations; } #else - InvalidSettings() : exception() { + NoConvergence() : exception() { iterations = -1; maxIterations = -1; } - InvalidSettings(const char * const s, int iterations, int maxIterations): exception() { + NoConvergence(const char * const s, int iterations, int maxIterations): exception() { this->iterations = iterations; this->maxIterations = maxIterations; } diff --git a/src/utility/vector.h b/src/utility/vector.h index d744fdc35..d872fc124 100644 --- a/src/utility/vector.h +++ b/src/utility/vector.h @@ -32,7 +32,7 @@ void setVectorValues(std::vector* vector, const mrmc::storage::BitVector& pos template void setVectorValues(Eigen::Matrix* eigenVector, const mrmc::storage::BitVector& positions, T value) { for (auto position : positions) { - (*vector)(position, 0) = value; + (*eigenVector)(position, 0) = value; } }