Theoretica
A C++ numerical and automatic mathematical library
|
Optional header with utilities for input and output. More...
Go to the source code of this file.
Namespaces | |
theoretica | |
Main namespace of the library which contains all functions and objects. | |
Functions | |
template<typename Type > | |
void | theoretica::print (const Type &curr) |
Print the given argument to standard output. | |
template<typename Type , typename ... Args> | |
void | theoretica::print (const Type &curr, Args... args) |
Print the given arguments to standard output separated by a space. | |
template<typename Type > | |
void | theoretica::fprint (std::ostream &out, const Type &last) |
Print the given argument to a stream. | |
template<typename Type , typename ... Args> | |
void | theoretica::fprint (std::ostream &out, const Type &curr, Args... args) |
Print the given arguments to standard output separated by a space. | |
void | theoretica::println () |
Print a newline to standard output. | |
template<typename Type > | |
void | theoretica::println (const Type &curr) |
Print the given argument to standard output followed by a newline. | |
template<typename Type , typename ... Args> | |
void | theoretica::println (const Type &curr, Args... args) |
Print the given arguments to standard output separated by a space and followed by a newline. | |
template<typename Type > | |
void | theoretica::fprintln (std::ostream &out, const Type &curr) |
Print the given argument to an output stream followed by a newline. | |
template<typename Type , typename ... Args> | |
void | theoretica::fprintln (std::ostream &out, const Type &curr, Args... args) |
Print the given arguments to an output stream separated by a space and followed by a newline. | |
template<typename Type = real> | |
vec< Type > | theoretica::readln (std::istream &in, const std::string &terminator, std::function< Type(std::string)> parse) |
Insert a data set of the given type from a stream, reading line by line until a line is equal to the terminator and parsing each line using the given function, returning the list of values. | |
vec< real > | theoretica::readln (std::istream &in, const std::string &terminator="") |
Insert a data set of the given type from a stream, reading line by line until a line is equal to the terminator and parsing each line as a real value, returning the list of values. | |
vec< real > | theoretica::readln (const std::string &terminator="") |
Insert a data set of the given type from standard input, reading line by line until a line is equal to the terminator and parsing each line as a real value, returning the list of values. | |
Optional header with utilities for input and output.