From 7a00f24d6ba3ee694ccd05ea19a9eea651aedb4e Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Tue, 24 Nov 2009 20:41:59 -0600 Subject: [PATCH] revert math.matrices.elimintion until someone fixes it properly --- basis/math/matrices/elimination/elimination.factor | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/basis/math/matrices/elimination/elimination.factor b/basis/math/matrices/elimination/elimination.factor index 4dc29ad951..371eb8a36c 100644 --- a/basis/math/matrices/elimination/elimination.factor +++ b/basis/math/matrices/elimination/elimination.factor @@ -52,8 +52,11 @@ SYMBOL: matrix [ first-col ] keep dup 1 + rows-from clear-col ; +: find-row ( row# quot -- i elt ) + [ rows-from ] dip find ; inline + : pivot-row ( col# row# -- n ) - rows-from swap '[ [ _ ] dip nth-row nth abs ] sort-with last ; + [ dupd nth-row nth zero? not ] find-row 2nip ; : (echelon) ( col# row# -- ) over cols < over rows < and [