Skip to content
Snippets Groups Projects
Commit 079aabf9 authored by jcarpent's avatar jcarpent
Browse files

[C++][Fix bug] Use the right constructor for fixed-row and fixed-col matrix

parent 5b9029e7
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ namespace eigenpy
{
static MatType & construct(void*storage,int /*r*/,int c)
{
return * new(storage) MatType(c);
return * new(storage) MatType(R,c);
}
};
......@@ -117,7 +117,7 @@ namespace eigenpy
{
static MatType & construct(void*storage,int r,int /*c*/)
{
return * new(storage) MatType(r);
return * new(storage) MatType(r,C);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment