Skip to content

Commit 3e5d75a

Browse files
committed
regenerate
1 parent aaef39f commit 3e5d75a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

advent/blog/2024/12/25/jwst/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ <h2>Broadcasting</h2>
181181

182182
<p>This trick is known as &#39;broadcasting&#39; and is one of the most powerful PDL features.
183183
You can see we have written some highly complex code to apply mathematical operations to the image as a function of x,y without writing a single loop!
184-
Broadcasting is powerful because it can be applied along any axis with suitable dimension tricks using functions such as <code>mv()</code> and <code>clump()</code>.
184+
Broadcasting is powerful because it can be applied along any axis with suitable dimension tricks using functions such as <a href="https://metacpan.org/pod/PDL::Slices#mv"><code>mv()</code></a> and <a href="https://metacpan.org/pod/PDL::Core#dummy"><code>dummy()</code></a>.
185+
One can also use <a href="https://metacpan.org/pod/PDL::Core#clump"><code>clump()</code></a> to aggregate dimensions.
185186
It is also extremely fast as it operates at speeds close to what would happen if the loops were written in C or FORTRAN.
186187
When using it, I tend to need to experiment a bit to achieve what I want and look at the resulting dimensions.
187188
The main rule to remember is dimensions need to <em>match</em>, this happens when they are either the same size, or when one of them is of size unity.

advent/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h1>The 2024 PDL Advent Calendar<span>.</span></h1>
9292
<section>
9393

9494
<!-- code from https://codepen.io/dudleystorey/pen/MagNaY -->
95-
<!-- build date: 2024-12-28T23:43:24 -->
95+
<!-- build date: 2024-12-29T00:02:57 -->
9696

9797
<div class="calendar">
9898
<time class="blank" datetime="2024-11-25"><span class="caldate">25</span></time>

0 commit comments

Comments
 (0)