28 #if defined (HAVE_CONFIG_H)
36 DEFUN (givens, args, nargout,
93 if (args.length () != 2)
98 if (args(0).is_single_type () || args(1).is_single_type ())
100 if (args(0).iscomplex () || args(1).iscomplex ())
115 retval =
ovl (result(0, 0), result(0, 1));
121 float x = args(0).float_value ();
122 float y = args(1).float_value ();
134 retval =
ovl (result(0, 0), result(0, 1));
141 if (args(0).iscomplex () || args(1).iscomplex ())
143 Complex cx = args(0).complex_value ();
144 Complex cy = args(1).complex_value ();
156 retval =
ovl (result(0, 0), result(0, 1));
162 double x = args(0).double_value ();
163 double y = args(1).double_value ();
175 retval =
ovl (result(0, 0), result(0, 1));
ComplexMatrix Givens(const Complex &x, const Complex &y)
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
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.