derivative.cc3(knots, sdspline, last.three, all = TRUE)TRUE, matrix (g - 2) x g (there is one zero column) is returned.
If FALSE, matrix (g - 2) x 3 is returned.
The first row is always an intercept.
See details.c[-last.three] this function computes
derivatives of $c$ w.r.t. $d$ together
with the intercept term used to compute $c$ from
$d$. This is actually a matrix of $\omega$
coefficients. If we denote it as $\Omega$ then
if all == TRUE
$$c = \Omega_{1,\cdot}^T + \Omega_{-1,\cdot}^T d$$
and if all == FALSE
$$c[last.three] = \Omega_{1,\cdot}^T + \Omega_{-1,\cdot}^T d.$$