#93 Numerical integration with function objects as integrands

Next_Release
closed
None
1
2013-05-24
2013-01-14
andy_panov
No

This patch enables function objects as integrands in numerical integration routines. Also it adds apply_functor templates to transform vectors and matrices with function objects.

1 Attachments

Discussion

  • Bogdan Cristea
    Bogdan Cristea
    2013-01-20

    • status: open --> accepted
     
  • Bogdan Cristea
    Bogdan Cristea
    2013-01-20

    • assigned_to: Bogdan Cristea
     
  • Bogdan Cristea
    Bogdan Cristea
    2013-01-20

    Changes commited in rev 1929. Please update and retest.

     
  • andy_panov
    andy_panov
    2013-01-20

    Done. Gtests passed with ACML and FFTW3 on MSVC. No regression found with old tests.

    As a side note - static library is the only option for ITPP on windows. MSVC linker exports nothing by default, so in order to support shared builds on windows one will have to either add _decl_spec(dll_import) for every class/function to import or cheat with dumpbin /LINKERMEMBER as described here - (http://stackoverflow.com/questions/225432/export-all-symbols-when-creating-a-dll). So, I guess it would be better to disable shared builds on windows by default:
    if(WIN32)
    option(SHARED_LIB "Building IT++ as shared library" off)
    else()
    option(SHARED_LIB "Building IT++ as shared library" on)
    endif()

     
  • Bogdan Cristea
    Bogdan Cristea
    2013-01-20

    Hi Andy
    Actually this is done on purpose because I am hoping to solve this issue soon. We need to export every class/function with a compiler variable, say ITPP_EXPORT and to include an export.h header. I am able to take care of generating the export.h header, but I need some help for exporting then testing the shared library on Windows. A feature request is already opened.
    regards
    Bogdan

     
  • andy_panov
    andy_panov
    2013-01-20

    That will be great. I'll be glad to help with it.

    PS explicit template instantiations can be tricky too. Sometimes microsoft compiler optimizes away imported stuff.

     
    Last edit: andy_panov 2013-01-20
  • Bogdan Cristea
    Bogdan Cristea
    2013-01-21

    I have just committed the code needed to handle symbols import/export. Please see feature request #84.
    Indeed, templates could be an issue when building a shared library with MS Visual Studio C++.

     
  • Bogdan Cristea
    Bogdan Cristea
    2013-05-24

    • status: accepted --> closed