aboutsummaryrefslogtreecommitdiff
path: root/chapters
diff options
context:
space:
mode:
authorDominic Symes <dominic.symes@arm.com>2024-02-05 17:34:43 +0000
committerDominic Symes <dominic.symes@arm.com>2024-02-14 14:44:45 +0000
commit31c08c59085fe3a9002bcd97cc6d886ad2ba9e6e (patch)
tree541183e7c030c834a881f536912680a9419f0677 /chapters
parent0e87924198af25681f45f330a04924048b18a7a2 (diff)
downloadspecification-31c08c59085fe3a9002bcd97cc6d886ad2ba9e6e.tar.gz
FFT, RFFT: Improve reference pseudo-code
Add types for the angle caclulations. Add conformance appendix section for RFFT2D. Signed-off-by: Dominic Symes <dominic.symes@arm.com> Change-Id: Ic0ab79c0784c6359d2d66290e124dfb670a879cc
Diffstat (limited to 'chapters')
-rw-r--r--chapters/appendix_a.adoc18
1 files changed, 18 insertions, 0 deletions
diff --git a/chapters/appendix_a.adoc b/chapters/appendix_a.adoc
index b162738..6d85204 100644
--- a/chapters/appendix_a.adoc
+++ b/chapters/appendix_a.adoc
@@ -275,6 +275,24 @@ for (0 <= y < H, 0 <= x < W, 0 <= m < H, 0 <= n < W) {
}
----
+==== RFFT2D
+
+The following generates input test data for test set S.
+For compliant implementation, the test must pass whenever the attributes satisfy:
+`N*H*W >= MIN_DOT_PRODUCTS`
+
+[source,c++]
+----
+KS = H*W;
+for (0 <= n < N, 0 <= y < H, 0 <= x < W) {
+ input_real[n, y, x] = tosa_mi_data(S, KS, 0, y*W+x, ((0*N+n)*H+y)*IW+x);
+}
+for (0 <= y < H, 0 <= x < W, 0 <= m < H, 0 <= n < W) {
+ weight_real[y, x, m, n] = real(exp(2*pi*i*((m*h/H) + (n*w/W))));
+ weight_imag[y, x, m, n] = imag(exp(2*pi*i*((m*h/H) + (n*w/W))));
+}
+----
+
==== REDUCE_SUM
The following generates input test data for test set S.