24 #if defined (HAVE_CONFIG_H) 121 error (
"spparms: too many output arguments");
128 int len =
str.length ();
129 for (
int i = 0;
i < len;
i++)
132 if (
str ==
"default")
134 else if (
str ==
"tight")
140 error (
"spparms: KEY not recognized");
147 NDArray vals = args(0).xarray_value (
"spparms: input must be a string or a vector");
149 error (
"spparms: too many elements in vector VALS");
156 std::string str = args(0).xstring_value (
"spparms: first argument must be a string");
158 double val = args(1).xdouble_value (
"spparms: second argument must be a real scalar");
160 if (
str ==
"umfpack")
161 warning (
"spparms: request to disable umfpack solvers ignored");
163 error (
"spparms: KEY not found");
166 error (
"spparms: too many input arguments");
static string_vector get_keys(void)
identity matrix If supplied two scalar respectively For allows like xample val
#define OCTAVE_SPARSE_CONTROLS_SIZE
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
void error(const char *fmt,...)
static void print_info(std::ostream &os, const std::string &prefix)
static double get_key(const std::string &key)
static ColumnVector get_vals(void)
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)
static void defaults(void)
void warning(const char *fmt,...)
OCTAVE_EXPORT octave_value_list isa nd deftypefn *return ovl(args(0).isinteger())
static bool set_key(const std::string &key, const double &val)
bool is_string(void) const
static bool set_vals(const NDArray &vals)
octave_idx_type numel(void) const
Number of elements in the array.
octave_idx_type length(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