Revision: 41159
http://brlcad.svn.sourceforge.net/brlcad/?rev=41159&view=rev
Author: brlcad
Date: 2010-10-29 04:58:23 +0000 (Fri, 29 Oct 2010)
Log Message:
-----------
let our jama mod play nicely with vmath
Modified Paths:
--------------
brlcad/trunk/src/other/tnt/jama_lu.h
Modified: brlcad/trunk/src/other/tnt/jama_lu.h
===================================================================
--- brlcad/trunk/src/other/tnt/jama_lu.h 2010-10-29 04:51:12 UTC (rev
41158)
+++ brlcad/trunk/src/other/tnt/jama_lu.h 2010-10-29 04:58:23 UTC (rev
41159)
@@ -6,7 +6,7 @@
#include <float.h>
//for min(), max() below
-#define NEAR_ZERO(val, epsilon)(((val) > -epsilon) && ((val) < epsilon))
+#define JAMA_NEAR_ZERO(val, epsilon)(((val) > -epsilon) && ((val) < epsilon))
namespace JAMA
@@ -139,7 +139,7 @@
// Compute multipliers.
- if ((j < m) && (NEAR_ZERO(LU_[j][j], DBL_MIN))) {
+ if ((j < m) && (JAMA_NEAR_ZERO(LU_[j][j], DBL_MIN))) {
for (int i = j+1; i < m; i++) {
LU_[i][j] /= LU_[j][j];
}
@@ -155,7 +155,7 @@
int isNonsingular () {
for (int j = 0; j < n; j++) {
- if (NEAR_ZERO(LU_[j][j], DBL_MIN))
+ if (JAMA_NEAR_ZERO(LU_[j][j], DBL_MIN))
return 0;
}
return 1;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits