mex-it
mex-it copied to clipboard
mex-it.h fails with Matrices which are NOT of type double
Hi,
mex-it.h fails when using matrices which are not of type double.
I guess the error is on line 356:
sizeof(double)
must be replaced by sizeof(T)
A similar error needs to be fixed on line 380.
Else everything works fine, thanks for this VERY handy function!
Cheers,
Fab
Thanks. Yes, I mentioned it only worked for type double but figured it wouldn't be too much effort to extend it beyond. Thanks for offering a solution. I'll try to work it into next rev