Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58478 - sandbox/numeric_bindings/libs/numeric/bindings/lapack/test
From: thomas.klimpel_at_[hidden]
Date: 2009-12-21 11:26:00


Author: klimpel
Date: 2009-12-21 11:25:59 EST (Mon, 21 Dec 2009)
New Revision: 58478
URL: http://svn.boost.org/trac/boost/changeset/58478

Log:
Continue of regression tests update
Text files modified:
   sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gesv.cc | 3 ++-
   sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gesv2.cc | 8 ++++++--
   2 files changed, 8 insertions(+), 3 deletions(-)

Modified: sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gesv.cc
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gesv.cc (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gesv.cc 2009-12-21 11:25:59 EST (Mon, 21 Dec 2009)
@@ -5,7 +5,8 @@
 #include <cstddef>
 #include <iostream>
 #include <complex>
-#include <boost/numeric/bindings/lapack/gesv.hpp>
+#include <boost/numeric/bindings/lapack/driver/gesv.hpp>
+#include <boost/numeric/bindings/traits/ublas_vector.hpp>
 #include <boost/numeric/bindings/traits/ublas_matrix.hpp>
 #include <boost/numeric/bindings/traits/std_vector.hpp>
 #include "utils.h"

Modified: sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gesv2.cc
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gesv2.cc (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/lapack/test/ublas_gesv2.cc 2009-12-21 11:25:59 EST (Mon, 21 Dec 2009)
@@ -5,7 +5,8 @@
 #include <cstddef>
 #include <iostream>
 #include <vector>
-#include <boost/numeric/bindings/lapack/gesv.hpp>
+#include <boost/numeric/bindings/lapack/driver/gesv.hpp>
+#include <boost/numeric/bindings/traits/ublas_vector.hpp>
 #include <boost/numeric/bindings/traits/ublas_matrix.hpp>
 #include <boost/numeric/bindings/traits/std_vector.hpp>
 #include <boost/numeric/ublas/matrix_proxy.hpp>
@@ -51,7 +52,10 @@
   print_m (b, "B");
   cout << endl;
 
- lapack::gesv (a, b); // solving the system, b contains x
+// lapack::gesv (a, b); // solving the system, b contains x
+// no ipiv less version is currently provided, so fall back to using ipiv
+ std::vector<integer_t> ipiv(n);
+ lapack::gesv (a, ipiv, b); // solving the system, b contains x
 
   print_m (b, "X");
   cout << endl;


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