LazyBroadcast.jl

A package for constructing Broadcasted objects from broadcast expressions
Author CliMA
Popularity
1 Star
Updated Last
4 Months Ago
Started In
April 2024

LazyBroadcast.jl

A package for constructing Broadcasted objects from broadcast expressions.

Our test suite has a simple example demonstrating its use:

using Test
import LazyBroadcast as LB

a = rand(3,3)
b = rand(3,3)

bce = LB.lazy_broadcasted(:(@. a + b))
bco = LB.@lazy_broadcasted @. a + b

@testset "lazy_broadcasted" begin
    @test bce == :(Base.broadcasted(+, a, b))
    @test bco == Base.broadcasted(+, a, b)
end