Skip to content

Issue with index access in OpaqueConversion #6

Description

@s-trinh

Hi,

I think there are multiple issues in OpaqueConversion.cpp, for instance:

void Base_MatrixXd_fromIntermediate(base::MatrixXd& result, const wrappers::MatrixXd& cppMarshall)
{
/*Add user code for this conversion*/
for(int i = 0; i < cppMarshall.rows; i++)
{
for(int j=0; j < cppMarshall.cols; j++)
{
result(i,j)=cppMarshall.data[j*4+i];
}
}
}

The index calculation looks not correct. There are multiple other locations in the file where j*4+i seems to be used wrongly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions