-
Notifications
You must be signed in to change notification settings - Fork 39
Remove all function types and add callable test #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove all function types and add callable test #99
Conversation
Codecov Report
@@ Coverage Diff @@
## master #99 +/- ##
=========================================
+ Coverage 92.49% 92.59% +0.1%
=========================================
Files 6 6
Lines 533 527 -6
=========================================
- Hits 493 488 -5
+ Misses 40 39 -1
Continue to review full report at Codecov.
|
813bc53 to
e5343c0
Compare
| @test op' * ones(2) == -ones(2) | ||
| @test transpose(op) * ones(2) == -ones(2) | ||
| end | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
|
I've lost track of where we stand exactly. Does this resolve #97 in the end? |
|
It resolves #97 but it becomes type unstable on other parts, such as using LinearOperators
N = 15; n = 5
op = LinearOperator(rand(100n,100n))
v = randn(100n)
@time op * v
@time vcat([ op * randn(100n) for i = 1:N ]...)
lops = [ LinearOperator(randn(n,n)) for i=1:N ]
C = hcat(lops...)
@time y = C*randn(n * N)
lops = [ LinearOperator(randn(n,n)) for i=1:N ]
C = vcat(lops...)
@time y = C*randn(n)
lops = [ LinearOperator(randn(n,n)) for i=1:N ]
C = sum(lops)
@time y = C*randn(n)
lops = [ LinearOperator(randn(n,n)) for i=1:N ]
C = prod(lops)
@time y = C*randn(n)The first test is just trying to see if there will be slowdown on and on this branch |
|
Excellent, thank you! |
No description provided.