Skip to content

Commit d25eebc

Browse files
committed
call _eval_polynomials instead of (outdated) __ppval__ in spline derivatives
1 parent da71219 commit d25eebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stochman/curves.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def deriv(self, t: Optional[torch.Tensor] = None) -> torch.Tensor:
436436
if t.dim() == 1:
437437
t = t.expand(coeffs.shape[0], -1) # Bx|t|
438438
# evaluate the derivative spline
439-
retval = self.__ppeval__(t, dcoeffs) # Bx|t|xD
439+
retval = self._eval_polynomials(t, dcoeffs) # Bx|t|xD
440440
# tt = t.view((-1, 1)) # |t|x1
441441
retval += delta.unsqueeze(1)
442442
return retval

0 commit comments

Comments
 (0)