From ffe1c510ae731e67cfeb60f0bc5a96b48b4616b0 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Mon, 30 Jul 2012 16:44:08 -0700 Subject: [PATCH] math.matrices: rename van-der-monde to vandermonde --- basis/math/matrices/matrices-tests.factor | 2 +- basis/math/matrices/matrices.factor | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basis/math/matrices/matrices-tests.factor b/basis/math/matrices/matrices-tests.factor index e5bf009333..64f739e5ff 100644 --- a/basis/math/matrices/matrices-tests.factor +++ b/basis/math/matrices/matrices-tests.factor @@ -29,7 +29,7 @@ IN: math.matrices.tests { 9 3 1 } { 25 5 1 } } } [ - { 1 2 3 5 } 3 van-der-monde-matrix + { 1 2 3 5 } 3 vandermonde-matrix ] unit-test { diff --git a/basis/math/matrices/matrices.factor b/basis/math/matrices/matrices.factor index 6c8ffa018f..c62026d79e 100644 --- a/basis/math/matrices/matrices.factor +++ b/basis/math/matrices/matrices.factor @@ -31,7 +31,7 @@ IN: math.matrices : box-matrix ( r -- matrix ) 2 * 1 + dup '[ _ 1 ] replicate ; -: van-der-monde-matrix ( u n -- matrix ) +: vandermonde-matrix ( u n -- matrix ) iota [ v^n ] with map reverse flip ; :: rotation-matrix3 ( axis theta -- matrix )