Commit 8abedfd7 authored by Laurent Belcour's avatar Laurent Belcour

Updating. Found why the vec was causing a core dump in some cases. It comes

from the fact that std::vector has no inheritance mechanism.
parent 8b622db3
......@@ -28,11 +28,8 @@ class vec : public std::vector<double>
{
assign(dim, 0.0) ;
}
virtual ~vec()
{
}
//! \brief get a subpart of the vector
//! \brief get a subpart of the vector
vec subvector(int start, int n) const
{
vec res(n);
......
......@@ -291,6 +291,7 @@ class compound_function: public nonlinear_function, public std::vector<nonlinear
{
nb_params += this->at(i)->nbParameters();
}
return nb_params;
}
//! Get the vector of parameters for the function
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment