/**
* Compute coefficients recursively.
*/
- static void compute_coefficients (unsigned int k);
+ static void compute_coefficients (const unsigned int k);
/**
* Get coefficients for
#include <base/function_time.h>
-FunctionTime::FunctionTime(double initial_time)
+FunctionTime::FunctionTime(const double initial_time)
:
time(initial_time)
{}
void TableHandler::set_precision (const std::string &key,
- unsigned int precision)
+ const unsigned int precision)
{
Assert(columns.count(key), ExcColumnNotExistent(key));
columns[key].precision=precision;
void TableHandler::set_scientific (const std::string &key,
- bool scientific)
+ const bool scientific)
{
Assert(columns.count(key), ExcColumnNotExistent(key));
columns[key].scientific=scientific;
template
-void TableHandler::add_value(const std::string &, double);
+void TableHandler::add_value(const std::string &, const double);
template
-void TableHandler::add_value(const std::string &, int);
+void TableHandler::add_value(const std::string &, const int);
template
-void TableHandler::add_value(const std::string &, unsigned int);
+void TableHandler::add_value(const std::string &, const unsigned int);
template
-void TableHandler::add_value(const std::string &, std::string);
+void TableHandler::add_value(const std::string &, const std::string);
/* ---------------------- template and inline functions ------------------- */
inline
-BlockIndices::BlockIndices (unsigned int n_blocks)
+BlockIndices::BlockIndices (const unsigned int n_blocks)
:
n_blocks(n_blocks),
start_indices(n_blocks+1)
template <typename Number>
inline
-Vector<Number>&
-BlockVector<Number>::block(unsigned int i)
+Vector<Number> &
+BlockVector<Number>::block (const unsigned int i)
{
Assert(i<num_blocks, ExcIndexRange(i,0,num_blocks));
template <typename Number>
inline
-const Vector<Number>&
-BlockVector<Number>::block(unsigned int i) const
+const Vector<Number> &
+BlockVector<Number>::block (const unsigned int i) const
{
Assert(i<num_blocks, ExcIndexRange(i,0,num_blocks));
FullMatrix<number>::print_formatted (std::ostream &out,
const unsigned int precision,
const bool scientific,
- unsigned int width,
+ const unsigned int width_,
const char *zero_string,
const double denominator) const
{
+ unsigned int width = width_;
+
Assert ((val != 0) || (dim_range+dim_image==0),
ExcInternalError());