]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/math/matrices/elimination/elimination.factor
use reject instead of [ ... not ] filter.
[factor.git] / basis / math / matrices / elimination / elimination.factor
index c3beb6b0dd855f71c505ab6913fe0ca8ac3ffbc1..168274a12e82ed9b3d6f84b187c794e2405439d1 100644 (file)
@@ -70,7 +70,7 @@ SYMBOL: matrix
     [ 0 0 (echelon) ] with-matrix ;
 
 : nonzero-rows ( matrix -- matrix' )
-    [ [ zero? ] all? not ] filter ;
+    [ [ zero? ] all? ] reject ;
 
 : null/rank ( matrix -- null rank )
     echelon dup length swap nonzero-rows length [ - ] keep ;