aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Wardell <barry.wardell@gmail.com>2012-02-04 23:37:52 +0000
committerBarry Wardell <barry.wardell@gmail.com>2012-02-04 23:37:52 +0000
commitc5aecd6c7d1b69e8e79552b900c576eb14b120ec (patch)
tree1b07a434af6994c60f9c817cc97c608b28ddfce1
parent5e3e89e6c71a5e2a4254ad9f529382941b97d639 (diff)
Make sure e and pi are vectorised when necessary.
-rw-r--r--Tools/CodeGen/CodeGenCactus.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/CodeGen/CodeGenCactus.m b/Tools/CodeGen/CodeGenCactus.m
index 6a9d2ff..7c54541 100644
--- a/Tools/CodeGen/CodeGenCactus.m
+++ b/Tools/CodeGen/CodeGenCactus.m
@@ -528,7 +528,9 @@ DefFn[
(* Constants *)
expr = expr /. {
x_Integer -> ToReal[x],
- x_Real -> ToReal[x]};
+ x_Real -> ToReal[x],
+ E -> ToReal[E],
+ Pi -> ToReal[Pi]};
(* Operators *)
expr = expr //. {