Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56407 - sandbox/statistics/matrix_view/libs/matrix_view/example
From: erwann.rogard_at_[hidden]
Date: 2009-09-26 20:10:39


Author: e_r
Date: 2009-09-26 20:10:38 EDT (Sat, 26 Sep 2009)
New Revision: 56407
URL: http://svn.boost.org/trac/boost/changeset/56407

Log:
md
Removed:
   sandbox/statistics/matrix_view/libs/matrix_view/example/row_iterator.cpp
Text files modified:
   sandbox/statistics/matrix_view/libs/matrix_view/example/transform_column.cpp | 4 ++--
   sandbox/statistics/matrix_view/libs/matrix_view/example/transform_column.h | 6 +++---
   2 files changed, 5 insertions(+), 5 deletions(-)

Deleted: sandbox/statistics/matrix_view/libs/matrix_view/example/row_iterator.cpp
==============================================================================
--- sandbox/statistics/matrix_view/libs/matrix_view/example/row_iterator.cpp 2009-09-26 20:10:38 EDT (Sat, 26 Sep 2009)
+++ (empty file)
@@ -1,92 +0,0 @@
-///////////////////////////////////////////////////////////////////////////////
-// view::example::row_iterator.cpp //
-// //
-// (C) Copyright 2009 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-///////////////////////////////////////////////////////////////////////////////
-
-/*
-#include <vector>
-#include <list>
-#include <algorithm>
-#include <iterator>
-#include <boost/range.hpp>
-#include <boost/foreach.hpp>
-#include <boost/assign/std/vector.hpp>
-#include <boost/iterator/transform_iterator.hpp>
-#include <boost/matrix_view/iterator/row_iterator.hpp>
-#include <libs/matrix_view/example/row_iterator.h>
-
-void example_row_iterator(std::ostream& out)
-{
- out << "-> example_row_iterator" << std::endl;
-
- using namespace boost;
- typedef int val_;
- typedef std::vector<val_> vec_;
- typedef range_size<vec_>::type size_;
- int stride = 2;
-
- {
- typedef range_iterator<vec_>::type it_;
- typedef view::row_iterator<it_> row_it_;
- typedef view::row_iterator<it_> row_it_;
-
- vec_ vec;
- vec_ vecc;
- {
- using namespace boost::assign;
- vec += 0,1,2,3,4,5,6,7,8;
- }
- //important to use the const qualifier
- it_ base_b = boost::begin(vec);
- it_ base_e = boost::end(vec);
- row_it_ b(base_b,stride);
- row_it_ i = b;
- row_it_ e = view::make_end_row_iterator(
- base_b,base_e,stride
- );
- while(i<e){
- row_it_::value_type r = *i;
- std::copy(boost::begin(r),boost::end(r),back_inserter(vecc));
- ++i;
- }
- {
- size_ i = 0;
- BOOST_FOREACH(const val_& x, vecc){
- x == vec[i];
- ++i;
- }
- }
- }
-
- {
- typedef vec_::const_iterator it_;
- typedef view::row_iterator<it_> row_it_;
- typedef view::row_iterator<it_> row_it_;
-
- vec_ vec,vec_a;
- {
- using namespace boost::assign;
- vec += 0,1,2,3,4,5,6,7;
- }
- it_ base_b = boost::begin(vec);
- it_ base_e = boost::end(vec);
- row_it_ b(base_b,stride);
- out << "std::distance(b,e) : ";
-
- for(it_ base_i = base_b; base_i<base_e; base_i++){
- row_it_ e = view::make_end_row_iterator(
- base_b,base_i,stride
- );
- out << std::distance(b,e) << ' ';
- }
- }
-
-
- out << "<-" << std::endl;
-}
-
-*/

Modified: sandbox/statistics/matrix_view/libs/matrix_view/example/transform_column.cpp
==============================================================================
--- sandbox/statistics/matrix_view/libs/matrix_view/example/transform_column.cpp (original)
+++ sandbox/statistics/matrix_view/libs/matrix_view/example/transform_column.cpp 2009-09-26 20:10:38 EDT (Sat, 26 Sep 2009)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// matrix_view::example::transform_column.cpp //
+// view::example::transform_column.cpp //
 // //
 // (C) Copyright 2009 Erwann Rogard //
 // Use, modification and distribution are subject to the //
@@ -42,7 +42,7 @@
         }
         for(unsigned j = 0; j<n_col; j++){
             column.clear();
- matrix_view::copy_column<n_col>(
+ view::copy_column<n_col>(
                 boost::begin(vec),
                 boost::end(vec),
                 j,

Modified: sandbox/statistics/matrix_view/libs/matrix_view/example/transform_column.h
==============================================================================
--- sandbox/statistics/matrix_view/libs/matrix_view/example/transform_column.h (original)
+++ sandbox/statistics/matrix_view/libs/matrix_view/example/transform_column.h 2009-09-26 20:10:38 EDT (Sat, 26 Sep 2009)
@@ -1,12 +1,12 @@
 ///////////////////////////////////////////////////////////////////////////////
-// matrix_view::example::transform_column.h //
+// view::example::transform_column.h //
 // //
 // Copyright 2009 Erwann Rogard. Distributed under the Boost //
 // Software License, Version 1.0. (See accompanying file //
 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
 //////////////////////////////////////////////////////////////////////////////
-#ifndef LIBS_MATRIX_VIEW_EXAMPLE_TRANSFORM_COLUMN_H_ER_2009
-#define LIBS_MATRIX_VIEW_EXAMPLE_TRANSFORM_COLUMN_H_ER_2009
+#ifndef LIBS_VIEW_EXAMPLE_TRANSFORM_COLUMN_H_ER_2009
+#define LIBS_VIEW_EXAMPLE_TRANSFORM_COLUMN_H_ER_2009
 #include <ostream>
 
 void example_transform_column(std::ostream&);


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