Skip to content

Commit

Permalink
create Eigen::VectorXd starting point
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Aug 20, 2016
1 parent f055592 commit f952661
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions meta/Constraint.m
Expand Up @@ -79,9 +79,8 @@
startPoint = startPoint <> If[i==1," ",", "] <> "MODELPARAMETER(" <>
CConversion`ToValidCSymbolString[parameters[[i]]] <> ")";
];
startPoint = "const double " <> name <> "[" <> dimStr <> "] = {" <>
startPoint <> " };\n";
Return[startPoint];
"Eigen::VectorXd " <> name <> "(" <> dimStr <> ");\n" <>
name <> " << " <> startPoint <> " ;\n"
];

SetModelParametersFromVector[model_String, vector_String, parameters_List] :=
Expand Down

0 comments on commit f952661

Please sign in to comment.