diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-12-30 18:07:39 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-12-30 18:07:39 +0000 |
commit | e503945c666dc28f1a806ba1a2deaa587a836200 (patch) | |
tree | f3971d4a8c9f4eaa4c508d8ffc6698fd31b6a8f6 /lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.c | |
parent | 853b46c522fa48a2c476fbfd0771a0da7aa9efc0 (diff) |
cond
Diffstat (limited to 'lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.c')
-rw-r--r-- | lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.c b/lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.c index ae437d2..f4ae0f6 100644 --- a/lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.c +++ b/lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.c | |||
@@ -1267,3 +1267,25 @@ int stepD(DVEC(x),DVEC(y)) { | |||
1267 | OK | 1267 | OK |
1268 | } | 1268 | } |
1269 | 1269 | ||
1270 | //////////////////// cond ///////////////////////// | ||
1271 | |||
1272 | int condF(FVEC(x),FVEC(y),FVEC(lt),FVEC(eq),FVEC(gt),FVEC(r)) { | ||
1273 | REQUIRES(xn==yn && xn==ltn && xn==eqn && xn==gtn && xn==rn ,BAD_SIZE); | ||
1274 | DEBUGMSG("condF") | ||
1275 | int k; | ||
1276 | for(k=0;k<xn;k++) { | ||
1277 | rp[k] = xp[k]<yp[k]?ltp[k]:(xp[k]>yp[k]?gtp[k]:eqp[k]); | ||
1278 | } | ||
1279 | OK | ||
1280 | } | ||
1281 | |||
1282 | int condD(DVEC(x),DVEC(y),DVEC(lt),DVEC(eq),DVEC(gt),DVEC(r)) { | ||
1283 | REQUIRES(xn==yn && xn==ltn && xn==eqn && xn==gtn && xn==rn ,BAD_SIZE); | ||
1284 | DEBUGMSG("condD") | ||
1285 | int k; | ||
1286 | for(k=0;k<xn;k++) { | ||
1287 | rp[k] = xp[k]<yp[k]?ltp[k]:(xp[k]>yp[k]?gtp[k]:eqp[k]); | ||
1288 | } | ||
1289 | OK | ||
1290 | } | ||
1291 | |||