Skip to content

Commit

Permalink
sigma arrays do need to be length N
Browse files Browse the repository at this point in the history
for the interface,
even though the last value is not used, to my understanding
  • Loading branch information
zmoon committed Jan 24, 2024
1 parent 75d7574 commit 2459506
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pytspack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def hval(xp, x, y, yp, sigma):
where HP is the derivative of H.
sigma : array
Tension factors, for each interval in the original X points
(as such, length N - 1).
(element I corresponds to the interval (I,I+1);
the last value in the array is not used).
Returns
-------
Expand Down Expand Up @@ -75,7 +76,8 @@ def hpval(xp, x, y, yp, sigma):
First derivatives at original X points. HP(X(I)) = YP(I).
sigma : array_like
Tension factors, for each interval in the original X points
(as such, length N - 1).
(element I corresponds to the interval (I,I+1);
the last value in the array is not used).
Returns
-------
Expand Down

0 comments on commit 2459506

Please sign in to comment.