12 #ifndef MLPACK_CORE_UTIL_LOG_HPP 13 #define MLPACK_CORE_UTIL_LOG_HPP 16 #include <mlpack/mlpack_export.hpp> 64 static void Assert(
bool condition,
65 const std::string& message =
"Assert Failed.");
Provides a convenient way to give formatted output.
Linear algebra utility functions, generally performed on matrices or vectors.
static MLPACK_EXPORT util::NullOutStream Debug
MLPACK_EXPORT is required for global variables, so that they are properly exported by the Windows com...
static void Assert(bool condition, const std::string &message="Assert Failed.")
Checks if the specified condition is true.
static MLPACK_EXPORT util::PrefixedOutStream Fatal
Prints fatal messages prefixed with [FATAL], then terminates the program.
static MLPACK_EXPORT util::PrefixedOutStream Info
Prints informational messages if –verbose is specified, prefixed with [INFO ].
static std::ostream & cout
Reference to cout, if necessary.
static MLPACK_EXPORT util::PrefixedOutStream Warn
Prints warning messages prefixed with [WARN ].
Allows us to output to an ostream with a prefix at the beginning of each line, in the same way we wou...
Used for Log::Debug when not compiled with debugging symbols.