Skip to content

fix broadcast allocations#89

Merged
ChrisRackauckas merged 3 commits into
masterfrom
allocs
Apr 7, 2020
Merged

fix broadcast allocations#89
ChrisRackauckas merged 3 commits into
masterfrom
allocs

Conversation

@ChrisRackauckas

@ChrisRackauckas ChrisRackauckas commented Apr 7, 2020

Copy link
Copy Markdown
Member
using RecursiveArrayTools, BenchmarkTools
xce0 = ArrayPartition(zeros(2),[0.])
xcde0 = copy(xce0)
function foo(y, x)
	y .= y .+ 2 .* x
end
@btime foo($xcde0, $xce0)
19.075 ns (0 allocations: 0 bytes)

Fixes #72

@rveltz

@rveltz

rveltz commented Apr 7, 2020

Copy link
Copy Markdown

thx

@ChrisRackauckas ChrisRackauckas merged commit c9958b8 into master Apr 7, 2020
@ChrisRackauckas ChrisRackauckas deleted the allocs branch April 7, 2020 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

allocating linearalgebra

2 participants