Skip to content

Conversation

@dpo
Copy link
Member

@dpo dpo commented Nov 13, 2019

julia> A = LinearOperator(rand(100,200));
julia> op = TimedLinearOperator(A);
julia> for _ = 1 : 3
         op * rand(200)
       end
julia> for _ = 1 : 7
         op' * rand(100)
       end
julia> for _ = 1 : 10
         transpose(op) * rand(100)
       end

julia> op
Linear operator
  nrow: 100
  ncol: 200
  eltype: Float64
  symmetric: false
  hermitian: false
  nprod:   3
  ntprod:  10
  nctprod: 7

──────────────────────────────────────────────────────────────────
                           Time                   Allocations
                   ──────────────────────   ───────────────────────
 Tot / % measured:      17.1s / 0.00%           5.78MiB / 0.55%

 Section   ncalls     time   %tot     avg     alloc   %tot      avg
 ──────────────────────────────────────────────────────────────────
 prod           3    129μs  37.7%  43.1μs   2.63KiB  8.04%     896B
 tprod         10    119μs  34.6%  11.9μs   17.7KiB  54.1%  1.77KiB
 ctprod         7   95.2μs  27.7%  13.6μs   12.4KiB  37.9%  1.77KiB
 ──────────────────────────────────────────────────────────────────

@dpo dpo requested a review from abelsiqueira November 13, 2019 17:18
Copy link
Member

@abelsiqueira abelsiqueira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool.

@codecov
Copy link

codecov bot commented Nov 13, 2019

Codecov Report

Merging #120 into master will decrease coverage by 0.42%.
The diff coverage is 85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
- Coverage   96.66%   96.23%   -0.43%     
==========================================
  Files           6        7       +1     
  Lines         570      585      +15     
==========================================
+ Hits          551      563      +12     
- Misses         19       22       +3
Impacted Files Coverage Δ
src/adjtrans.jl 98.66% <ø> (ø) ⬆️
src/LinearOperators.jl 94.44% <100%> (+0.06%) ⬆️
src/TimedOperators.jl 75% <75%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f662283...b4a4a1d. Read the comment docs.

@abelsiqueira abelsiqueira merged commit 18d7a74 into master Nov 13, 2019
@abelsiqueira abelsiqueira deleted the timers branch November 13, 2019 17:51
@abelsiqueira
Copy link
Member

Thanks

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.

3 participants