• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaLang / julia / #37784
77%

Build:
DEFAULT BRANCH: master
Ran 20 May 2024 11:15AM UTC
Jobs 1
Files 360
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 May 2024 02:31AM UTC coverage: 87.451% (+0.8%) from 86.623%
#37784

push

local

web-flow
Copy parent in copy_similar for Symmetric/Hermitian (#54473)

This should be equivalent to copying the `Symmetric`/`Hermitian` matrix,
as only one triangular half is used. However, this reduces latency when
the parent is a `Matrix` (and possibly others too, although I've not
checked this).

```julia
julia> using LinearAlgebra

julia> A = rand(2,2); H = Hermitian(A);

julia> @time eigen(H);
  0.342207 seconds (440.61 k allocations: 22.926 MiB, 99.95% compilation time) # nightly
  0.260913 seconds (326.62 k allocations: 16.926 MiB, 99.93% compilation time) # This PR
```
Copying the parent is also marginally faster, although this doesn't
really matter in `eigen`:
```julia
julia> A = rand(1000,1000); H = Hermitian(A);

julia> @btime LinearAlgebra.copy_similar($H, Float64);
  1.839 ms (3 allocations: 7.63 MiB) # nightly
  1.760 ms (3 allocations: 7.63 MiB) # This PR
```

---------

Co-authored-by: Daniel Karrasch <daniel.karrasch@posteo.de>

2 of 2 new or added lines in 1 file covered. (100.0%)

16 existing lines in 5 files now uncovered.

76588 of 87578 relevant lines covered (87.45%)

16229486.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #37784.1 20 May 2024 11:15AM UTC 0
87.45
Source Files on build #37784
Detailed source file information is not available for this build.
  • Back to Repo
  • 047e699a on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc