You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we want something like JuliaArrays/FillArrays.jl#153 to project the gradient of a Fill onto a one-dimensional subspace, then I think we probably want something similar for the gradient of a range, but projecting onto a two-dimensional space, parameterised by the endpoints. Before I lose the bit of scrap paper I wrote this on, I think this would look as follows:
Using LinRange allows for zero slope (e.g. for constant dx) and skips the high-precision machinery which StepRangeLen uses to hit endpoints exactly, as I don't think we're concerned about the last digit here. This isn't yet careful about element types etc.
The text was updated successfully, but these errors were encountered:
If we want something like JuliaArrays/FillArrays.jl#153 to project the gradient of a Fill onto a one-dimensional subspace, then I think we probably want something similar for the gradient of a range, but projecting onto a two-dimensional space, parameterised by the endpoints. Before I lose the bit of scrap paper I wrote this on, I think this would look as follows:
Using
LinRange
allows for zero slope (e.g. for constantdx
) and skips the high-precision machinery whichStepRangeLen
uses to hit endpoints exactly, as I don't think we're concerned about the last digit here. This isn't yet careful about element types etc.The text was updated successfully, but these errors were encountered: