13#ifndef MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_HPP
14#define MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_HPP
71 carriageReturned(true),
137 typename std::enable_if<!arma::is_arma_type<T>::value>::type
138 BaseLogic(
const T& val);
151 typename std::enable_if<arma::is_arma_type<T>::value>::type
152 BaseLogic(
const T& val);
157 inline void PrefixIfNeeded();
164 bool carriageReturned;
175#include "prefixedoutstream_impl.hpp"
Allows us to output to an ostream with a prefix at the beginning of each line, in the same way we wou...
PrefixedOutStream & operator<<(std::ostream &(*pf)(std::ostream &))
Write an ostream manipulator function to the stream.
PrefixedOutStream & operator<<(long val)
Write a long to the stream.
PrefixedOutStream & operator<<(double val)
Write a double to the stream.
std::ostream & destination
The output stream that all data is to be sent to; example: MLPACK_COUT_STREAM.
PrefixedOutStream & operator<<(float val)
Write a float to the stream.
PrefixedOutStream & operator<<(void *val)
Write a void pointer to the stream.
PrefixedOutStream & operator<<(long double val)
Write a long double to the stream.
PrefixedOutStream & operator<<(int val)
Write an int to the stream.
PrefixedOutStream(std::ostream &destination, const char *prefix, bool ignoreInput=false, bool fatal=false, bool backtrace=true)
Set up the PrefixedOutStream.
PrefixedOutStream & operator<<(unsigned int val)
Write an unsigned int to the stream.
PrefixedOutStream & operator<<(std::ios_base &(*pf)(std::ios_base &))
Write an ios_base manipulator function to the stream.
PrefixedOutStream & operator<<(const char *str)
Write a character array to the stream.
PrefixedOutStream & operator<<(unsigned long val)
Write an unsigned long to the stream.
PrefixedOutStream & operator<<(std::streambuf *sb)
Write a streambuf to the stream.
PrefixedOutStream & operator<<(const T &s)
Write anything else to the stream.
PrefixedOutStream & operator<<(bool val)
Write a bool to the stream.
bool backtrace
If true, on a fatal error, a backtrace will be printed if HAS_BFD_DL is defined.
PrefixedOutStream & operator<<(std::string &str)
Write a string to the stream.
PrefixedOutStream & operator<<(std::ios &(*pf)(std::ios &))
Write an ios manipulator function to the stream.
PrefixedOutStream & operator<<(unsigned short val)
Write an unsigned short to the stream.
PrefixedOutStream & operator<<(short val)
Write a short to the stream.
bool ignoreInput
Discards input, prints nothing if true.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.