[Flexiblesusy-commits] [FlexibleSUSY/FlexibleSUSY] 4a4098: Generalize SUM() macro

GitHub noreply at github.com
Fri Aug 11 09:26:28 BST 2017


  Branch: refs/heads/feature-flexible-sum
  Home:   https://github.com/FlexibleSUSY/FlexibleSUSY
  Commit: 4a409868fa8abee792cf647367f2c8da464fafdd
      https://github.com/FlexibleSUSY/FlexibleSUSY/commit/4a409868fa8abee792cf647367f2c8da464fafdd
  Author: Jae-hyeon Park <jhyeon at gmail.com>
  Date:   2017-08-11 (Fri, 11 Aug 2017)

  Changed paths:
    M src/sum.hpp
    M test/test_sum.cpp

  Log Message:
  -----------
  Generalize SUM() macro

so that the following compile:

   SUM(i,0,1, SUM(j,0,i, i+j));
   SUM(i,0,1, 2*(i+1)*(Eigen::Matrix<double,2,1>::Unit(i)));

This implementation of SUM() does not unroll loops.




More information about the Flexiblesusy-commits mailing list