}
else
{
- (*os) << ' ' << step << ' ';
+ (*os) << ' ' << step;
for (unsigned int i=0;i<vectors.size();++i)
- vectors(i)->print(*os);
+ for (unsigned int j=0;j<vectors(i)->size();++j)
+ (*os) << ' ' << (*vectors(i))(j);
(*os) << std::endl;
}
return *this;
int main()
{
FullMatrix<double> matrix(2);
- matrix(0,0) = 0.;
- matrix(1,1) = 0.;
+ matrix(0,0) = 1.;
+ matrix(1,1) = 1.;
matrix(0,1) = 31.4;
matrix(1,0) = -31.4;
{
if (this->notifications.test(Events::initial) || this->notifications.test(Events::new_timestep_size))
{
- m.equ(timestep_data->step, *matrix);
+ m.equ(-timestep_data->step, *matrix);
for (unsigned int i=0;i<m.m();++i)
m(i,i) += 1.;
- m.print_formatted(std::cerr);
}
this->notifications.clear();
unsigned int i = in.find("Previous time");
for (unsigned int i=0;i<m.m();++i)
m(i,i) += 1.;
m.gauss_jordan();
- m.print_formatted(std::cerr);
}
this->notifications.clear();
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