summaryrefslogtreecommitdiffstats
path: root/test/04-function-mmult.txt
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:47:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:47:37 +0000
commit00e2eb4fd0266c5be01e3a527a66aaad5ab4b634 (patch)
treea6a58bd544eb0b76b9d3acc678ea88791acca045 /test/04-function-mmult.txt
parentInitial commit. (diff)
downloadlibixion-00e2eb4fd0266c5be01e3a527a66aaad5ab4b634.tar.xz
libixion-00e2eb4fd0266c5be01e3a527a66aaad5ab4b634.zip
Adding upstream version 0.19.0.upstream/0.19.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--test/04-function-mmult.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/04-function-mmult.txt b/test/04-function-mmult.txt
new file mode 100644
index 0000000..84eda1c
--- /dev/null
+++ b/test/04-function-mmult.txt
@@ -0,0 +1,43 @@
+%% Test built-in MMULT function which performs a matrix multiplication whose
+%% result is a matrix spanning over a range of cells.
+%mode init
+A1:1
+A2:2
+A3:3
+C1:4
+D1:5
+E1:6
+{C5:E7}{=MMULT(A1:A3,C1:E1)}
+E11=E7*10
+%calc
+%print dependency
+%mode result
+C5=4
+D5=5
+E5=6
+C6=8
+D6=10
+E6=12
+C7=12
+D7=15
+E7=18
+E11=180
+%check
+%mode edit
+A1:2
+A2:4
+A3:6
+%recalc
+%mode result
+C5=8
+D5=10
+E5=12
+C6=16
+D6=20
+E6=24
+C7=24
+D7=30
+E7=36
+E11=360
+%check
+%exit