Skip to content

A package for constructing Broadcasted objects from broadcast expressions

License

Notifications You must be signed in to change notification settings

CliMA/LazyBroadcast.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A package for constructing Broadcasted objects from broadcast expressions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages