[gnumeric] forgotten line of code in gnm_matrix_eigen_max_index



commit 1e18d7a5324fcd6fc70b4be3c5be85f633599391
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Mon May 3 09:10:04 2010 -0600

    forgotten line of code in gnm_matrix_eigen_max_index

 src/mathfunc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/mathfunc.c b/src/mathfunc.c
index 5568041..f4acfb5 100644
--- a/src/mathfunc.c
+++ b/src/mathfunc.c
@@ -7806,6 +7806,8 @@ gnm_matrix_eigen_max_index (gnm_float *row, guint row_n, guint size)
 	if (res >= size)
 		return (size - 1);
 
+	max = gnm_abs (row[res]);
+
 	for (i = res + 1; i < size; i++)
 		if (gnm_abs (row[i]) > max) {
 			res = i;



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