11 from sys
import version_info
12 if version_info >= (2,6,0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_IMP_gsl', [dirname(__file__)])
24 _mod = imp.load_module(
'_IMP_gsl', fp, pathname, description)
28 _IMP_gsl = swig_import_helper()
29 del swig_import_helper
34 _swig_property = property
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38 if (name ==
"thisown"):
return self.this.own(value)
40 if type(value).__name__ ==
'SwigPyObject':
41 self.__dict__[name] = value
43 method = class_type.__swig_setmethods__.get(name,
None)
44 if method:
return method(self,value)
46 self.__dict__[name] = value
48 raise AttributeError(
"You cannot add attributes to %s" % self)
50 def _swig_setattr(self,class_type,name,value):
51 return _swig_setattr_nondynamic(self,class_type,name,value,0)
53 def _swig_getattr(self,class_type,name):
54 if (name ==
"thisown"):
return self.this.own()
55 method = class_type.__swig_getmethods__.get(name,
None)
56 if method:
return method(self)
57 raise AttributeError(name)
60 try: strthis =
"proxy of " + self.this.__repr__()
62 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67 except AttributeError:
74 weakref_proxy = weakref.proxy
76 weakref_proxy =
lambda x: x
79 class IMP_GSL_SwigPyIterator(_object):
80 """Proxy of C++ swig::IMP_GSL_SwigPyIterator class"""
81 __swig_setmethods__ = {}
82 __setattr__ =
lambda self, name, value: _swig_setattr(self, IMP_GSL_SwigPyIterator, name, value)
83 __swig_getmethods__ = {}
84 __getattr__ =
lambda self, name: _swig_getattr(self, IMP_GSL_SwigPyIterator, name)
85 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
87 __swig_destroy__ = _IMP_gsl.delete_IMP_GSL_SwigPyIterator
88 __del__ =
lambda self :
None;
90 """value(IMP_GSL_SwigPyIterator self) -> PyObject *"""
91 return _IMP_gsl.IMP_GSL_SwigPyIterator_value(self)
95 incr(IMP_GSL_SwigPyIterator self, size_t n=1) -> IMP_GSL_SwigPyIterator
96 incr(IMP_GSL_SwigPyIterator self) -> IMP_GSL_SwigPyIterator
98 return _IMP_gsl.IMP_GSL_SwigPyIterator_incr(self, n)
102 decr(IMP_GSL_SwigPyIterator self, size_t n=1) -> IMP_GSL_SwigPyIterator
103 decr(IMP_GSL_SwigPyIterator self) -> IMP_GSL_SwigPyIterator
105 return _IMP_gsl.IMP_GSL_SwigPyIterator_decr(self, n)
107 def distance(self, *args):
108 """distance(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> ptrdiff_t"""
109 return _IMP_gsl.IMP_GSL_SwigPyIterator_distance(self, *args)
111 def equal(self, *args):
112 """equal(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> bool"""
113 return _IMP_gsl.IMP_GSL_SwigPyIterator_equal(self, *args)
116 """copy(IMP_GSL_SwigPyIterator self) -> IMP_GSL_SwigPyIterator"""
117 return _IMP_gsl.IMP_GSL_SwigPyIterator_copy(self)
120 """next(IMP_GSL_SwigPyIterator self) -> PyObject *"""
121 return _IMP_gsl.IMP_GSL_SwigPyIterator_next(self)
124 """__next__(IMP_GSL_SwigPyIterator self) -> PyObject *"""
125 return _IMP_gsl.IMP_GSL_SwigPyIterator___next__(self)
128 """previous(IMP_GSL_SwigPyIterator self) -> PyObject *"""
129 return _IMP_gsl.IMP_GSL_SwigPyIterator_previous(self)
131 def advance(self, *args):
132 """advance(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
133 return _IMP_gsl.IMP_GSL_SwigPyIterator_advance(self, *args)
135 def __eq__(self, *args):
136 """__eq__(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> bool"""
137 return _IMP_gsl.IMP_GSL_SwigPyIterator___eq__(self, *args)
139 def __ne__(self, *args):
140 """__ne__(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> bool"""
141 return _IMP_gsl.IMP_GSL_SwigPyIterator___ne__(self, *args)
143 def __iadd__(self, *args):
144 """__iadd__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
145 return _IMP_gsl.IMP_GSL_SwigPyIterator___iadd__(self, *args)
147 def __isub__(self, *args):
148 """__isub__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
149 return _IMP_gsl.IMP_GSL_SwigPyIterator___isub__(self, *args)
151 def __add__(self, *args):
152 """__add__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
153 return _IMP_gsl.IMP_GSL_SwigPyIterator___add__(self, *args)
155 def __sub__(self, *args):
157 __sub__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator
158 __sub__(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> ptrdiff_t
160 return _IMP_gsl.IMP_GSL_SwigPyIterator___sub__(self, *args)
162 def __iter__(self):
return self
163 IMP_GSL_SwigPyIterator_swigregister = _IMP_gsl.IMP_GSL_SwigPyIterator_swigregister
164 IMP_GSL_SwigPyIterator_swigregister(IMP_GSL_SwigPyIterator)
171 IMP_DEBUG = _IMP_gsl.IMP_DEBUG
172 IMP_RELEASE = _IMP_gsl.IMP_RELEASE
173 IMP_SILENT = _IMP_gsl.IMP_SILENT
174 IMP_PROGRESS = _IMP_gsl.IMP_PROGRESS
175 IMP_TERSE = _IMP_gsl.IMP_TERSE
176 IMP_VERBOSE = _IMP_gsl.IMP_VERBOSE
177 IMP_MEMORY = _IMP_gsl.IMP_MEMORY
178 IMP_NONE = _IMP_gsl.IMP_NONE
179 IMP_USAGE = _IMP_gsl.IMP_USAGE
180 IMP_INTERNAL = _IMP_gsl.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_gsl.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_gsl.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_gsl.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_gsl.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_gsl.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_gsl.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_gsl.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_gsl.IMPBASE_SHOW_WARNINGS
190 class _DirectorObjects(object):
191 """@internal Simple class to keep references to director objects
192 to prevent premature deletion."""
195 def register(self, obj):
196 """Take a reference to a director object; will only work for
197 refcounted C++ classes"""
198 if hasattr(obj,
'get_ref_count'):
199 self._objects.append(obj)
201 """Only drop our reference and allow cleanup by Python if no other
202 Python references exist (we hold 3 references: one in self._objects,
203 one in x, and one in the argument list for getrefcount) *and* no
204 other C++ references exist (the Python object always holds one)"""
205 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
206 or x.get_ref_count() > 1]
210 def get_object_count(self):
211 """Get number of director objects (useful for testing only)"""
212 return len(self._objects)
213 _director_objects = _DirectorObjects()
215 DEFAULT_CHECK = _IMP_gsl.DEFAULT_CHECK
217 USAGE = _IMP_gsl.USAGE
218 USAGE_AND_INTERNAL = _IMP_gsl.USAGE_AND_INTERNAL
221 """set_check_level(IMP::base::CheckLevel tf)"""
222 return _IMP_gsl.set_check_level(*args)
225 """get_check_level() -> IMP::base::CheckLevel"""
226 return _IMP_gsl.get_check_level()
227 class _ostream(_object):
228 """Proxy of C++ std::ostream class"""
229 __swig_setmethods__ = {}
230 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ostream, name, value)
231 __swig_getmethods__ = {}
232 __getattr__ =
lambda self, name: _swig_getattr(self, _ostream, name)
233 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
234 __repr__ = _swig_repr
235 def write(self, *args):
236 """write(_ostream self, char const * osa_buf)"""
237 return _IMP_gsl._ostream_write(self, *args)
239 _ostream_swigregister = _IMP_gsl._ostream_swigregister
240 _ostream_swigregister(_ostream)
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_gsl.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_gsl.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_gsl.IMP_HAS_NOEXCEPT
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_gsl.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_gsl.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_gsl.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_gsl.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_gsl.IMPCGAL_SHOW_WARNINGS
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_gsl.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_gsl.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_gsl.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_gsl.IMPALGEBRA_SHOW_WARNINGS
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_gsl.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_gsl.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_gsl.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_gsl.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_gsl.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_gsl.IMPKERNEL_SHOW_WARNINGS
268 IMP_GSL_HAS_IMP_BASE = _IMP_gsl.IMP_GSL_HAS_IMP_BASE
269 IMP_GSL_HAS_IMP_CGAL = _IMP_gsl.IMP_GSL_HAS_IMP_CGAL
270 IMP_GSL_HAS_BOOST_FILESYSTEM = _IMP_gsl.IMP_GSL_HAS_BOOST_FILESYSTEM
271 IMP_GSL_HAS_BOOST_PROGRAMOPTIONS = _IMP_gsl.IMP_GSL_HAS_BOOST_PROGRAMOPTIONS
272 IMP_GSL_HAS_BOOST_RANDOM = _IMP_gsl.IMP_GSL_HAS_BOOST_RANDOM
273 IMP_GSL_HAS_BOOST_SYSTEM = _IMP_gsl.IMP_GSL_HAS_BOOST_SYSTEM
274 IMP_GSL_HAS_CGAL = _IMP_gsl.IMP_GSL_HAS_CGAL
275 IMPGSL_SHOW_WARNINGS = _IMP_gsl.IMPGSL_SHOW_WARNINGS
276 _object_types.append(
"GSLOptimizer")
279 def _object_cast_to_GSLOptimizer(*args):
280 """_object_cast_to_GSLOptimizer(Object o) -> GSLOptimizer"""
281 return _IMP_gsl._object_cast_to_GSLOptimizer(*args)
282 _object_types.append(
"ConjugateGradients")
285 def _object_cast_to_ConjugateGradients(*args):
286 """_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
287 return _IMP_gsl._object_cast_to_ConjugateGradients(*args)
288 _object_types.append(
"QuasiNewton")
291 def _object_cast_to_QuasiNewton(*args):
292 """_object_cast_to_QuasiNewton(Object o) -> QuasiNewton"""
293 return _IMP_gsl._object_cast_to_QuasiNewton(*args)
294 _object_types.append(
"Simplex")
297 def _object_cast_to_Simplex(*args):
298 """_object_cast_to_Simplex(Object o) -> Simplex"""
299 return _IMP_gsl._object_cast_to_Simplex(*args)
301 """Proxy of C++ IMP::gsl::GSLOptimizer class"""
302 __swig_setmethods__ = {}
304 __setattr__ =
lambda self, name, value: _swig_setattr(self, GSLOptimizer, name, value)
305 __swig_getmethods__ = {}
307 __getattr__ =
lambda self, name: _swig_getattr(self, GSLOptimizer, name)
308 def __init__(self, *args):
310 __init__(IMP::gsl::GSLOptimizer self, Model m) -> GSLOptimizer
311 __init__(IMP::gsl::GSLOptimizer self) -> GSLOptimizer
313 if self.__class__ == GSLOptimizer:
317 this = _IMP_gsl.new_GSLOptimizer(_self, *args)
318 try: self.this.append(this)
319 except: self.this = this
320 if self.__class__ != GSLOptimizer:
322 IMP.base._director_objects.register(self)
326 __swig_destroy__ = _IMP_gsl.delete_GSLOptimizer
327 __del__ =
lambda self :
None;
328 def set_stop_score(self, *args):
329 """set_stop_score(GSLOptimizer self, double d)"""
330 return _IMP_gsl.GSLOptimizer_set_stop_score(self, *args)
333 """__str__(GSLOptimizer self) -> std::string"""
334 return _IMP_gsl.GSLOptimizer___str__(self)
337 """__repr__(GSLOptimizer self) -> std::string"""
338 return _IMP_gsl.GSLOptimizer___repr__(self)
341 return _object_cast_to_GSLOptimizer(o)
342 get_from = staticmethod(get_from)
344 def get_type_name(self):
345 return self.__class__.__name__
346 def do_show(self, out):
348 def get_version_info(self):
349 if"IMP::gsl" ==
"IMP":
350 return VersionInfo(
"python",
"0")
352 return IMP.VersionInfo(
"python",
"0")
354 return _object_cast_to_GSLOptimizer(o)
355 get_from = staticmethod(get_from)
357 def __disown__(self):
359 _IMP_gsl.disown_GSLOptimizer(self)
360 return weakref_proxy(self)
361 def handle_set_has_required_score_states(self, *args):
362 """handle_set_has_required_score_states(GSLOptimizer self, bool arg0)"""
363 return _IMP_gsl.GSLOptimizer_handle_set_has_required_score_states(self, *args)
365 def do_get_inputs(self):
366 """do_get_inputs(GSLOptimizer self) -> IMP::kernel::ModelObjectsTemp"""
367 return _IMP_gsl.GSLOptimizer_do_get_inputs(self)
369 def do_get_outputs(self):
370 """do_get_outputs(GSLOptimizer self) -> IMP::kernel::ModelObjectsTemp"""
371 return _IMP_gsl.GSLOptimizer_do_get_outputs(self)
373 def do_get_interactions(self):
374 """do_get_interactions(GSLOptimizer self) -> IMP::kernel::ModelObjectsTemps"""
375 return _IMP_gsl.GSLOptimizer_do_get_interactions(self)
377 def do_optimize(self, *args):
378 """do_optimize(GSLOptimizer self, unsigned int ns) -> double"""
379 return _IMP_gsl.GSLOptimizer_do_optimize(self, *args)
381 GSLOptimizer_swigregister = _IMP_gsl.GSLOptimizer_swigregister
382 GSLOptimizer_swigregister(GSLOptimizer)
384 class ConjugateGradients(GSLOptimizer):
385 """Proxy of C++ IMP::gsl::ConjugateGradients class"""
386 __swig_setmethods__ = {}
387 for _s
in [GSLOptimizer]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
388 __setattr__ =
lambda self, name, value: _swig_setattr(self, ConjugateGradients, name, value)
389 __swig_getmethods__ = {}
390 for _s
in [GSLOptimizer]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
391 __getattr__ =
lambda self, name: _swig_getattr(self, ConjugateGradients, name)
392 def __init__(self, *args):
394 __init__(IMP::gsl::ConjugateGradients self, Model m) -> ConjugateGradients
395 __init__(IMP::gsl::ConjugateGradients self) -> ConjugateGradients
397 this = _IMP_gsl.new_ConjugateGradients(*args)
398 try: self.this.append(this)
399 except: self.this = this
400 def set_threshold(self, *args):
401 """set_threshold(ConjugateGradients self, double mg)"""
402 return _IMP_gsl.ConjugateGradients_set_threshold(self, *args)
404 def do_optimize(self, *args):
405 """do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
406 return _IMP_gsl.ConjugateGradients_do_optimize(self, *args)
408 def get_version_info(self):
409 """get_version_info(ConjugateGradients self) -> VersionInfo"""
410 return _IMP_gsl.ConjugateGradients_get_version_info(self)
412 __swig_destroy__ = _IMP_gsl.delete_ConjugateGradients
413 __del__ =
lambda self :
None;
415 """__str__(ConjugateGradients self) -> std::string"""
416 return _IMP_gsl.ConjugateGradients___str__(self)
419 """__repr__(ConjugateGradients self) -> std::string"""
420 return _IMP_gsl.ConjugateGradients___repr__(self)
423 return _object_cast_to_ConjugateGradients(o)
424 get_from = staticmethod(get_from)
426 ConjugateGradients_swigregister = _IMP_gsl.ConjugateGradients_swigregister
427 ConjugateGradients_swigregister(ConjugateGradients)
429 class QuasiNewton(GSLOptimizer):
430 """Proxy of C++ IMP::gsl::QuasiNewton class"""
431 __swig_setmethods__ = {}
432 for _s
in [GSLOptimizer]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
433 __setattr__ =
lambda self, name, value: _swig_setattr(self, QuasiNewton, name, value)
434 __swig_getmethods__ = {}
435 for _s
in [GSLOptimizer]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
436 __getattr__ =
lambda self, name: _swig_getattr(self, QuasiNewton, name)
437 def __init__(self, *args):
439 __init__(IMP::gsl::QuasiNewton self, Model m) -> QuasiNewton
440 __init__(IMP::gsl::QuasiNewton self) -> QuasiNewton
442 this = _IMP_gsl.new_QuasiNewton(*args)
443 try: self.this.append(this)
444 except: self.this = this
445 def set_initial_step(self, *args):
446 """set_initial_step(QuasiNewton self, double length)"""
447 return _IMP_gsl.QuasiNewton_set_initial_step(self, *args)
449 def set_line_step(self, *args):
450 """set_line_step(QuasiNewton self, double d)"""
451 return _IMP_gsl.QuasiNewton_set_line_step(self, *args)
453 def set_minimum_gradient(self, *args):
454 """set_minimum_gradient(QuasiNewton self, double d)"""
455 return _IMP_gsl.QuasiNewton_set_minimum_gradient(self, *args)
457 def do_optimize(self, *args):
458 """do_optimize(QuasiNewton self, unsigned int max_steps) -> IMP::Float"""
459 return _IMP_gsl.QuasiNewton_do_optimize(self, *args)
461 def get_version_info(self):
462 """get_version_info(QuasiNewton self) -> VersionInfo"""
463 return _IMP_gsl.QuasiNewton_get_version_info(self)
465 __swig_destroy__ = _IMP_gsl.delete_QuasiNewton
466 __del__ =
lambda self :
None;
468 """__str__(QuasiNewton self) -> std::string"""
469 return _IMP_gsl.QuasiNewton___str__(self)
472 """__repr__(QuasiNewton self) -> std::string"""
473 return _IMP_gsl.QuasiNewton___repr__(self)
476 return _object_cast_to_QuasiNewton(o)
477 get_from = staticmethod(get_from)
479 QuasiNewton_swigregister = _IMP_gsl.QuasiNewton_swigregister
480 QuasiNewton_swigregister(QuasiNewton)
482 class Simplex(GSLOptimizer):
483 """Proxy of C++ IMP::gsl::Simplex class"""
484 __swig_setmethods__ = {}
485 for _s
in [GSLOptimizer]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
486 __setattr__ =
lambda self, name, value: _swig_setattr(self, Simplex, name, value)
487 __swig_getmethods__ = {}
488 for _s
in [GSLOptimizer]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
489 __getattr__ =
lambda self, name: _swig_getattr(self, Simplex, name)
490 def __init__(self, *args):
492 __init__(IMP::gsl::Simplex self, Model m) -> Simplex
493 __init__(IMP::gsl::Simplex self) -> Simplex
495 this = _IMP_gsl.new_Simplex(*args)
496 try: self.this.append(this)
497 except: self.this = this
498 def set_initial_length(self, *args):
499 """set_initial_length(Simplex self, double length)"""
500 return _IMP_gsl.Simplex_set_initial_length(self, *args)
502 def set_minimum_size(self, *args):
503 """set_minimum_size(Simplex self, double d)"""
504 return _IMP_gsl.Simplex_set_minimum_size(self, *args)
506 def do_optimize(self, *args):
507 """do_optimize(Simplex self, unsigned int max_steps) -> IMP::Float"""
508 return _IMP_gsl.Simplex_do_optimize(self, *args)
510 def get_version_info(self):
511 """get_version_info(Simplex self) -> VersionInfo"""
512 return _IMP_gsl.Simplex_get_version_info(self)
514 __swig_destroy__ = _IMP_gsl.delete_Simplex
515 __del__ =
lambda self :
None;
517 """__str__(Simplex self) -> std::string"""
518 return _IMP_gsl.Simplex___str__(self)
521 """__repr__(Simplex self) -> std::string"""
522 return _IMP_gsl.Simplex___repr__(self)
525 return _object_cast_to_Simplex(o)
526 get_from = staticmethod(get_from)
528 Simplex_swigregister = _IMP_gsl.Simplex_swigregister
529 Simplex_swigregister(Simplex)
532 def get_module_version():
533 """get_module_version() -> std::string const"""
534 return _IMP_gsl.get_module_version()
537 """get_example_path(std::string fname) -> std::string"""
538 return _IMP_gsl.get_example_path(*args)
541 """get_data_path(std::string fname) -> std::string"""
542 return _IMP_gsl.get_data_path(*args)
543 import _version_check
544 _version_check.check_version(get_module_version())
See IMP.cgal for more information.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
See IMP.base for more information.
std::string get_data_path(std::string file_name)
Return the full path to installed data.
See IMP.kernel for more information.
Base class for optimizers that act on individual attributes.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
See IMP.algebra for more information.
CheckLevel get_check_level()
Get the current audit mode.