- Timestamp:
- 07/14/20 15:54:43 (5 years ago)
- Location:
- cpp/frams
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpp/frams/_demos/simil_test.cpp ¶
r1004 r1005 19 19 { 20 20 LoggerToStdout messages_to_stdout(LoggerBase::Enable); 21 typedef double *pDouble;22 21 int iCurrParam = 0; // index of the currently processed parameter 23 22 char *szCurrParam = NULL; … … 172 171 double **aaSimil = NULL; // array of similarities 173 172 174 // create theempty array of similarities175 aaSimil = new pDouble[pvGenos.size()];173 // create an empty array of similarities 174 aaSimil = new double*[pvGenos.size()]; 176 175 for (unsigned int k = 0; k < pvGenos.size(); k++) 177 176 { … … 181 180 } 182 181 183 // compute and remembersimilarities182 // compute and store similarities 184 183 for (unsigned int i = 0; i < pvGenos.size(); i++) 185 184 { … … 193 192 if (bPrintNames) 194 193 { 195 // if "-names" switch was given, print the number of genotypes and their names194 // if the "-names" switch was given, print the number of genotypes and their names 196 195 printf("%li\n", pvGenos.size()); 197 196 for (unsigned int iGen = 0; iGen < pvNames.size(); iGen++) -
TabularUnified cpp/frams/genetics/f9/f9_oper.cpp ¶
r974 r1005 6 6 #include "f9_conv.h" 7 7 #include <common/nonstd.h> //rndUint, rndDouble 8 #include <string.h> 8 9 9 10 -
TabularUnified cpp/frams/param/paramobj.cpp ¶
r792 r1005 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-20 15Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2020 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 6 6 #include <frams/util/extvalue.h> 7 7 #include <common/nonstd_stl.h> 8 8 9 9 static const char* maybedup(bool dup, const char* src) 10 10 { -
TabularUnified cpp/frams/util/extvalue.cpp ¶
r973 r1005 705 705 fpExceptDisable(); 706 706 double tmp = getDouble() / a; 707 if (! finite(tmp))707 if (!std::isfinite(tmp)) 708 708 { 709 709 logPrintf("ExtValue", "divide", LOG_ERROR, "Overflow %s/%g", getString().c_str(), a); setInvalid();
Note: See TracChangeset
for help on using the changeset viewer.