26 #if defined (HAVE_CONFIG_H)
60 s_instance->do_defaults ();
67 s_instance->do_tight ();
85 return instance_ok () ? s_instance->do_set_vals (vals) :
false;
91 return instance_ok () ? s_instance->do_set_key (key, val) :
false;
104 return instance_ok () ? s_instance->do_get_bandden () : 0.0;
111 s_instance->do_print_info (os, prefix);
115 sparse_params::do_defaults ()
129 m_params(12) = 0.001;
133 sparse_params::do_tight ()
147 m_params(12) = 0.001;
151 sparse_params::init_keys ()
153 m_keys(0) =
"spumoni";
154 m_keys(1) =
"ths_rel";
155 m_keys(2) =
"ths_abs";
156 m_keys(3) =
"exact_d";
157 m_keys(4) =
"supernd";
158 m_keys(5) =
"rreduce";
159 m_keys(6) =
"wh_frac";
160 m_keys(7) =
"autommd";
161 m_keys(8) =
"autoamd";
162 m_keys(9) =
"piv_tol";
163 m_keys(10) =
"bandden";
164 m_keys(11) =
"umfpack";
165 m_keys(12) =
"sym_tol";
169 sparse_params::do_get_bandden ()
180 (*current_liboctave_error_handler)
181 (
"sparse_params::do_set_vals: too many values");
183 for (
int i = 0; i <
len; i++)
184 m_params(i) = vals(i);
190 sparse_params::do_set_key (
const std::string& key,
const double& val)
194 if (m_keys (i) == key)
205 sparse_params::do_get_key (
const std::string& key)
209 if (m_keys (i) == key)
217 sparse_params::do_print_info (std::ostream& os,
218 const std::string& prefix)
const
221 os << prefix << m_keys(i) <<
": " << m_params(i) <<
"\n";
224 OCTAVE_END_NAMESPACE(
octave)
octave_idx_type numel() const
Number of elements in the array.
static double get_key(const std::string &key)
static void print_info(std::ostream &os, const std::string &prefix)
static bool set_key(const std::string &key, const double &val)
static bool instance_ok()
static bool set_vals(const Array< double > &vals)
static string_vector get_keys()
static ColumnVector get_vals()
static double get_bandden()
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#define OCTAVE_SPARSE_CONTROLS_SIZE