Created
August 24, 2012 23:02
-
-
Save Osse/3456879 to your computer and use it in GitHub Desktop.
Patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/curvematrix.cpp b/src/core/curvematrix.cpp | |
index c26090a..2a7f3ce 100644 | |
--- a/src/core/curvematrix.cpp | |
+++ b/src/core/curvematrix.cpp | |
@@ -340,15 +340,15 @@ void CurveMatrix::inv_inplace_ATLAS(){ | |
//a fast implementation using ATLAS | |
//this may crash if the library is not found or if it is compiled for the wrong machine in that case revert to the old and slow implementation | |
//ipiv already has the size of M | |
- if (!square()) throw CurveMatrixerr::not_square(); | |
-try{ | |
- atlas::lu_factor (M, ipiv); // alias for getrf() | |
- atlas::lu_invert (M, ipiv); // alias for getri() | |
- } | |
- catch(...){ | |
- std::cout <<"inv_inplace_ATLAS failed....reverting to slower native implementation, check existence of ATLAS library!\n"; | |
+// if (!square()) throw CurveMatrixerr::not_square(); | |
+// try{ | |
+// atlas::lu_factor (M, ipiv); // alias for getrf() | |
+// atlas::lu_invert (M, ipiv); // alias for getri() | |
+// } | |
+// catch(...){ | |
+// std::cout <<"inv_inplace_ATLAS failed....reverting to slower native implementation, check existence of ATLAS library!\n"; | |
inv_inplace_slow(); | |
- } | |
+ // } | |
} | |
void CurveMatrix::QRdecomp(CurveMatrix& Q,CurveMatrix& R)const{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment