Gael Guennebaud 58146be99b bug #1004: one more rewrite of LinSpaced for floating point numbers to guarantee both interpolation and monotonicity.
This version simply does low+i*step plus a branch to return high if i==size-1.
Vectorization is accomplished with a branch and the help of pinsertlast.
Some quick benchmark revealed that the overhead is really marginal, even when filling small vectors.
2016-10-25 16:53:09 +02:00
..
2016-10-14 17:16:28 +02:00
2016-07-06 14:07:32 +02:00
2016-01-24 15:50:59 +01:00