Skip to content

Conversation

@jishnub
Copy link
Member

@jishnub jishnub commented Nov 10, 2023

The corresponding line in tril! is also marked @inbounds, so I think this makes sense.

Performance difference:

julia> @btime triu!($(rand(100,100)), 0);
  1.382 μs (0 allocations: 0 bytes) # master
  629.723 ns (0 allocations: 0 bytes) # PR

@jishnub jishnub added linear algebra Linear algebra arrays [a, r, r, a, y, s] labels Nov 10, 2023
@dkarrasch dkarrasch merged commit 8944a22 into master Nov 10, 2023
@dkarrasch dkarrasch deleted the jishnub/triuinbounds branch November 10, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrays [a, r, r, a, y, s] linear algebra Linear algebra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants