Skip to content

Commit

Permalink
Merge pull request #27 from CliMA/ck/docs
Browse files Browse the repository at this point in the history
More doc updates
  • Loading branch information
charleskawczynski authored Jan 28, 2025
2 parents 648178e + ea42f98 commit eab5350
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 7 additions & 4 deletions docs/src/broadcast_background.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

Here, we'll provide our own brief background of Julia Base's broadcast
machinery. Please see the official Julia [broadcasting documentation]
(https://docs.julialang.org/en/v1/manual/arrays/#Broadcasting), for more
information.
(https://docs.julialang.org/en/v1/manual/arrays/#Broadcasting) and the
[2017 blog post](https://julialang.org/blog/2017/01/moredots/) by Steven G.
Johnson, for more information.

## Introduction

Expand Down Expand Up @@ -131,8 +132,10 @@ Base.Meta.@lower @. a+=1

!!! note

The result of `Base.Meta.@lower` is an intermediate representation (IR) of
the given expression.
`Base.Meta.@lower` returns an intermediate representation (IR) of the given
expression, which is printed as a sequence of operations where results of
functions are assigned to symbols on the left-hand-side and later
referenced.

The responsibility of `broadcasted`, here, is to return `Broadcasted` objects.
This function allows users to overload `broadcasted` to return special types of
Expand Down
1 change: 0 additions & 1 deletion src/LazyBroadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ end
Base.Broadcast.broadcasted(::typeof(lazy_broadcast), x) = LazyBroadcasted(x)
Base.materialize(x::LazyBroadcasted) = instantiate(x.value)

import Base.Broadcast: instantiate, broadcasted
macro lazy_broadcast(expr)
return quote
LazyBroadcast.lazy_broadcast.($(esc(expr)))
Expand Down

0 comments on commit eab5350

Please sign in to comment.