Skip to content

Commit

Permalink
Added missing includes (for some compilers) and fixed implicit type c…
Browse files Browse the repository at this point in the history
…onversion
  • Loading branch information
cvanaret committed Oct 16, 2024
1 parent 8f5a46e commit 5391862
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions uno/linear_algebra/COOSparseStorage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#define UNO_COOSPARSESTORAGE_H

#include <cassert>
#include <vector>
#include "SparseStorage.hpp"
#include "symbolic/Range.hpp"

Expand Down
1 change: 1 addition & 0 deletions uno/linear_algebra/CSCSparseStorage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#define UNO_CSCSPARSESTORAGE_H

#include <cassert>
#include <vector>
#include "SparseStorage.hpp"
#include "linear_algebra/Vector.hpp"
#include "tools/Infinity.hpp"
Expand Down
2 changes: 1 addition & 1 deletion uno/solvers/MUMPS/MUMPSSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace uno {
std::tuple<size_t, size_t, size_t> MUMPSSolver::get_inertia() const {
const size_t number_negative_eigenvalues = this->number_negative_eigenvalues();
const size_t number_zero_eigenvalues = this->number_zero_eigenvalues();
const size_t number_positive_eigenvalues = this->mumps_structure.n - (number_negative_eigenvalues + number_zero_eigenvalues);
const size_t number_positive_eigenvalues = static_cast<size_t>(this->mumps_structure.n) - (number_negative_eigenvalues + number_zero_eigenvalues);
return std::make_tuple(number_positive_eigenvalues, number_negative_eigenvalues, number_zero_eigenvalues);
}

Expand Down
1 change: 1 addition & 0 deletions uno/tools/Statistics.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) 2018-2024 Charlie Vanaret
// Licensed under the MIT license. See LICENSE file in the project directory for details.

#include <ostream>
#include <iostream>
#include <iomanip>
#include "Statistics.hpp"
Expand Down

0 comments on commit 5391862

Please sign in to comment.