Go to the documentation of this file.
13 #ifndef MLPACK_BINDINGS_GO_IO_UTIL_HPP
14 #define MLPACK_BINDINGS_GO_IO_UTIL_HPP
29 inline void SetParam(
const std::string& identifier, T& value)
31 IO::GetParam<T>(identifier) = std::move(value);
44 IO::GetParam<T*>(identifier) = value;
54 return IO::GetParam<T*>(paramName);
Timers timer
Holds the timer objects.
void SetParam(const std::string &identifier, T &value)
Set the parameter to the given value.
void EnableTimers()
Enable timing.
bool ignoreInput
Discards input, prints nothing if true.
void DisableBacktrace()
Disable backtraces.
Linear algebra utility functions, generally performed on matrices or vectors.
void ResetTimers()
Reset the status of all timers.
void DisableVerbose()
Turn verbose output off.
bool backtrace
If true, on a fatal error, a backtrace will be printed if HAS_BFD_DL is defined.
void SetParamPtr(const std::string &identifier, T *value)
Set the parameter to the given value, given that the type is a pointer.
T * GetParamPtr(const std::string ¶mName)
Return a pointer.
void EnableVerbose()
Turn verbose output on.
static MLPACK_EXPORT util::PrefixedOutStream Fatal
Prints fatal messages prefixed with [FATAL], then terminates the program.
static void EnableTiming()
Enable timing of mlpack programs.
void Reset()
Reset the timers.
static MLPACK_EXPORT util::PrefixedOutStream Info
Prints informational messages if –verbose is specified, prefixed with [INFO ].
static IO & GetSingleton()
Retrieve the singleton.