Skip to content

Commit 6176a4e

Browse files
duffeemohawk2
authored andcommitted
Dataflow.pod: minor correction to text and added tags
1 parent 071c39f commit 6176a4e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/PDL/Dataflow.pod

+5-5
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Consider the following code:
8181

8282
As of 2.090, C<$x> will I<not> have backward dataflow. This is because
8383
PDL turns that off, on detecting an input with forward-only dataflow. This
84-
means PDL will only created directed I<acyclic> graphs of dataflow.
84+
means PDL will only create directed I<acyclic> graphs of dataflow.
8585
It also means you can only modify the contents of C<$x> by modifying its
8686
"upstream" data sources.
8787

@@ -274,11 +274,11 @@ In one-way flow context like the above, with:
274274
pdl> $y = $x * 2;
275275

276276
nothing will have been calculated at this point. Even the memory for
277-
the contents of $y has not been allocated. Only the command
277+
the contents of C<$y> has not been allocated. Only the command
278278

279279
pdl> print $y
280280

281-
will actually cause $y to be calculated. This is important to bear
281+
will actually cause C<$y> to be calculated. This is important to bear
282282
in mind when doing performance measurements and benchmarks as well
283283
as when tracking errors.
284284

@@ -329,9 +329,9 @@ are connectors between ndarrays (with C<*>):
329329
z*
330330

331331
This is what PDL actually has in memory after the first three lines.
332-
When $x is changed, $w changes due to C<diagonal> being a two-way operation.
332+
When C<$x> is changed, C<$w> changes due to C<diagonal> being a two-way operation.
333333

334-
If you want flow from $w, you opt in using C<< $w->flowing >> (as shown
334+
If you want flow from C<$w>, you opt in using C<< $w->flowing >> (as shown
335335
in this scenario). If you didn't, then don't enable it. If you have it
336336
but want to stop it, call C<< $ndarray->sever >>. That will destroy the
337337
ndarray's C<trans_parent> (here, a node marked with C<+>), and as you

0 commit comments

Comments
 (0)