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");
98 ymat.
data () + k * inc,
106 error (
"__pchip_deriv__: PCHIM failed with ierr = %i", 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");
145 ymat.
data () + k * inc,
152 error (
"__pchip_deriv__: DPCHIM failed with ierr = %i", ierr);
subroutine dpchim(N, X, F, D, INCFD, IERR)
F77_RET_T F77_FUNC(dpchim, DPCHIM)(const octave_idx_type &n
F77_RET_T const double const double double const octave_idx_type octave_idx_type * ierr
#define DEFUN(name, args_name, nargout_name, doc)
void error(const char *fmt,...)
#define F77_XFCN(f, F, args)
F77_RET_T const double const double double const octave_idx_type & incfd
octave_idx_type rows(void) const
F77_RET_T const double const double double * d
F77_RET_T const double const double * f
const T * data(void) const
octave_idx_type length(void) const
subroutine pchim(N, X, F, D, INCFD, IERR)
octave_idx_type length(void) const
Number of elements in the array.
const T * fortran_vec(void) const
octave_idx_type columns(void) const
F77_RET_T const double * x