-
Notifications
You must be signed in to change notification settings - Fork 1
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
14 laplacian tests #22
Conversation
…lts with GT4Py backend)
… with the laplacian case
test/gt2py_fo_exec.jl
Outdated
function lap_ground_truth(in_field::Matrix{Float64})::Matrix{Float64} | ||
nrows, ncols = size(in_field) | ||
out_field = zeros(Float64, nrows, ncols) # Initialize out_field as a matrix of zeros | ||
out_field .= in_field # Copy inplace: to keep the initial values in the border |
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.
Is this required? For simplicity I would simply keep the boundary values zero. Also it feels a little odd to mix the laplacian of some vector with the actual values.
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.
I included this copy incorrectly thinking of the case where the edge values were to be saved. However, it is better to start with an empty matrix and handle the edge values differently.
However, since the values at the edges are not touched by the Laplacian. For now I can keep the values at zero, but then it will have to be changed to the actual values of the input.
Co-authored-by: Till Ehrengruber <[email protected]>
Closes #14