-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
BSplines: Add methods for Vector of Vectors #351
base: master
Are you sure you want to change the base?
Conversation
lidx = 1 | ||
ridx = length(k) | ||
while lidx <= (d + 1) && ridx >= (length(k) - d) | ||
k[lidx] = p[1] | ||
k[ridx] = p[end] | ||
lidx += 1 | ||
ridx -= 1 | ||
end | ||
|
||
ps = zeros(eltype(t), n - 2) | ||
s = zero(eltype(t)) | ||
for i in 2:(n - 1) | ||
s += p[i] | ||
ps[i - 1] = s | ||
end | ||
|
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 needed?
p[1] = zero(eltype(t)) | ||
p[end] = one(eltype(t)) | ||
|
||
ax_u = axes(u)[1:(end - 1)] |
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 line needed?
p[1] = zero(eltype(t)) | ||
p[end] = one(eltype(t)) | ||
|
||
ax_u = axes(u)[1:(end - 1)] |
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 line needed?
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.