Skip to content

Conversation

hurak
Copy link
Contributor

@hurak hurak commented May 3, 2025

I tried to polish the explanation of the diagonal vs non-diagonal noise in SDE examples. In particular, I found it confusing that the function g in the code for the diagonal noise returned/modified a vector, while the equally named g in the equation was a matrix. That the function implicitly returns/modifies a diagonal of the matrix was a fact that could have escaped one's attention. I do confirm that it was stated in the documentation but I just tried to emphasise it even more.

While working on the rewording, I also replaced in the codes the names of in-place functions f and g with f! and g!. I hope this will not be found as annoying nitpicking. As I am checking other examples in DifferentialEquations.jl, while some obviously follow this convention, majority does not.

… SDE examples.

I tried to polish the explanation of the diagonal vs non-diagonal noise in SDE examples. In particular, I found it confusing that the function `g` in the code for the diagonal noise returned/modified a vector, while the equally named g in the equation was a matrix. 

While working on the rewording, I also replaced in the codes the names of in-place functions `f` and `g` with `f!` and `g!`. I hope this will not be found as annoying nitpicking.
@hurak hurak changed the title SDE Examples: ninor rewording of explanation of "diagonal vs non-diagonal noise" SDE Examples: minor rewording of explanation of "diagonal vs non-diagonal noise" May 3, 2025
@ChrisRackauckas ChrisRackauckas merged commit e3d1374 into SciML:master May 5, 2025
0 of 3 checks passed
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.

2 participants