Sample.cpp 336 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "Sample.hpp"


int Sample::MGLevel() const {
    return level.MGLevel(coarse);
}

std::string Sample::Str() const {
    return "l:" + std::to_string(level.fine) +
        "-m:" + std::to_string(number) +
        "-c:" + std::to_string((int) coarse);
}

void SampleSolution::Init() {
    Q = 0.0;
    Cost = 0.0;
    U = 0.0;
}