]> gitweb.factorcode.org Git - factor.git/commitdiff
make m^n private
authorprunedtree <prunedtree@gmail.com>
Fri, 12 Jun 2009 08:29:34 +0000 (01:29 -0700)
committerprunedtree <prunedtree@gmail.com>
Fri, 12 Jun 2009 08:29:34 +0000 (01:29 -0700)
basis/math/matrices/matrices.factor

index 61e98ee4446f337c04459d59cfc9f051b73ac55f..21d9a97adf04e98959538b135a10266d50f3b1e2 100644 (file)
@@ -61,8 +61,11 @@ PRIVATE>
 
 : cross-zip ( seq1 seq2 -- seq1xseq2 )
     [ [ 2array ] with map ] curry map ;
+
+<PRIVATE
     
-: m^n ( m n -- n ) 
+: m^n ( m n -- m ) 
     make-bits over first length identity-matrix
     [ [ dupd m. ] when [ dup m. ] dip ] reduce nip ;
 
+PRIVATE>
\ No newline at end of file