Dynamic Neural Field Composer 0.0.0
A C++20 library and interactive application for building and simulating Dynamic Neural Field (DNF) architectures.
Loading...
Searching...
No Matches
Namespaces | Functions
utils.h File Reference
#include <string>
#include <vector>
#include <random>
#include <sstream>
#include <fstream>
#include <chrono>
#include <filesystem>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  dnf_composer
 
namespace  dnf_composer::tools
 
namespace  dnf_composer::tools::utils
 

Functions

int dnf_composer::tools::utils::countNumOfLinesInFile (const std::string &filename)
 
template<typename T >
void dnf_composer::tools::utils::fillMatrixWithRandomValues (std::vector< std::vector< T > > &matrix, double minRange=-1.0, double maxRange=1.0)
 
template<typename T >
dnf_composer::tools::utils::generateRandomNumber (const T &min, const T &max)
 
float dnf_composer::tools::utils::getProcessMemoryMb ()
 
std::string dnf_composer::tools::utils::getResourceRoot ()
 
std::string dnf_composer::tools::utils::replaceForwardSlashesWithBackslashes (const std::string &str)
 
template<typename T >
void dnf_composer::tools::utils::resizeMatrix (std::vector< std::vector< T > > &matrix, int newRowSize, int newColSize)
 
bool dnf_composer::tools::utils::safe_localtime (const std::time_t *time, std::tm *result)
 
bool dnf_composer::tools::utils::saveVectorToFile (const std::vector< double > &vector, const std::string &filename)