Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49128 - sandbox/boost/numeric/bindings/traits
From: thomas.klimpel_at_[hidden]
Date: 2008-10-03 08:37:30


Author: klimpel
Date: 2008-10-03 08:37:30 EDT (Fri, 03 Oct 2008)
New Revision: 49128
URL: http://svn.boost.org/trac/boost/changeset/49128

Log:
compile fix
Text files modified:
   sandbox/boost/numeric/bindings/traits/tnt.hpp | 16 ++++++----------
   1 files changed, 6 insertions(+), 10 deletions(-)

Modified: sandbox/boost/numeric/bindings/traits/tnt.hpp
==============================================================================
--- sandbox/boost/numeric/bindings/traits/tnt.hpp (original)
+++ sandbox/boost/numeric/bindings/traits/tnt.hpp 2008-10-03 08:37:30 EDT (Fri, 03 Oct 2008)
@@ -92,11 +92,9 @@
     typedef typename detail::generate_const<M,T>::type* pointer;
 
     static pointer storage (matrix_type& m) { return m[0]; }
- static int size1 (matrix_type& m) { return m.dim1(); }
- static int size2 (matrix_type& m) { return m.dim2(); }
- static int storage_size (matrix_type& m) {
- return size1 (m) * size2 (m);
- }
+ static int num_rows (matrix_type& m) { return m.dim1(); }
+ static int num_columns (matrix_type& m) { return m.dim2(); }
+ static int storage_size (matrix_type& m) { return m.dim1() * m.dim2(); }
     static int leading_dimension (matrix_type& m) { return m.dim2(); }
   };
 
@@ -119,11 +117,9 @@
     typedef typename detail::generate_const<M,T>::type* pointer;
 
     static pointer storage (matrix_type& m) { return &m(1, 1); }
- static int size1 (matrix_type& m) { return m.dim1(); }
- static int size2 (matrix_type& m) { return m.dim2(); }
- static int storage_size (matrix_type& m) {
- return size1 (m) * size2 (m);
- }
+ static int num_rows (matrix_type& m) { return m.dim1(); }
+ static int num_columns (matrix_type& m) { return m.dim2(); }
+ static int storage_size (matrix_type& m) { return m.dim1() * m.dim2(); }
     static int leading_dimension (matrix_type& m) { return m.dim1(); }
   };
 


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