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; } }