Is it correct that the assignmentCostCalulator class is empty after the TOMHT code gen?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Joost
el 25 de Nov. de 2021
Respondida: Prashant Arora
el 30 de Nov. de 2021
Hello,
I noticed that after a code gen of the matlab TOMHT tracker with IMM that the AssignmentCostCalulator class is completely empty, except for an empty constructer and destructor. I was wondering if this is correct or if something went wrong. The matlab Coder app found no runtime errors.
Kind regards,
Joost
0 comentarios
Respuesta aceptada
Prashant Arora
el 30 de Nov. de 2021
Hi Joost,
I suspect that the code generation may have inlined all the code from the AssignmentCostCalculator class for speed/performance. The code generation configuration provides options to control inlining of code provided by MathWorks as well as code written by users.
See the InlineBetweenMathWorksFunctions property. If you set this to "Readability", can you please verify if you observe a non-empty class?
My initial guess is that this is an expected behavior from code generation, but I'll be happy to investigate further if you could provide more information regarding your use-case (for example, do you intend to re-use the code from AssignmentCostCalculator in your custom C++ code?), an example of your entry point function for code generation and the MATLAB release you are using.
Thanks,
Prashant
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Construct and Work with Object Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!