26 #if defined (HAVE_CONFIG_H)
34 DEFUN (__expint__, args, ,
40 int nargin = args.length ();
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;
octave_idx_type numel(void) const
Number of elements in the array.
Vector representing the dimensions (size) of an Array.
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
std::complex< double > Complex
std::complex< float > FloatComplex
octave_value::octave_value(const Array< char > &chm, char type) return retval