26 #if defined (HAVE_CONFIG_H)
36 DEFUN (__expint__, args, ,
42 if (args.length () != 1)
47 bool is_single = args(0).is_single_type ();
49 int numel_x = args(0).numel ();
64 x = args(0).float_complex_array_value ();
68 static const float eps = std::numeric_limits<float>::epsilon ();
71 const int maxit = 100;
90 while ((
std::abs (Deltaj - cone) >
eps) && (j < maxit))
92 Dj = beta_j + alpha_j * Dj;
95 Cj = beta_j + alpha_j / Cj;
101 alpha_j = (j + 1) / 2;
122 x = args(0).complex_array_value ();
126 static const double eps = std::numeric_limits<double>::epsilon ();
128 const Complex czero (0.0, 0.0);
129 const int maxit = 200;
148 while ((
std::abs (Deltaj - cone) >
eps) && (j < maxit))
150 Dj = beta_j + alpha_j * Dj;
153 Cj = beta_j + alpha_j / Cj;
159 alpha_j = (j + 1) / 2;
Vector representing the dimensions (size) of an Array.
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
F77_RET_T const F77_DBLE * x
class OCTAVE_API ComplexNDArray
class OCTAVE_API FloatComplexNDArray
std::complex< double > Complex
std::complex< float > FloatComplex