Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.
1464 Discussions

Hello. How to pass and return a C++ parameters type defined at interface? Such as eigen’s MatrixXd t

MoonHasSevenColor
711 Views

How to pass and return a C++ parameters type defined at interface? Such as eigen’s MatrixXd type. Thank you.

0 Kudos
3 Replies
Aznie_Intel
Moderator
667 Views

Hi MoonHasSevenColor,

 

Thanks for reaching out.

 

We found an external repo (not owned by Intel) that may assist your use cases to use Eigen in SGX projects, make sure the listed files below are all visible during compilation.

  • shim.hpp,
  • Eigen
  • emmintrin.h
  • mmintrin.h
  • mm_malloc.h
  • xmmintrin.h

 

Meanwhile, you can check the Pass-by-value and Pass-by-reference to pass the Eigen C++ parameters. Here is also a reference for Writing Functions Taking Eigen Types as Parameters.

 

Hope that the information provided is useful for you. Please let us know if you have any questions.



Regards,

Aznie


0 Kudos
Aznie_Intel
Moderator
576 Views

Hi MoonHasSevenColor,


This thread will no longer be monitored since we have provided information. If you need any additional information from Intel, please submit a new question.



Regards,

Aznie



0 Kudos
MoonHasSevenColor
515 Views

Thank you for your nice help and reply, I would try the methods . Have a nice day!

0 Kudos
Reply