summaryrefslogtreecommitdiff
path: root/tensors.mac
diff options
context:
space:
mode:
authorThomas Guillermo Albers Raviola <thomas@thomaslabs.org>2026-07-28 19:58:44 +0200
committerThomas Guillermo Albers Raviola <thomas@thomaslabs.org>2026-07-28 19:58:44 +0200
commit2e4a8e535ea7fcd65eabadaf424a56ef1297be61 (patch)
tree275bced2a80ab14a943fd1516d21dac803e2c157 /tensors.mac
parentf1da89b4cb5afd413aae8cd61fa31b3d45dcd18b (diff)
Add mappend
Diffstat (limited to 'tensors.mac')
-rw-r--r--tensors.mac2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensors.mac b/tensors.mac
index e8e5a4f..6e9cf8d 100644
--- a/tensors.mac
+++ b/tensors.mac
@@ -20,3 +20,5 @@ cdiff(func, coord) := diff(func, ct_coords[coord])$
box_op(func) := (
expand(contr(ug[μ,ν] * cdiff(cdiff(func, ν), μ), [μ,ν])
- contr(ug[μ,ν] * mcs[μ,ν,ρ] * cdiff(func, ρ), [μ,ν,ρ])))$
+
+mappend(f, list) := apply(append, map(f, list));