Skip to content

Conversation

ChrisRackauckas
Copy link
Member

@ChrisRackauckas ChrisRackauckas commented Apr 7, 2020

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
Copy link

rveltz commented Apr 7, 2020

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