[gnumeric] PSEUDOINVERSE: set a more reasonable default threshold.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] PSEUDOINVERSE: set a more reasonable default threshold.
- Date: Sun, 5 May 2013 23:46:19 +0000 (UTC)
commit 36c222926249b5e37ef7b2eb30057d6f3d5e45a2
Author: Morten Welinder <terra gnome org>
Date: Sun May 5 19:42:06 2013 -0400
PSEUDOINVERSE: set a more reasonable default threshold.
plugins/fn-math/functions.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/fn-math/functions.c b/plugins/fn-math/functions.c
index 02bfec7..59ee9c2 100644
--- a/plugins/fn-math/functions.c
+++ b/plugins/fn-math/functions.c
@@ -2657,7 +2657,7 @@ gnumeric_mpseudominverse (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
GnmMatrix *A = NULL;
GnmMatrix *B = NULL;
GnmValue *res = NULL;
- gnm_float threshold = argv[1] ? value_get_as_float (argv[1]) : GNM_EPSILON;
+ gnm_float threshold = argv[1] ? value_get_as_float (argv[1]) : 256 * GNM_EPSILON;
A = gnm_matrix_from_value (argv[0], &res, ei->pos);
if (!A) goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]