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
Functions
dnf_composer::tools::utils Namespace Reference

Functions

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

Function Documentation

◆ countNumOfLinesInFile()

int dnf_composer::tools::utils::countNumOfLinesInFile ( const std::string &  filename)

◆ fillMatrixWithRandomValues()

template<typename T >
void dnf_composer::tools::utils::fillMatrixWithRandomValues ( std::vector< std::vector< T > > &  matrix,
double  minRange = -1.0,
double  maxRange = 1.0 
)

◆ generateRandomNumber()

template<typename T >
T dnf_composer::tools::utils::generateRandomNumber ( const T &  min,
const T &  max 
)

◆ getProcessMemoryMb()

float dnf_composer::tools::utils::getProcessMemoryMb ( )
Here is the caller graph for this function:

◆ getResourceRoot()

std::string dnf_composer::tools::utils::getResourceRoot ( )
Here is the caller graph for this function:

◆ replaceForwardSlashesWithBackslashes()

std::string dnf_composer::tools::utils::replaceForwardSlashesWithBackslashes ( const std::string &  str)

◆ resizeMatrix()

template<typename T >
void dnf_composer::tools::utils::resizeMatrix ( std::vector< std::vector< T > > &  matrix,
int  newRowSize,
int  newColSize 
)

◆ safe_localtime()

bool dnf_composer::tools::utils::safe_localtime ( const std::time_t *  time,
std::tm *  result 
)
inline
Here is the caller graph for this function:

◆ saveVectorToFile()

bool dnf_composer::tools::utils::saveVectorToFile ( const std::vector< double > &  vector,
const std::string &  filename 
)