Skip to content
Snippets Groups Projects
  1. Jan 28, 2016
  2. Dec 17, 2015
  3. Dec 09, 2015
    • Elias Pipping's avatar
      Static size checks for FieldMatrix::rightmultiply · 0fa536e5
      Elias Pipping authored
      Previously, the following piece of code would compile and only
      only predictable fail at runtime with assertions enabled.
      
        Dune::FieldMatrix<double, 2, 3> A;
        // populate A
      
        Dune::FieldMatrix<double, 3, 2> B_bad;
        // populate B_bad
        A.rightmultiply(B_bad);
      
      It now fails to compile.
      0fa536e5
    • Elias Pipping's avatar
      Enable FieldMatrix::rightmultiply(DenseMatrix) · db1f4459
      Elias Pipping authored
      Previously, the following piece of code would compile but then enter a
      loop, typically leading to a segmentation fault
      
        Dune::FieldMatrix<double, 2, 3> A;
        // populate A
      
        Dune::DynamicMatrix<double> B_good(3, 3);
        // populate B_good
        A.rightmultiply(B_good);
      
      This would also happen for the following illegal extension of the above code
      
        Dune::FieldMatrix<double, 3, 2> B_bad;
        // populate B_bad
        A.rightmultiply(B_bad);
      
      The former now works as expected while the latter fails an assertion.
      db1f4459
  4. Sep 01, 2015
  5. Jul 11, 2015
  6. Oct 06, 2014
  7. Apr 16, 2014
    • Markus Blatt's avatar
      [g++-4.4] Fixes missing std::initializer_list::const_iterator for g++-4.4. · bd498e0d
      Markus Blatt authored
      With g++-4.4 I got the following errors:
      
      fmatrix.hh:106: error: no type named ‘const_iterator’ in ‘class std::initializer_list<std::initializer_list<int> >’
      
      Looking into the header there is indeed the const_iterator (demanded by the standard)
      missing. Therefore I refactored the code to use std::copy_n and thus am omitting the iterator
      type.
      
      At the same time I made the actual copying safer for the case that the initializer_list
      is of different size and people compile with -DNDEBUG. The assertion for the size is still
      left in there. Remove the assert or the size computation at your discretion.
      bd498e0d
  8. Apr 14, 2014
    • Oliver Sander's avatar
      Change conversion operators (operator K()) to return references instead of values · d6f00739
      Oliver Sander authored
      We simply return a reference to the internal memory instead of copying the object.
      This should save some copying when using FieldVector/FieldMatrix with non-trivial
      types.  Also, it fixes crashes I have experienced with the ADOL-C automatic
      differentiation toolbox [0].
      
      I hope that this patch doesn't have any nasty side effects.  I didn't see any
      so far.  Comments for this patch had been requested in FS 1449, and there have
      been no objections.
      
      [0] I have contacted the ADOL-C maintainer about this and he said the crashes
      are not really bugs in ADOL-C, but that it is simply very difficult to write
      a good operator-overloading AD program that can handle operator K returning
      values.
      d6f00739
  9. Apr 08, 2014
  10. Mar 22, 2014
  11. Mar 18, 2014
  12. Jan 15, 2014
  13. Dec 03, 2013
  14. Oct 02, 2013
  15. Oct 01, 2013
    • Martin Nolte's avatar
      [c++11] add support for C++11 constexpr · 45990b69
      Martin Nolte authored
      As decided on the developer meeting in Aachen, we support (but do not
      rely on) the C++11 keyword constexpr. This patch adds an m4-check for
      constexpr and a header (cxx11.hh) defining a macro DUNE_CONSTEXPR either
      as constexpr or empty (depending on the compiler support for it). It is
      then used in FieldVector and FieldMatrix on size, rows, and cols.
      45990b69
  16. Sep 27, 2013
  17. May 31, 2012
    • Oliver Sander's avatar
      Document each header file · 98fbc7b3
      Oliver Sander authored
      With the exception of mpicollectivecommunication.hh
      and propertymap.hh, which I didn't understand.
      
      [[Imported from SVN: r6784]]
      98fbc7b3
  18. Oct 13, 2011
  19. Oct 19, 2010
  20. Oct 18, 2010
  21. Oct 13, 2010
    • Christian Engwer's avatar
      * create a CRTP DenseMatrix class · 39d0a105
      Christian Engwer authored
      * factor out most of the FieldMatrix math methods
      
      missing: several functions oculd not me moved, as they require som
      		 kind of type promotion traits
      
      [[Imported from SVN: r6181]]
      39d0a105
  22. Oct 11, 2010
  23. Sep 08, 2010
  24. Jul 08, 2010
  25. Mar 13, 2010
  26. Feb 26, 2010
  27. Feb 01, 2010
  28. Jan 25, 2010
  29. Nov 09, 2009
    • Carsten Gräser's avatar
      *Fix bug in rightmultiply() · 31ef576c
      Carsten Gräser authored
      *Add const to *multiplyany()
      *Implement *multiplyany() for FieldMatrix<k,1,1>
      Thanks to Atgeirr Flø Rasmussen!
      
      [[Imported from SVN: r5704]]
      31ef576c
  30. Nov 04, 2009
  31. Oct 15, 2009
  32. Oct 13, 2009
  33. Oct 02, 2009
  34. Oct 01, 2009
  35. Sep 21, 2009
  36. Jun 16, 2009
    • Sven Marnach's avatar
      Make determinant work for singular matrices · e6057d5f
      Sven Marnach authored
      Note that the current implementation of the determinant is rather
      subobtimal.  While it is rather efficient, it is neither the most
      numerically stable way to compute the determinant, nor does it work
      for integers.  But I think it is much better than no implementation at
      all.
      
      [[Imported from SVN: r5549]]
      e6057d5f
Loading