[gnumeric] Pseudo-inverse: non square is fine.



commit 5d948f8a4ea4b18060be17724bdfd7af955792f0
Author: Morten Welinder <terra gnome org>
Date:   Tue Apr 30 21:57:32 2013 -0400

    Pseudo-inverse: non square is fine.
    
    (But the underlying code ins't working great for that yet.)

 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 cd04fcb..02bfec7 100644
--- a/plugins/fn-math/functions.c
+++ b/plugins/fn-math/functions.c
@@ -2662,7 +2662,7 @@ gnumeric_mpseudominverse (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
        A = gnm_matrix_from_value (argv[0], &res, ei->pos);
        if (!A) goto out;
 
-       if (A->cols != A->rows || gnm_matrix_is_empty (A)) {
+       if (gnm_matrix_is_empty (A)) {
                res = value_new_error_VALUE (ei->pos);
                goto out;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]