Skip to content
Snippets Groups Projects
  • Sander, Oliver's avatar
    87e1da6f
    Find std math functions by ADL · 87e1da6f
    Sander, Oliver authored
    ADOL-C implements most standard math functions for its
    'adouble' type, and they are not in the namespace 'std'.
    dune-fufem contains a file adolcnamespaceinjections.hh
    which imports some of these methods into the 'std'
    namespace, but that is not the proper way to do it.
    Rather, they should be found by argument-dependent
    lookup (ADL), that is
    
      using std::sin;
      auto v = sin(x);
    87e1da6f
    History
    Find std math functions by ADL
    Sander, Oliver authored
    ADOL-C implements most standard math functions for its
    'adouble' type, and they are not in the namespace 'std'.
    dune-fufem contains a file adolcnamespaceinjections.hh
    which imports some of these methods into the 'std'
    namespace, but that is not the proper way to do it.
    Rather, they should be found by argument-dependent
    lookup (ADL), that is
    
      using std::sin;
      auto v = sin(x);
gramschmidtsolver.hh 4.60 KiB