diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-08-19 11:06:40 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-08-19 11:06:40 +0000 |
commit | a6d387a359354c8f75f9a0dfe623600e6a303c8c (patch) | |
tree | 1244e7a577402f86233b5d2e72e50562a3eb3c13 /demos | |
parent | 9466e5f94edbff1219cd48639fd0ef80e11b85a9 (diff) |
Various compilation fixes for MSVC 9. All tests compile but some
still fail at runtime in ei_aligned_free() (even without vectorization).
Diffstat (limited to 'demos')
-rw-r--r-- | demos/mandelbrot/mandelbrot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/mandelbrot/mandelbrot.cpp b/demos/mandelbrot/mandelbrot.cpp index c363b4543..fbf881b28 100644 --- a/demos/mandelbrot/mandelbrot.cpp +++ b/demos/mandelbrot/mandelbrot.cpp @@ -79,7 +79,7 @@ template<typename Real> void MandelbrotThread::render(int img_width, int img_hei // in which case we can stop iterating. int j = 0; typedef Eigen::Matrix<int, packetSize, 1> Packeti; - Packeti pix_iter = Packeti::zero(), // number of iteration per pixel in the packet + Packeti pix_iter = Packeti::Zero(), // number of iteration per pixel in the packet pix_dont_diverge; // whether or not each pixel has already diverged do { @@ -93,7 +93,7 @@ template<typename Real> void MandelbrotThread::render(int img_width, int img_hei } pix_dont_diverge = ((pzr.cwise().square() + pzi.cwise().square()) .eval() // temporary fix as what follows is not yet vectorized by Eigen - .cwise() <= Packet::constant(4)) + .cwise() <= Packet::Constant(4)) // the 4 here is not a magic value, it's a math fact that if // the square modulus is >4 then divergence is inevitable. .template cast<int>(); |