31 return os << std::setw(13) << std::scientific << val;
36 std::ostream&
outputMatlab(std::ostream&
os,
const std::complex<T>& val) {
37 const T r = std::real(val),
59 os << std::setw(13) << std::scientific << r;
72 os << std::setw(13) << std::scientific << std::abs(i);
93 std::ostream&
info(std::ostream&
os)
const {
101 template<
typename F,
int dim>
107 std::ostream&
info(std::ostream&
os)
const {
117 template<
typename F,
int dim>
124 std::ostream&
info(std::ostream&
os)
const {
126 for(
uint i = 0; i < dim; ++i)
127 for(
uint j = 0; j < dim; ++j)
142 std::ostream&
info(std::ostream&
os)
const {
157 std::ostream&
info(std::ostream&
os)
const {
158 return os <<
"'" << val_ <<
"'";
161 const std::string val_;
177 std::ostream&
info(std::ostream&
os)
const {
178 bool nobool = !(
os.flags() & std::ios_base::boolalpha);
179 os << std::boolalpha << val_;
193 std::ostream&
info(std::ostream&
os)
const {
195 typename std::set<F>::const_iterator i = val_.begin();
196 for(; i != val_.end(); ) {
198 if (++i != val_.end())
os <<
", ";
203 const std::set<F> val_;
206 template<
class F,
class G>
212 std::ostream&
info(std::ostream&
os)
const {
214 typename std::map<F,G>::const_iterator i = val_.begin();
215 for(; i != val_.end(); ++i)
222 const std::map<F,G> val_;
231 std::ostream&
info(std::ostream&
os)
const {
233 typename std::vector<F>::const_iterator i = val_.begin();
234 for(; i != val_.end();) {
236 if (++i != val_.end())
os <<
", ";
241 const std::vector<F> val_;
251 std::ostream&
info(std::ostream&
os)
const {
252 std::queue<F> val = val_;
254 const uint size = val.size();
255 for(
uint i = 0; i < size; ++i) {
257 if (i < size - 1)
os <<
", ";
263 const std::queue<F> val_;
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::ostream & info(std::ostream &os) const
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
OutputMatlab(const std::queue< F > &val)
Constructor.
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Set< F > makeSet(uint n, const F &first,...)
std::ostream & outputMatlab(std::ostream &os, const T &val)