Menu

where is implementation of gsl_matrix_memcpy?

Help
marcusmae
2006-08-21
2012-07-26
  • marcusmae

    marcusmae - 2006-08-21

    Hello,

    I'm building a managed wrapper for gsl_multifit_linear. Function gsl_matrix_memcpy is crushing, and at the moment I can't find why. I wonder, if there is any implementation of gsl_matrix_memcpy in gsl package? = Can't find anything except header for it. Is this function derived from somewhere else?

     
    • Jerry S.

      Jerry S. - 2006-08-21

      Welcome to the sometimes odd world of the gsl source code. macros are used to build many function names, including this one. gsl_matrix_memcpy is constructed in matrix/copy_source.c starting at line 20.

      If you find a bug in gsl please report it.

      Thanks,
      Jerry S.

       
    • marcusmae

      marcusmae - 2006-08-24

      Thanks Jerry, I've found the implementation now. But problem is still unsolved.

      I have imported to C# program two functions from gsllib_d.dll : gsl_matrix_memcpy and gsl_multifit_linear. It's interesting, that direct call to gsl_matrix_memcpy from managed program is successful, and through gsl_multifit_linear - is not : reports stack's corruption at the point of gsl_matrix_memcpy call! I will continue my attempts to resolve this, because I'm almost sure, that it's my fault, not a bug in gsl.

      I tried to use both debug and release modes - same result. Generally, all simple functions of gsl are nice working from managed code (tested gsl_asinh, gsl_acosh and etc.)

      This might be not a right place to post C# code, so here I've uploaded my current wrapping projects in MVS2005 :
      http://trenderstartpage.narod.ru/MultifitLinearWrapping.zip
      [17kb - without any of gsl's dlls]

      Any help is appreciated.

      Thanks,
      Mae Marcus.

       
MongoDB Logo MongoDB