#6 Add in capabilities to input an array of structs containing Eigen matrices

Issue #6 new
Former user created an issue

I would like to pass in an array of structs where each element of the struct contained an eigen matrix into the mex gateway function. For example:

Structure definition & Initialisation in c++:

struct inputData{
      Matrix<double, Dynamic, Dynamic> dataPartA;
      Matrix<double, Dynamic, Dynamic> dataPartB;
}


inputData newdata[25];

this way I could pass the structure in from matlab and read it in using a for loop inside the mex gateway, rather than having to pass in each individual element in and out of the mex gateway function.

Comments (0)

  1. Log in to comment