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.
Definition: log.hpp:56
static MLPACK_EXPORT util::NullOutStream Debug
MLPACK_EXPORT is required for global variables, so that they are properly exported by the Windows com...
Definition: log.hpp:79
static MLPACK_EXPORT util::PrefixedOutStream Fatal
Prints fatal messages prefixed with [FATAL], then terminates the program.
Definition: log.hpp:90
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
static MLPACK_EXPORT util::PrefixedOutStream Warn
Prints warning messages prefixed with [WARN ].
Definition: log.hpp:87
static MLPACK_EXPORT util::PrefixedOutStream Info
Prints informational messages if –verbose is specified, prefixed with [INFO ].
Definition: log.hpp:84
static std::ostream & cout
Reference to cout, if necessary.
Definition: log.hpp:93
Allows us to output to an ostream with a prefix at the beginning of each line, in the same way we wou...
Definition: prefixedoutstream.hpp:46
Used for Log::Debug when not compiled with debugging symbols.
Definition: nulloutstream.hpp:27
static void Assert(bool condition, const std::string &message="Assert Failed.")
Checks if the specified condition is true.
Definition: log.cpp:38