reformat code using clang-format

This commit is contained in:
lperron@google.com
2014-01-08 12:01:58 +00:00
parent fcca4a0496
commit 54b10f910a
161 changed files with 10639 additions and 9603 deletions

View File

@@ -25,16 +25,13 @@ void AssignmentOn4x4Matrix() {
LOG(INFO) << "Assignment on 4x4 Matrix";
const int kNumSources = 4;
const int kNumTargets = 4;
const CostValue kCost[kNumSources][kNumTargets] = {
{ 90, 76, 75, 80 },
{ 35, 85, 55, 65 },
{ 125, 95, 90, 105 },
{ 45, 110, 95, 115 }
};
const CostValue kCost[kNumSources][kNumTargets] = {{90, 76, 75, 80},
{35, 85, 55, 65},
{125, 95, 90, 105},
{45, 110, 95, 115}};
const CostValue kExpectedCost =
kCost[0][3] + kCost[1][2] + kCost[2][1] + kCost[3][0];
ForwardStarGraph graph(
kNumSources + kNumTargets, kNumSources * kNumTargets);
ForwardStarGraph graph(kNumSources + kNumTargets, kNumSources * kNumTargets);
LinearSumAssignment<ForwardStarGraph> assignment(graph, kNumSources);
for (NodeIndex source = 0; source < kNumSources; ++source) {
for (NodeIndex target = 0; target < kNumTargets; ++target) {
@@ -49,7 +46,7 @@ void AssignmentOn4x4Matrix() {
} // namespace operations_research
int main(int argc, char **argv) {
int main(int argc, char** argv) {
google::ParseCommandLineFlags( &argc, &argv, true);
operations_research::AssignmentOn4x4Matrix();
return 0;