18 bool saveVectorToFile(
const std::vector<double>& vector,
const std::string& filename);
23 void resizeMatrix(std::vector<std::vector<T>>& matrix,
int newRowSize,
int newColSize)
25 matrix.resize(newRowSize);
26 for (
int i = 0; i < newRowSize; i++)
27 matrix[i].resize(newColSize);
34 std::random_device rd;
35 std::mt19937 gen(rd());
37 std::uniform_real_distribution<> dis(min, max);
39 T randomNum = dis(gen);
45 std::random_device rd;
46 std::mt19937 gen(rd());
47 std::uniform_real_distribution<> dis(minRange, maxRange);
48 for (
auto& row : matrix)
49 for (
auto& element : row)
56 return localtime_s(result, time) == 0;
58 return localtime_r(time, result) !=
nullptr;