Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58831 - sandbox/numeric_bindings/libs/numeric/bindings/lapack/test
From: rutger_at_[hidden]
Date: 2010-01-09 07:26:25


Author: rutger
Date: 2010-01-09 07:26:24 EST (Sat, 09 Jan 2010)
New Revision: 58831
URL: http://svn.boost.org/trac/boost/changeset/58831

Log:
updates to lapack regressions

Text files modified:
   sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/convenience.h | 4 ----
   sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gbsv.cpp | 5 +++--
   2 files changed, 3 insertions(+), 6 deletions(-)

Modified: sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/convenience.h
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/convenience.h (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/convenience.h 2010-01-09 07:26:24 EST (Sat, 09 Jan 2010)
@@ -21,10 +21,6 @@
 #include <boost/numeric/ublas/matrix_proxy.hpp>
 #include <boost/numeric/ublas/vector_proxy.hpp>
 
-// included to implicitly convert a vector to an nx1 matrix
-// so that it is compatible with lapack binding
-#include <boost/numeric/bindings/ublas/vector2.hpp>
-
 namespace ublas = boost::numeric::ublas;
 namespace bindings = boost::numeric::bindings;
 

Modified: sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gbsv.cpp
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gbsv.cpp (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gbsv.cpp 2010-01-09 07:26:24 EST (Sat, 09 Jan 2010)
@@ -2,6 +2,7 @@
 #include <boost/numeric/bindings/std/vector.hpp>
 #include <boost/numeric/bindings/ublas/banded.hpp>
 #include <boost/numeric/bindings/ublas/vector.hpp>
+#include <boost/numeric/bindings/bandwidth.hpp>
 #include <boost/numeric/bindings/lapack/computational/gbtrf.hpp>
 #include <boost/numeric/bindings/lapack/computational/gbtrs.hpp>
 #include <vector>
@@ -21,8 +22,8 @@
 {
   // if the matrix has kl lower and ku upper diagonals, then we should have
   // allocated kl lower and kl+ku upper diagonals
- integer_t const kl = traits::matrix_lower_bandwidth (a);
- integer_t const ku = traits::matrix_upper_bandwidth (a) - kl;
+ integer_t const kl = bindings::bandwidth_lower (a);
+ integer_t const ku = bindings::bandwidth_upper (a) - kl;
   std::vector<integer_t> piv(a.size1());
   int ret = lapack::gbtrf(bindings::size_row(a), bindings::size_column(a), kl, ku, a, piv);
   if (ret < 0) {


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