namespace Utils

Overview

namespace Utils {

// global functions

GENN_EXPORT bool isRNGRequired(const std::string& code);
GENN_EXPORT bool isInitRNGRequired(const std::vector<Models::VarInit>& varInitialisers);
GENN_EXPORT bool isTypePointer(const std::string& type);
GENN_EXPORT std::string getUnderlyingType(const std::string& type);

} // namespace Utils

Detailed Documentation

Global Functions

GENN_EXPORT bool isRNGRequired(const std::string& code)

Does the code string contain any functions requiring random number generator.

GENN_EXPORT bool isInitRNGRequired(const std::vector<Models::VarInit>& varInitialisers)

Does the model with the vectors of variable initialisers and modes require an RNG for the specified init location i.e. host or device.

GENN_EXPORT bool isTypePointer(const std::string& type)

Function to determine whether a string containing a type is a pointer.

GENN_EXPORT std::string getUnderlyingType(const std::string& type)

Assuming type is a string containing a pointer type, function to return the underlying type.