Skip to content

Commit

Permalink
CSRMatrix now uses templates
Browse files Browse the repository at this point in the history
Signed-off-by: Eugenio Angriman <eugenio.angriman@informatik.hu-berlin.de>
  • Loading branch information
angriman committed Jul 10, 2019
1 parent 86bc785 commit 7421696
Show file tree
Hide file tree
Showing 5 changed files with 1,302 additions and 1,295 deletions.
10 changes: 6 additions & 4 deletions include/networkit/algebraic/AlgebraicGlobals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
namespace NetworKit {

/** Represents a matrix entry s.t. matrix(row, column) = value */
struct Triplet {
index row;
index column;
double value;
template <typename KeyType>
struct GeneralTriplet {
index row, column;
KeyType value;
};

using Triplet = GeneralTriplet<edgeweight>;

/** Floating point epsilon to use in comparisons. */
constexpr double FLOAT_EPSILON = 1e-9;

Expand Down
Loading

0 comments on commit 7421696

Please sign in to comment.