-
Notifications
You must be signed in to change notification settings - Fork 24
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
[WIP] Use static arrays #46
Conversation
135ef11
to
078c4be
Compare
Codecov Report
@@ Coverage Diff @@
## master #46 +/- ##
==========================================
+ Coverage 99.81% 99.87% +0.06%
==========================================
Files 76 76
Lines 1581 1554 -27
==========================================
- Hits 1578 1552 -26
+ Misses 3 2 -1
Continue to review full report at Codecov.
|
Perhaps the following changes? In bprecess.jl, change line 42 to s = Vector{T}(s1) Additionally, since Small question :- Does StaticArrays give a significant boost to the performance of the code? |
Thanks for looking into it!
julia> s = randn(3)
3-element Array{Float64,1}:
0.593006
-1.79782
0.592398
julia> s1 = Vector{Float64}(s)
3-element Array{Float64,1}:
0.593006
-1.79782
0.592398
julia> s1[1] = -5
-5
julia> s
3-element Array{Float64,1}:
-5.0
-1.79782
0.592398
Not sure what you refer to, the PR already makes the array returned by |
Ah, didn't notice that. I was referring to the same. I think almost everything is covered by the PR then. |
I don't expect to have covered everything, but almost everything is a good result :-) Thanks! |
078c4be
to
4803f64
Compare
Holding back the PR because of Edit: all issues resolved. |
4803f64
to
cb5edb4
Compare
Fix #45.
cb5edb4
to
170d785
Compare
Fix #45.
This is marked as work-in-progress because I'm not sure I made all possible changes. Feel free to report any missing array to change.