Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
alta
alta
Commits
8abedfd7
Commit
8abedfd7
authored
Aug 27, 2013
by
Laurent Belcour
Browse files
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
sources/core/common.h
View file @
8abedfd7
...
...
@@ -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
);
...
...
sources/core/function.h
View file @
8abedfd7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment