simonlynen / android_libs

some useful android libraries
67 stars 30 forks source link

Index issue in lapack *gemm #5

Open galassoj opened 9 years ago

galassoj commented 9 years ago

Thanks for your helpful library! I noticed that the Fortran port of the gemm functions weren't working as I expected though. Fortran has column-major ordering where as C has row-major ordering, therefore the calls won't work correctly unless the lda and ldb values passed into the function are the number of rows (instead of the number of columns as is more typical, I think). Is this the intention, or is this a bug?

simonlynen commented 9 years ago

Can you point me to the method you used? The c-code was generated using F2C which is the default that lapack is shipped with. I would therefore doubt that there is a bug.