Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58728 - sandbox/numeric_bindings/boost/numeric/bindings/ublas
From: rutger_at_[hidden]
Date: 2010-01-05 15:27:59


Author: rutger
Date: 2010-01-05 15:27:58 EST (Tue, 05 Jan 2010)
New Revision: 58728
URL: http://svn.boost.org/trac/boost/changeset/58728

Log:
fix for hermitian adaptor traits

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

Modified: sandbox/numeric_bindings/boost/numeric/bindings/ublas/hermitian.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/ublas/hermitian.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/ublas/hermitian.hpp 2010-01-05 15:27:58 EST (Tue, 05 Jan 2010)
@@ -57,18 +57,19 @@
 template< typename T, typename F, typename Id, typename Enable >
 struct adaptor< ublas::hermitian_adaptor< T, F >, Id, Enable > {
 
- typedef typename value< T >::type value_type;
- typedef typename property_insert< T,
+ typedef typename copy_const< Id, typename value< T >::type >::type value_type;
+ typedef typename property_insert< T,
+ mpl::pair< tag::value_type, value_type >,
         mpl::pair< tag::matrix_type, tag::hermitian >,
         mpl::pair< tag::data_side, typename convert_to< tag::data_side, F >::type >
>::type property_map;
 
     static std::ptrdiff_t size1( const Id& id ) {
- return id.size1();
+ return bindings::size1( id.data() );
     }
 
     static std::ptrdiff_t size2( const Id& id ) {
- return id.size2();
+ return bindings::size2( id.data() );
     }
 
     static value_type* begin_value( 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