-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* update comments on first 4 modules (alphabetically) * update comments on all modules except opt * fix rebase * fix rebase 2 * comment voters * add comments in opt * fix missed rebase issues
- Loading branch information
1 parent
4a2d9ff
commit ab4afa4
Showing
56 changed files
with
1,211 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
/// | ||
/// partition.hpp | ||
/// ccur | ||
/// | ||
/// Purpose: | ||
/// Implement the algorithm to separate all nodes under a series of graphs | ||
/// into k groups as to minimize the size of each group while ensuring the | ||
/// parents of every node is found under the same group | ||
/// | ||
|
||
#include "teq/traveler.hpp" | ||
|
||
#ifndef CCE_PARTITION_HPP | ||
#define CCE_PARTITION_HPP | ||
#ifndef CCUR_PARTITION_HPP | ||
#define CCUR_PARTITION_HPP | ||
|
||
namespace ccur | ||
{ | ||
|
||
/// Groups of functors | ||
using PartGroupsT = std::vector<std::vector<teq::iFunctor*>>; | ||
|
||
/// Map functor opcode to the operation's weight value | ||
using OpWeightT = std::unordered_map<size_t,double>; | ||
|
||
/// Return k groups of graphs under roots given some weight | ||
PartGroupsT k_partition (teq::TensptrsT roots, size_t k, OpWeightT weights = OpWeightT()); | ||
|
||
} | ||
|
||
#endif // CCE_PARTITION_HPP | ||
#endif // CCUR_PARTITION_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
#include "ccur/partition.hpp" | ||
|
||
#ifdef CCE_PARTITION_HPP | ||
#ifdef CCUR_PARTITION_HPP | ||
|
||
namespace ccur | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.