Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67048 - sandbox/numeric_bindings/libs/numeric/bindings/test
From: thomas.klimpel_at_[hidden]
Date: 2010-12-05 17:19:24


Author: klimpel
Date: 2010-12-05 17:19:22 EST (Sun, 05 Dec 2010)
New Revision: 67048
URL: http://svn.boost.org/trac/boost/changeset/67048

Log:
updated test_interlace
Text files modified:
   sandbox/numeric_bindings/libs/numeric/bindings/test/interlace.cpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: sandbox/numeric_bindings/libs/numeric/bindings/test/interlace.cpp
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/test/interlace.cpp (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/test/interlace.cpp 2010-12-05 17:19:22 EST (Sun, 05 Dec 2010)
@@ -8,7 +8,8 @@
 
 #include <iostream>
 #include <vector>
-#include <boost/numeric/bindings/traits/detail/utils.hpp>
+#include <boost/numeric/bindings/detail/complex_utils.hpp>
+#include <boost/numeric/bindings/std/vector.hpp>
 
 int test_inshuffle(std::size_t n) {
   std::vector<std::size_t> data(2*n);
@@ -16,7 +17,7 @@
     data[i] = 2*i+1;
     data[i+n] = 2*i;
   }
- boost::numeric::bindings::traits::detail::inshuffle(&data[0],n);
+ boost::numeric::bindings::detail::inshuffle(&data[0],n);
   for (std::size_t i = 1; i < 2*n; ++i)
     if (data[i-1]+1 != data[i]) {
       std::cout << "Test inshuffle for n=" << n << std::endl;
@@ -33,7 +34,7 @@
   std::vector<std::complex<double> > data(n);
   for (std::size_t i = 0; i < n; ++i)
     data[i] = std::complex<double>(2*i,2*i+1);
- boost::numeric::bindings::traits::detail::interlace(&data[0],n);
+ boost::numeric::bindings::detail::interlace(data);
   for (std::size_t i = 0; i < n; ++i)
     if (data[i].real() != i || data[i].imag() != i+n) {
       std::cout << "Test interlace for n=" << n << std::endl;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk