Linear trend: gmt regress vs trend1d -Np1

I would like to know if the linear trend calculated with gmt regress and gmt trend1d -Np1 are the same? ? In the practice, I see that but I am not complety sure.

I guess that, if docs do not mention this, one needs to read to code to check that it’s calling the same functions.