23 #if defined (HAVE_CONFIG_H)
43 return ((nargout == 0 || nargout == 1)
151 if (arg.
ndims () != 2)
152 error (
"svd: A must be a 2-D matrix");
165 error (
"svd: cannot take SVD of matrix containing Inf or NaN values");
168 (tmp, svd_type<FloatMatrix> (nargin,
nargout),
169 svd_driver<FloatMatrix> ());
185 error (
"svd: cannot take SVD of matrix containing Inf or NaN values");
188 (ctmp, svd_type<FloatComplexMatrix> (nargin,
nargout),
189 svd_driver<FloatComplexMatrix> ());
208 error (
"svd: cannot take SVD of matrix containing Inf or NaN values");
211 (tmp, svd_type<Matrix> (nargin,
nargout),
212 svd_driver<Matrix> ());
228 error (
"svd: cannot take SVD of matrix containing Inf or NaN values");
231 (ctmp, svd_type<ComplexMatrix> (nargin,
nargout),
232 svd_driver<ComplexMatrix> ());
350 static const char *driver_names[] = {
"gesvd",
"gesdd", 0 };
bool is_real_type(void) const
FloatComplexMatrix float_complex_matrix_value(bool frc_str_conv=false) const
OCTAVE_EXPORT octave_value_list isa nd deftypefn *return ovl(args(0).is_integer_type())
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
void error(const char *fmt,...)
T left_singular_matrix(void) const
bool any_element_is_inf_or_nan(void) const
ColumnVector extract_diag(octave_idx_type k=0) const
T right_singular_matrix(void) const
static std::string Vsvd_driver
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function xample nargout(@histc)
OCTAVE_EXPORT octave_value_list isfloat
bool is_complex_type(void) const
DM_T singular_values(void) const
#define SET_INTERNAL_VARIABLE_CHOICES(NM, CHOICES)
FloatColumnVector extract_diag(octave_idx_type k=0) const
bool any_element_is_inf_or_nan(void) const
Matrix matrix_value(bool frc_str_conv=false) const
void err_wrong_type_arg(const char *name, const char *s)
With real return the complex result
static octave::math::svd< T >::Type svd_type(int nargin, int nargout)
bool any_element_is_inf_or_nan(void) const
static octave::math::svd< T >::Driver svd_driver(void)
ComplexMatrix complex_matrix_value(bool frc_str_conv=false) const
FloatMatrix float_matrix_value(bool frc_str_conv=false) const
bool any_element_is_inf_or_nan(void) const
bool is_single_type(void) const
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string