13 #ifndef MLPACK_BINDINGS_GO_IO_UTIL_HPP 14 #define MLPACK_BINDINGS_GO_IO_UTIL_HPP 30 const std::string& identifier,
33 p.
Get<T>(identifier) = std::move(value);
44 const std::string& identifier,
47 p.
Get<T*>(identifier) = value;
57 return p.
Get<T*>(paramName);
void SetParamPtr(util::Params &p, const std::string &identifier, T *value)
Set the parameter to the given value, given that the type is a pointer.
bool backtrace
If true, on a fatal error, a backtrace will be printed if HAS_BFD_DL is defined.
void ResetTimers()
Reset the status of all timers.
Linear algebra utility functions, generally performed on matrices or vectors.
void DisableVerbose()
Turn verbose output off.
bool ignoreInput
Discards input, prints nothing if true.
void DisableBacktrace()
Disable backtraces.
void SetParam(util::Params &p, const std::string &identifier, T &value)
Set the parameter to the given value.
static MLPACK_EXPORT util::PrefixedOutStream Fatal
Prints fatal messages prefixed with [FATAL], then terminates the program.
void EnableTimers()
Enable timing.
static MLPACK_EXPORT util::PrefixedOutStream Info
Prints informational messages if –verbose is specified, prefixed with [INFO ].
T & Get(const std::string &identifier)
Get the value of type T found for the parameter specified by identifier.
static void EnableTiming()
Enable timing of mlpack programs.
static void ResetAll()
Stop and reset all running timers.
void EnableVerbose()
Turn verbose output on.
The Params class holds all information about the parameters passed to a specific binding.
T * GetParamPtr(util::Params &p, const std::string ¶mName)
Return a pointer.