28 #if defined (HAVE_CONFIG_H)
38 DEFUN (givens, args, nargout,
95 if (args.length () != 2)
100 if (args(0).is_single_type () || args(1).is_single_type ())
102 if (args(0).iscomplex () || args(1).iscomplex ())
113 retval =
ovl (result);
117 retval =
ovl (result(0, 0), result(0, 1));
123 float x = args(0).float_value ();
124 float y = args(1).float_value ();
132 retval =
ovl (result);
136 retval =
ovl (result(0, 0), result(0, 1));
143 if (args(0).iscomplex () || args(1).iscomplex ())
145 Complex cx = args(0).complex_value ();
146 Complex cy = args(1).complex_value ();
154 retval =
ovl (result);
158 retval =
ovl (result(0, 0), result(0, 1));
164 double x = args(0).double_value ();
165 double y = args(1).double_value ();
173 retval =
ovl (result);
177 retval =
ovl (result(0, 0), result(0, 1));
196 OCTAVE_END_NAMESPACE(
octave)
ComplexMatrix Givens(const Complex &x, const Complex &y)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#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_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.