From 386347536a30f2820271615188e642584a8432da Mon Sep 17 00:00:00 2001 From: Ravenwater Date: Sun, 5 Jan 2025 09:28:00 -0500 Subject: [PATCH] changing color and adding paragraph to explain the animation --- content/introduction/linearschedule.md | 5 +++++ static/js/dfa/linearschedule_matmul.js | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/content/introduction/linearschedule.md b/content/introduction/linearschedule.md index 0b80e4c..f0a31b5 100644 --- a/content/introduction/linearschedule.md +++ b/content/introduction/linearschedule.md @@ -52,6 +52,11 @@ This constrained, _linear_ schedule is shown in the next animation. browser doesn't support canvas tags +In this animation we show the result wavefront in green: it is the cumulative activity of the three +recurrence equations evolving along the _scheduling vector_ {{< math >}}$S = [1 1 1]^T${{< /math >}}. +The wavefronts are _sequenced_ in time by the _dot_ product between the scheduling vector _S_ and the +index space coordinate, defined in domain flow as the _signature_ of the activity. + This particular schedule is called _memoryless_, that is, no memory is required to execute along this evolution. Another way to look at this is that the memory function is provided by the network and the act of communicating operands between locations in the lattice. From an energy perspective, this is attractive as diff --git a/static/js/dfa/linearschedule_matmul.js b/static/js/dfa/linearschedule_matmul.js index 26c402a..d3fdb6a 100644 --- a/static/js/dfa/linearschedule_matmul.js +++ b/static/js/dfa/linearschedule_matmul.js @@ -442,9 +442,9 @@ function nextAnimationFrame() { // size of the index point sphere of the wavefront attributes.size.array[i] = 32; // color of the B propagation wavefront - attributes.ca.array[i*3+0] = 0; - attributes.ca.array[i*3+1] = 1; - attributes.ca.array[i*3+2] = 0; + attributes.ca.array[i*3+0] = 0.5; + attributes.ca.array[i*3+1] = 0; + attributes.ca.array[i*3+2] = 1; // alternate wavefronts //showPropagationOfB = false; //showPropagationOfC = true; @@ -453,8 +453,8 @@ function nextAnimationFrame() { // size of the index point sphere of the wavefront attributes.size.array[i] = 32; // color of the C propagation wavefront - attributes.ca.array[i*3+0] = 1; - attributes.ca.array[i*3+1] = 0; + attributes.ca.array[i*3+0] = 0; + attributes.ca.array[i*3+1] = 1; // green attributes.ca.array[i*3+2] = 0; // alternate wavefronts //showPropagationOfC = false;