Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59038 - sandbox/numeric_bindings/boost/numeric/bindings/ublas
From: rutger_at_[hidden]
Date: 2010-01-15 09:03:05


Author: rutger
Date: 2010-01-15 09:03:04 EST (Fri, 15 Jan 2010)
New Revision: 59038
URL: http://svn.boost.org/trac/boost/changeset/59038

Log:
fixed bug in binding to ublas matrix_column

Text files modified:
   sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_proxy.hpp | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_proxy.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_proxy.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/ublas/matrix_proxy.hpp 2010-01-15 09:03:04 EST (Fri, 15 Jan 2010)
@@ -74,7 +74,8 @@
         mpl::pair< tag::entity, tag::vector >,
         mpl::pair< tag::size_type<1>, std::ptrdiff_t >,
         mpl::pair< tag::data_structure, tag::linear_array >,
- mpl::pair< tag::stride_type<1>, tag::contiguous >
+ // TODO in case of column major, this could be contiguous
+ mpl::pair< tag::stride_type<1>, std::ptrdiff_t >
> property_map;
 
     static std::ptrdiff_t size1( const Id& id ) {
@@ -88,7 +89,7 @@
 
     static value_type* end_value( Id& id ) {
         return bindings::begin_value( id.data() ) +
- offset( id.data(), size1(id), id.index() );
+ offset( id.data(), bindings::size(id), id.index() );
     }
 
     static std::ptrdiff_t stride1( const Id& id ) {


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