April 10th, 2007, 9:43 am
tigerbill,I think Zemi has given an answer better than I can do. He has real-world experience with Matlab.But indeed the generated code is something to look at; I would investigate the complete 'pipeline' from Matlab code to dll. But fom a C++ viewpoint, the translated code should run faster unless something went wrong in translation. Is it possible to see the translated code in a readable form? Can you describe the algorithm in general maths terms? QuoteAnd besides, a 1000x1000 matrix inversion can very well be faster in Matlab (being passed directly to native BLAS routines) than a hand-rolled C++ versionYou mean, really inverting a matrix or solving a linear system Ax = b? In many cases A has a special structure and rolled solutions are not too bad.
Last edited by
Cuchulainn on April 9th, 2007, 10:00 pm, edited 1 time in total.