* an empty value may be
* specified.
*
+ * Finally, the whole matrix can
+ * be multiplied with a common
+ * denominator to produce more
+ * readable output, even
+ * integers.
+ *
* This function
* may produce {\bf large} amounts of
* output if applied to a large matrix!
const unsigned int presicion=3,
bool scientific=true,
unsigned int width=0,
- const char * zero_string = " ") const;
+ const char * zero_string = " ",
+ const double denominator = 1.) const;
/**
* Exception
const unsigned int precision,
bool scientific,
unsigned int width,
- const char* zero_string) const
+ const char* zero_string,
+ const double denominator) const
{
Assert (cols != 0, ExcMatrixNotInitialized());
Assert (val != 0, ExcMatrixNotInitialized());
for (unsigned int j=0; j<n(); ++j)
if ((*cols)(i,j) != SparsityPattern::invalid_entry)
out << setw(width)
- << val[cols->operator()(i,j)] << ' ';
+ << val[cols->operator()(i,j)] * denominator << ' ';
else
out << setw(width) << zero_string << ' ';
out << endl;
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams