Skip to content
Snippets Groups Projects
  1. Jan 19, 2016
  2. Jan 12, 2016
  3. Dec 17, 2015
  4. Dec 16, 2015
  5. Dec 14, 2015
  6. Dec 10, 2015
  7. 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
  8. Dec 08, 2015
    • Christian Engwer's avatar
      Merge branch 'feature/fix-mixed-precision-dense-matrix-vector-interface' into 'master' · 994902f9
      Christian Engwer authored
      Feature/fix mixed precision dense matrix vector interface
      
      In the current state if the dune-common dense LA I encountered several smaller bugs w.r.t. mixed precision computations:
      
        1. the value_type used to reset the vector during `DenseMatrix::mv` and `DenseMatrix::mtv` was the `value_type` of the matrix, but it has to be the `field_type` of the vector.
        1. the type of the scaling parameter alpha of `usmv`. `usmtv` and `ushtv` has the wrong type and must be the `field_type` of the result vector. For details see bdf74dca
      
      Besides this there were 2 minor issues I found while fixing the mixed precision case.
      
        1. the range checks we no longer performed
        1. if the tests are reenabled, they do not compile, because Robert added test for `FieldMatrix` with `std::vector` or C-array, which do not work, as we expect additional methods on the classes.
      
      I enabled the range checks and disabled the `std::vector` and C-array tests. We could work around this problem, by adding helper traits to determine the size and by this allowing us to special-case `std::vector` and C-array.
      
      See merge request !10
      994902f9
  9. Dec 07, 2015
  10. Dec 06, 2015
  11. Dec 03, 2015
  12. Dec 02, 2015
  13. Dec 01, 2015
  14. Nov 26, 2015
  15. Nov 25, 2015
Loading