39 const double *
f,
double *
d,
45 const float *
f,
float *
d,
53 DEFUN (__pchip_deriv__, args, ,
55 @deftypefn {Built-in Function} {} __pchip_deriv__ (@var{x}, @var{y}, @var{dim})\n\
56 Undocumented internal function.\n\
60 const int nargin = args.
length ();
62 bool rows = (nargin == 3 && args (2).uint_value () == 2);
66 if (args(0).is_single_type () || args(1).is_single_type ())
75 error (
"__pchip_deriv__: X must be at least of length 2");
82 if (nx != (rows ? nyc : nyr))
84 error (
"__pchip_deriv__: X and Y dimension mismatch");
88 const float *yvec = ymat.
data ();
106 error (
"PCHIM: error: %i\n", ierr);
116 Matrix ymat (args(1).matrix_value ());
122 error (
"__pchip_deriv__: X must be at least of length 2");
129 if (nx != (rows ? nyc : nyr))
131 error (
"__pchip_deriv__: X and Y dimension mismatch");
135 const double *yvec = ymat.
data ();
153 error (
"DPCHIM: error: %i\n", ierr);