Fix warnings in debug
This commit is contained in:
parent
4266aaf5ee
commit
49190367af
10 changed files with 43 additions and 45 deletions
|
|
@ -73,13 +73,12 @@ int main()
|
|||
}
|
||||
|
||||
//Reading the actual matrix
|
||||
std :: ifstream f("data-topo-stoch");
|
||||
std::ifstream f("data-topo-stoch");
|
||||
std::vector<std::vector<double>> _matrix;
|
||||
if (f)
|
||||
{
|
||||
double temp;
|
||||
unsigned size;
|
||||
double isNeighbor, isFirst = true;
|
||||
double isNeighbor;
|
||||
std::string line;
|
||||
std::vector<double> lineVector;
|
||||
|
||||
|
|
@ -91,7 +90,7 @@ int main()
|
|||
std::istringstream tokenizer(line);
|
||||
std::string token;
|
||||
|
||||
while(tokenizer>> temp >> std::skipws)
|
||||
while(tokenizer >> temp >> std::skipws)
|
||||
{
|
||||
//white spaces are skipped, and the integer is converted to boolean, to be stored
|
||||
|
||||
|
|
@ -112,7 +111,7 @@ int main()
|
|||
}
|
||||
|
||||
//Comparison to the actual matrix : _matrix
|
||||
for(int i = 0; i < matrix.size(); i++)
|
||||
for(int j = 0; j < matrix.size(); j++)
|
||||
for(unsigned i = 0; i < matrix.size(); i++)
|
||||
for(unsigned j = 0; j < matrix.size(); j++)
|
||||
assert(std::abs(_matrix[i][j] - matrix[i][j]) < .05);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ typedef eoBit<double> Indi2; // A bitstring with fitness double
|
|||
// Conversion functions
|
||||
Indi2 fromBase(Indi& i, unsigned size)
|
||||
{
|
||||
(void)i;
|
||||
// Dummy conversion. We just create a new Indi2
|
||||
Indi2 v;
|
||||
for (unsigned ivar=0; ivar<size; ivar++)
|
||||
|
|
@ -27,6 +28,7 @@ Indi2 fromBase(Indi& i, unsigned size)
|
|||
|
||||
Indi toBase(Indi2& i)
|
||||
{
|
||||
(void)i;
|
||||
// Dummy conversion. We just create a new Indi
|
||||
Indi v;
|
||||
std::cout << "Convert to base : " << v << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue