Skip to content
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

Inplace exponential #37

Merged
merged 7 commits into from
Oct 10, 2022
Merged

Inplace exponential #37

merged 7 commits into from
Oct 10, 2022

Conversation

zmorrell
Copy link
Collaborator

@zmorrell zmorrell commented May 4, 2022

@ccoffrin I changed the exponential to use LinearAlgebra.exp!(A) which reduces memory usage a little bit while using the exact same functionality. It should be noted that I don't think that exp! is actually truly inplace as it doesn't modify the input matrix, it just saves us a copying step that happens under the hood.

I also fixed a bug that I had found in the simulate_de code. Whenever a user passed a kwarg for solve, it would crash. While I was there I also changed it to only save the last value since we only return the final value in its current implementation anyways

@codecov
Copy link

codecov bot commented May 4, 2022

Codecov Report

Merging #37 (f6b444c) into main (09d6153) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #37      +/-   ##
==========================================
+ Coverage   92.86%   92.88%   +0.01%     
==========================================
  Files           5        5              
  Lines         603      604       +1     
==========================================
+ Hits          560      561       +1     
  Misses         43       43              
Impacted Files Coverage Δ
src/simulate.jl 90.44% <100.00%> (+0.03%) ⬆️
src/simulate_de.jl 77.55% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

CHANGELOG.md Outdated Show resolved Hide resolved
Project.toml Outdated Show resolved Hide resolved
src/simulate.jl Show resolved Hide resolved
test/common.jl Outdated Show resolved Hide resolved
@zmorrell zmorrell merged commit 4574c4a into main Oct 10, 2022
@zmorrell zmorrell deleted the inplace-exponential branch October 10, 2022 22:34
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.

None yet

2 participants