mtl2lapack bug
Rene van Paassen <[email protected]>
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, First of all, we greatly appreciate mtl. Using orgqr from the mtl2lapack interface on Redhat Linux 7.3, I got a small compile error (version mtl-2.1.2-21). I think this problem is not platform-specific, and should show up on more platforms. Anyway, the fix is attached. Greetings, René -- M.M. (René) van Paassen [email protected] Assistant Professor tel. +31 15 278 5370 Faculty of Aerospace Engineering fax. +31 15 278 6480 Kluijverweg 1, NL-2629 HS Delft Delft University of Technology >>>>>>>>>>>> http://www.cs.lr.tudelft.nl <<<<<<<<<<<< _______________________________________________ This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
mtl2lapack.patch
(text/x-patch, 497 B)
diff -Naur mtl-2.1.2-21.orig/mtl/mtl2lapack.h mtl-2.1.2-21/mtl/mtl2lapack.h
--- mtl-2.1.2-21.orig/mtl/mtl2lapack.h Sat Jul 6 17:48:35 2002
+++ mtl-2.1.2-21/mtl/mtl2lapack.h Thu Jan 30 12:27:28 2003
@@ -1125,8 +1125,9 @@
int m = a.nrows();
int n = a.ncols();
int info;
+ typedef typename VectorT::value_type VT;
mtl_lapack_dispatch::orgqr(m, n, tau.size(), a.data(), lda,
- tau.data(), info);
+ const_cast<VT*>(tau.data()), info);
return info;
}