Skip to content
Snippets Groups Projects
  1. Feb 06, 2015
    • Steffen Müthing's avatar
      [Utility] Add infrastructure to handle operator->() for both lvalues and proxies · 7623a530
      Steffen Müthing authored
      If an iterator facade (like entity iterators) wants to allow the
      embedded implementation to return either an (internally stored)
      reference or a temporary object and expose these two behaviors to enable
      performance optimizations, operator->() needs special handling: If the
      implementation returns a reference, operator->() in the facade can
      simply return the address of the referenced object, but if the returned
      object is a temporary, we need to capture and store it in a helper
      object to make sure it outlives the member access.
      
      This patch adds a little helper function that tansparently handles both
      cases.
      7623a530
    • Steffen Müthing's avatar
      [ForLoop] Port ForLoop TMP to C++11 · 732ca75c
      Steffen Müthing authored
      The ForLoop TMP used to put a number of restrictions on the arguments to
      apply(), mainly due to the limited capabilities of C++01 wrt. to
      argument forwarding.
      
      But now we have C++11, so we can throw away all that awkward code and
      replace it with a single forwarding function that supports arbitrary
      numbers of arbitrary combinations of lvalues and rvalues - all hail
      variadic templates and perfect forwarding!
      732ca75c
  2. Jan 11, 2015
  3. Dec 29, 2014
  4. Dec 05, 2014
  5. Dec 02, 2014
  6. Dec 01, 2014
  7. Nov 28, 2014
  8. Nov 25, 2014
  9. Nov 21, 2014
  10. Nov 13, 2014
    • Jö Fahlke's avatar
      [doc][stackobject_to_shared_ptr()] Improve documentation. · 770f3ba9
      Jö Fahlke authored
      Add "@relatesalso null_deleter", this includes the documentation for the
      function with null_deleter but also leaves a standalone version.  Document
      what is so special about the shared_ptr the function returns.  Mention the
      #include needed to get the function.
      770f3ba9
  11. Nov 08, 2014
  12. Nov 07, 2014
  13. Nov 06, 2014
    • Oliver Sander's avatar
      Rip out the complete test for eigenValuesNonSym and replace it by the Rosser... · b9e712ac
      Oliver Sander authored
      Rip out the complete test for eigenValuesNonSym and replace it by the Rosser matrix test from fieldmatrixtest.cc
      
      The old test was complete nonsense: an implementation of some sort of strange
      undocumented shape function set that happened to need eigenvalues for something.
      Lots of undocumented code, and no checks at all whether the values obtained
      by eigenValuesNonSym actually make sense.
      
      Only, for the particular choice of parameters used, eigenValuesNonSym was never
      called.  Yes, you read this correctly: these hundreds of lines of code didn't
      actually test anything.
      
      The new test is copied form fieldmatrixtest.cc and adapted for DynamicMatrix
      types.  It computes eigenvalues of a given 8x8 matrix and compares with the known
      results.  Unfortunately, the test matrix is only symmetric.  Tests with more
      general matrices are left for another day.
      b9e712ac
    • Oliver Sander's avatar
      eigenValuesNonSym: Set size of the output vector before filling it · da604ca5
      Oliver Sander authored
      Rather than assuming the caller has set it to the correct size already.
      Setting the size in the method eigenValuesNonSym itself makes code
      more robust.  Plus, the time needed for that should be negligible
      compared to the actual eigenvalue computations.
      da604ca5
  14. Oct 29, 2014
  15. Oct 17, 2014
  16. Oct 14, 2014
  17. Oct 08, 2014
Loading