IMP  2.0.1
The Integrative Modeling Platform
gsl/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 2.0.8
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 from sys import version_info
10 if version_info >= (2,6,0):
11  def swig_import_helper():
12  from os.path import dirname
13  import imp
14  fp = None
15  try:
16  fp, pathname, description = imp.find_module('_IMP_gsl', [dirname(__file__)])
17  except ImportError:
18  import _IMP_gsl
19  return _IMP_gsl
20  if fp is not None:
21  try:
22  _mod = imp.load_module('_IMP_gsl', fp, pathname, description)
23  finally:
24  fp.close()
25  return _mod
26  _IMP_gsl = swig_import_helper()
27  del swig_import_helper
28 else:
29  import _IMP_gsl
30 del version_info
31 try:
32  _swig_property = property
33 except NameError:
34  pass # Python < 2.2 doesn't have 'property'.
35 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
36  if (name == "thisown"): return self.this.own(value)
37  if (name == "this"):
38  if type(value).__name__ == 'SwigPyObject':
39  self.__dict__[name] = value
40  return
41  method = class_type.__swig_setmethods__.get(name,None)
42  if method: return method(self,value)
43  if (not static):
44  self.__dict__[name] = value
45  else:
46  raise AttributeError("You cannot add attributes to %s" % self)
47 
48 def _swig_setattr(self,class_type,name,value):
49  return _swig_setattr_nondynamic(self,class_type,name,value,0)
50 
51 def _swig_getattr(self,class_type,name):
52  if (name == "thisown"): return self.this.own()
53  method = class_type.__swig_getmethods__.get(name,None)
54  if method: return method(self)
55  raise AttributeError(name)
56 
57 def _swig_repr(self):
58  try: strthis = "proxy of " + self.this.__repr__()
59  except: strthis = ""
60  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
61 
62 try:
63  _object = object
64  _newclass = 1
65 except AttributeError:
66  class _object : pass
67  _newclass = 0
68 
69 
70 try:
71  import weakref
72  weakref_proxy = weakref.proxy
73 except:
74  weakref_proxy = lambda x: x
75 
76 
77 class IMP_GSL_SwigPyIterator(_object):
78  """Proxy of C++ swig::IMP_GSL_SwigPyIterator class"""
79  __swig_setmethods__ = {}
80  __setattr__ = lambda self, name, value: _swig_setattr(self, IMP_GSL_SwigPyIterator, name, value)
81  __swig_getmethods__ = {}
82  __getattr__ = lambda self, name: _swig_getattr(self, IMP_GSL_SwigPyIterator, name)
83  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
84  __repr__ = _swig_repr
85  __swig_destroy__ = _IMP_gsl.delete_IMP_GSL_SwigPyIterator
86  __del__ = lambda self : None;
87  def value(self):
88  """value(IMP_GSL_SwigPyIterator self) -> PyObject *"""
89  return _IMP_gsl.IMP_GSL_SwigPyIterator_value(self)
90 
91  def incr(self, n=1):
92  """
93  incr(IMP_GSL_SwigPyIterator self, size_t n=1) -> IMP_GSL_SwigPyIterator
94  incr(IMP_GSL_SwigPyIterator self) -> IMP_GSL_SwigPyIterator
95  """
96  return _IMP_gsl.IMP_GSL_SwigPyIterator_incr(self, n)
97 
98  def decr(self, n=1):
99  """
100  decr(IMP_GSL_SwigPyIterator self, size_t n=1) -> IMP_GSL_SwigPyIterator
101  decr(IMP_GSL_SwigPyIterator self) -> IMP_GSL_SwigPyIterator
102  """
103  return _IMP_gsl.IMP_GSL_SwigPyIterator_decr(self, n)
104 
105  def distance(self, *args):
106  """distance(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> ptrdiff_t"""
107  return _IMP_gsl.IMP_GSL_SwigPyIterator_distance(self, *args)
108 
109  def equal(self, *args):
110  """equal(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> bool"""
111  return _IMP_gsl.IMP_GSL_SwigPyIterator_equal(self, *args)
112 
113  def copy(self):
114  """copy(IMP_GSL_SwigPyIterator self) -> IMP_GSL_SwigPyIterator"""
115  return _IMP_gsl.IMP_GSL_SwigPyIterator_copy(self)
116 
117  def next(self):
118  """next(IMP_GSL_SwigPyIterator self) -> PyObject *"""
119  return _IMP_gsl.IMP_GSL_SwigPyIterator_next(self)
120 
121  def __next__(self):
122  """__next__(IMP_GSL_SwigPyIterator self) -> PyObject *"""
123  return _IMP_gsl.IMP_GSL_SwigPyIterator___next__(self)
124 
125  def previous(self):
126  """previous(IMP_GSL_SwigPyIterator self) -> PyObject *"""
127  return _IMP_gsl.IMP_GSL_SwigPyIterator_previous(self)
128 
129  def advance(self, *args):
130  """advance(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
131  return _IMP_gsl.IMP_GSL_SwigPyIterator_advance(self, *args)
132 
133  def __eq__(self, *args):
134  """__eq__(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> bool"""
135  return _IMP_gsl.IMP_GSL_SwigPyIterator___eq__(self, *args)
136 
137  def __ne__(self, *args):
138  """__ne__(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> bool"""
139  return _IMP_gsl.IMP_GSL_SwigPyIterator___ne__(self, *args)
140 
141  def __iadd__(self, *args):
142  """__iadd__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
143  return _IMP_gsl.IMP_GSL_SwigPyIterator___iadd__(self, *args)
144 
145  def __isub__(self, *args):
146  """__isub__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
147  return _IMP_gsl.IMP_GSL_SwigPyIterator___isub__(self, *args)
148 
149  def __add__(self, *args):
150  """__add__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
151  return _IMP_gsl.IMP_GSL_SwigPyIterator___add__(self, *args)
152 
153  def __sub__(self, *args):
154  """
155  __sub__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator
156  __sub__(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> ptrdiff_t
157  """
158  return _IMP_gsl.IMP_GSL_SwigPyIterator___sub__(self, *args)
159 
160  def __iter__(self): return self
161 IMP_GSL_SwigPyIterator_swigregister = _IMP_gsl.IMP_GSL_SwigPyIterator_swigregister
162 IMP_GSL_SwigPyIterator_swigregister(IMP_GSL_SwigPyIterator)
163 
164 _value_types=[]
165 _object_types=[]
166 _raii_types=[]
167 _plural_types=[]
168 
169 IMP_HAS_DEPRECATED = _IMP_gsl.IMP_HAS_DEPRECATED
170 IMP_DEBUG = _IMP_gsl.IMP_DEBUG
171 IMP_RELEASE = _IMP_gsl.IMP_RELEASE
172 IMP_SILENT = _IMP_gsl.IMP_SILENT
173 IMP_PROGRESS = _IMP_gsl.IMP_PROGRESS
174 IMP_TERSE = _IMP_gsl.IMP_TERSE
175 IMP_VERBOSE = _IMP_gsl.IMP_VERBOSE
176 IMP_NONE = _IMP_gsl.IMP_NONE
177 IMP_USAGE = _IMP_gsl.IMP_USAGE
178 IMP_INTERNAL = _IMP_gsl.IMP_INTERNAL
179 IMP_COMPILER_HAS_AUTO = _IMP_gsl.IMP_COMPILER_HAS_AUTO
180 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_gsl.IMP_COMPILER_HAS_DEBUG_VECTOR
181 IMP_COMPILER_HAS_NULLPTR = _IMP_gsl.IMP_COMPILER_HAS_NULLPTR
182 IMP_BASE_HAS_BOOST_RANDOM = _IMP_gsl.IMP_BASE_HAS_BOOST_RANDOM
183 IMP_BASE_HAS_GPERFTOOLS = _IMP_gsl.IMP_BASE_HAS_GPERFTOOLS
184 IMP_BASE_HAS_LOG4CXX = _IMP_gsl.IMP_BASE_HAS_LOG4CXX
185 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_gsl.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
186 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_gsl.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
187 import sys
188 class _DirectorObjects(object):
189  """@internal Simple class to keep references to director objects
190  to prevent premature deletion."""
191  def __init__(self):
192  self._objects = []
193  def register(self, obj):
194  """Take a reference to a director object; will only work for
195  refcounted C++ classes"""
196  if hasattr(obj, 'get_ref_count'):
197  self._objects.append(obj)
198  def cleanup(self):
199  """Only drop our reference and allow cleanup by Python if no other
200  Python references exist (we hold 3 references: one in self._objects,
201  one in x, and one in the argument list for getrefcount) *and* no
202  other C++ references exist (the Python object always holds one)"""
203  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
204  or x.get_ref_count() > 1]
205 
206 
207  self._objects = objs
208  def get_object_count(self):
209  """Get number of director objects (useful for testing only)"""
210  return len(self._objects)
211 _director_objects = _DirectorObjects()
212 
213 DEFAULT_CHECK = _IMP_gsl.DEFAULT_CHECK
214 NONE = _IMP_gsl.NONE
215 USAGE = _IMP_gsl.USAGE
216 USAGE_AND_INTERNAL = _IMP_gsl.USAGE_AND_INTERNAL
217 
218 def set_check_level(*args):
219  """set_check_level(IMP::base::CheckLevel tf)"""
220  return _IMP_gsl.set_check_level(*args)
221 
222 def get_check_level():
223  """get_check_level() -> IMP::base::CheckLevel"""
224  return _IMP_gsl.get_check_level()
225 class _ostream(_object):
226  """Proxy of C++ std::ostream class"""
227  __swig_setmethods__ = {}
228  __setattr__ = lambda self, name, value: _swig_setattr(self, _ostream, name, value)
229  __swig_getmethods__ = {}
230  __getattr__ = lambda self, name: _swig_getattr(self, _ostream, name)
231  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
232  __repr__ = _swig_repr
233  def write(self, *args):
234  """write(_ostream self, char const * osa_buf)"""
235  return _IMP_gsl._ostream_write(self, *args)
236 
237 _ostream_swigregister = _IMP_gsl._ostream_swigregister
238 _ostream_swigregister(_ostream)
239 
240 IMP_COMPILER_HAS_OVERRIDE = _IMP_gsl.IMP_COMPILER_HAS_OVERRIDE
241 IMP_COMPILER_HAS_FINAL = _IMP_gsl.IMP_COMPILER_HAS_FINAL
242 import IMP.base
243 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_gsl.IMP_CGAL_HAS_BOOST_FILESYSTEM
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_gsl.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_gsl.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_gsl.IMP_CGAL_HAS_BOOST_SYSTEM
247 import IMP.cgal
248 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_gsl.IMP_ALGEBRA_HAS_IMP_CGAL
249 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
250 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
251 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_RANDOM
252 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_SYSTEM
253 IMP_ALGEBRA_HAS_CGAL = _IMP_gsl.IMP_ALGEBRA_HAS_CGAL
254 IMP_ALGEBRA_HAS_ANN = _IMP_gsl.IMP_ALGEBRA_HAS_ANN
255 import IMP.algebra
256 IMP_KERNEL_HAS_IMP_CGAL = _IMP_gsl.IMP_KERNEL_HAS_IMP_CGAL
257 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_gsl.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
258 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_gsl.IMP_KERNEL_HAS_BOOST_RANDOM
259 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_gsl.IMP_KERNEL_HAS_BOOST_SYSTEM
260 IMP_KERNEL_HAS_CGAL = _IMP_gsl.IMP_KERNEL_HAS_CGAL
261 import IMP.kernel
262 IMP_GSL_HAS_IMP_BASE = _IMP_gsl.IMP_GSL_HAS_IMP_BASE
263 IMP_GSL_HAS_IMP_CGAL = _IMP_gsl.IMP_GSL_HAS_IMP_CGAL
264 IMP_GSL_HAS_BOOST_FILESYSTEM = _IMP_gsl.IMP_GSL_HAS_BOOST_FILESYSTEM
265 IMP_GSL_HAS_BOOST_PROGRAMOPTIONS = _IMP_gsl.IMP_GSL_HAS_BOOST_PROGRAMOPTIONS
266 IMP_GSL_HAS_BOOST_RANDOM = _IMP_gsl.IMP_GSL_HAS_BOOST_RANDOM
267 IMP_GSL_HAS_BOOST_SYSTEM = _IMP_gsl.IMP_GSL_HAS_BOOST_SYSTEM
268 IMP_GSL_HAS_CGAL = _IMP_gsl.IMP_GSL_HAS_CGAL
269 _object_types.append("GSLOptimizer")
270 
271 
272 def _object_cast_to_GSLOptimizer(*args):
273  """_object_cast_to_GSLOptimizer(Object o) -> GSLOptimizer"""
274  return _IMP_gsl._object_cast_to_GSLOptimizer(*args)
275 _object_types.append("ConjugateGradients")
276 
277 
278 def _object_cast_to_ConjugateGradients(*args):
279  """_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
280  return _IMP_gsl._object_cast_to_ConjugateGradients(*args)
281 _object_types.append("QuasiNewton")
282 
283 
284 def _object_cast_to_QuasiNewton(*args):
285  """_object_cast_to_QuasiNewton(Object o) -> QuasiNewton"""
286  return _IMP_gsl._object_cast_to_QuasiNewton(*args)
287 _object_types.append("Simplex")
288 
289 
290 def _object_cast_to_Simplex(*args):
291  """_object_cast_to_Simplex(Object o) -> Simplex"""
292  return _IMP_gsl._object_cast_to_Simplex(*args)
293 class GSLOptimizer(IMP.kernel.Optimizer):
294  """Proxy of C++ IMP::gsl::GSLOptimizer class"""
295  __swig_setmethods__ = {}
296  for _s in [IMP.kernel.Optimizer]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
297  __setattr__ = lambda self, name, value: _swig_setattr(self, GSLOptimizer, name, value)
298  __swig_getmethods__ = {}
299  for _s in [IMP.kernel.Optimizer]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
300  __getattr__ = lambda self, name: _swig_getattr(self, GSLOptimizer, name)
301  def __init__(self, *args):
302  """__init__(IMP::gsl::GSLOptimizer self, Model m) -> GSLOptimizer"""
303  if self.__class__ == GSLOptimizer:
304  _self = None
305  else:
306  _self = self
307  this = _IMP_gsl.new_GSLOptimizer(_self, *args)
308  try: self.this.append(this)
309  except: self.this = this
310  if self.__class__ != GSLOptimizer:
311  import IMP.base
312  IMP.base._director_objects.register(self)
313 
314 
315 
316  __swig_destroy__ = _IMP_gsl.delete_GSLOptimizer
317  __del__ = lambda self : None;
318  def set_stop_score(self, *args):
319  """set_stop_score(GSLOptimizer self, double d)"""
320  return _IMP_gsl.GSLOptimizer_set_stop_score(self, *args)
321 
322  def __str__(self):
323  """__str__(GSLOptimizer self) -> std::string"""
324  return _IMP_gsl.GSLOptimizer___str__(self)
325 
326  def __repr__(self):
327  """__repr__(GSLOptimizer self) -> std::string"""
328  return _IMP_gsl.GSLOptimizer___repr__(self)
329 
330  def get_from(o):
331  return _object_cast_to_GSLOptimizer(o)
332  get_from = staticmethod(get_from)
333 
334  def get_type_name(self):
335  return self.__class__.__name__
336  def do_show(self, out):
337  pass
338  def get_version_info(self):
339  if"IMP::gsl" == "IMP":
340  return VersionInfo("python", "0")
341  else:
342  return IMP.VersionInfo("python", "0")
343  def get_from(o):
344  return _object_cast_to_GSLOptimizer(o)
345  get_from = staticmethod(get_from)
346 
347  def __disown__(self):
348  self.this.disown()
349  _IMP_gsl.disown_GSLOptimizer(self)
350  return weakref_proxy(self)
351  def do_optimize(self, *args):
352  """do_optimize(GSLOptimizer self, unsigned int ns) -> double"""
353  return _IMP_gsl.GSLOptimizer_do_optimize(self, *args)
354 
355 GSLOptimizer_swigregister = _IMP_gsl.GSLOptimizer_swigregister
356 GSLOptimizer_swigregister(GSLOptimizer)
357 
358 class ConjugateGradients(GSLOptimizer):
359  """Proxy of C++ IMP::gsl::ConjugateGradients class"""
360  __swig_setmethods__ = {}
361  for _s in [GSLOptimizer]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
362  __setattr__ = lambda self, name, value: _swig_setattr(self, ConjugateGradients, name, value)
363  __swig_getmethods__ = {}
364  for _s in [GSLOptimizer]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
365  __getattr__ = lambda self, name: _swig_getattr(self, ConjugateGradients, name)
366  def __init__(self, *args):
367  """
368  __init__(IMP::gsl::ConjugateGradients self, Model m=nullptr) -> ConjugateGradients
369  __init__(IMP::gsl::ConjugateGradients self) -> ConjugateGradients
370  """
371  this = _IMP_gsl.new_ConjugateGradients(*args)
372  try: self.this.append(this)
373  except: self.this = this
374  def set_threshold(self, *args):
375  """set_threshold(ConjugateGradients self, double mg)"""
376  return _IMP_gsl.ConjugateGradients_set_threshold(self, *args)
377 
378  def do_optimize(self, *args):
379  """do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
380  return _IMP_gsl.ConjugateGradients_do_optimize(self, *args)
381 
382  def get_version_info(self):
383  """get_version_info(ConjugateGradients self) -> VersionInfo"""
384  return _IMP_gsl.ConjugateGradients_get_version_info(self)
385 
386  def do_show(self, *args):
387  """do_show(ConjugateGradients self, _ostream out)"""
388  return _IMP_gsl.ConjugateGradients_do_show(self, *args)
389 
390  __swig_destroy__ = _IMP_gsl.delete_ConjugateGradients
391  __del__ = lambda self : None;
392  def __str__(self):
393  """__str__(ConjugateGradients self) -> std::string"""
394  return _IMP_gsl.ConjugateGradients___str__(self)
395 
396  def __repr__(self):
397  """__repr__(ConjugateGradients self) -> std::string"""
398  return _IMP_gsl.ConjugateGradients___repr__(self)
399 
400  def get_from(o):
401  return _object_cast_to_ConjugateGradients(o)
402  get_from = staticmethod(get_from)
403 
404 ConjugateGradients_swigregister = _IMP_gsl.ConjugateGradients_swigregister
405 ConjugateGradients_swigregister(ConjugateGradients)
406 
407 class QuasiNewton(GSLOptimizer):
408  """Proxy of C++ IMP::gsl::QuasiNewton class"""
409  __swig_setmethods__ = {}
410  for _s in [GSLOptimizer]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
411  __setattr__ = lambda self, name, value: _swig_setattr(self, QuasiNewton, name, value)
412  __swig_getmethods__ = {}
413  for _s in [GSLOptimizer]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
414  __getattr__ = lambda self, name: _swig_getattr(self, QuasiNewton, name)
415  def __init__(self, *args):
416  """
417  __init__(IMP::gsl::QuasiNewton self, Model m=nullptr) -> QuasiNewton
418  __init__(IMP::gsl::QuasiNewton self) -> QuasiNewton
419  """
420  this = _IMP_gsl.new_QuasiNewton(*args)
421  try: self.this.append(this)
422  except: self.this = this
423  def set_initial_step(self, *args):
424  """set_initial_step(QuasiNewton self, double length)"""
425  return _IMP_gsl.QuasiNewton_set_initial_step(self, *args)
426 
427  def set_line_step(self, *args):
428  """set_line_step(QuasiNewton self, double d)"""
429  return _IMP_gsl.QuasiNewton_set_line_step(self, *args)
430 
431  def set_minimum_gradient(self, *args):
432  """set_minimum_gradient(QuasiNewton self, double d)"""
433  return _IMP_gsl.QuasiNewton_set_minimum_gradient(self, *args)
434 
435  def do_optimize(self, *args):
436  """do_optimize(QuasiNewton self, unsigned int max_steps) -> IMP::Float"""
437  return _IMP_gsl.QuasiNewton_do_optimize(self, *args)
438 
439  def get_version_info(self):
440  """get_version_info(QuasiNewton self) -> VersionInfo"""
441  return _IMP_gsl.QuasiNewton_get_version_info(self)
442 
443  def do_show(self, *args):
444  """do_show(QuasiNewton self, _ostream out)"""
445  return _IMP_gsl.QuasiNewton_do_show(self, *args)
446 
447  __swig_destroy__ = _IMP_gsl.delete_QuasiNewton
448  __del__ = lambda self : None;
449  def __str__(self):
450  """__str__(QuasiNewton self) -> std::string"""
451  return _IMP_gsl.QuasiNewton___str__(self)
452 
453  def __repr__(self):
454  """__repr__(QuasiNewton self) -> std::string"""
455  return _IMP_gsl.QuasiNewton___repr__(self)
456 
457  def get_from(o):
458  return _object_cast_to_QuasiNewton(o)
459  get_from = staticmethod(get_from)
460 
461 QuasiNewton_swigregister = _IMP_gsl.QuasiNewton_swigregister
462 QuasiNewton_swigregister(QuasiNewton)
463 
464 class Simplex(GSLOptimizer):
465  """Proxy of C++ IMP::gsl::Simplex class"""
466  __swig_setmethods__ = {}
467  for _s in [GSLOptimizer]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
468  __setattr__ = lambda self, name, value: _swig_setattr(self, Simplex, name, value)
469  __swig_getmethods__ = {}
470  for _s in [GSLOptimizer]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
471  __getattr__ = lambda self, name: _swig_getattr(self, Simplex, name)
472  def __init__(self, *args):
473  """
474  __init__(IMP::gsl::Simplex self, Model m=nullptr) -> Simplex
475  __init__(IMP::gsl::Simplex self) -> Simplex
476  """
477  this = _IMP_gsl.new_Simplex(*args)
478  try: self.this.append(this)
479  except: self.this = this
480  def set_initial_length(self, *args):
481  """set_initial_length(Simplex self, double length)"""
482  return _IMP_gsl.Simplex_set_initial_length(self, *args)
483 
484  def set_minimum_size(self, *args):
485  """set_minimum_size(Simplex self, double d)"""
486  return _IMP_gsl.Simplex_set_minimum_size(self, *args)
487 
488  def do_optimize(self, *args):
489  """do_optimize(Simplex self, unsigned int max_steps) -> IMP::Float"""
490  return _IMP_gsl.Simplex_do_optimize(self, *args)
491 
492  def get_version_info(self):
493  """get_version_info(Simplex self) -> VersionInfo"""
494  return _IMP_gsl.Simplex_get_version_info(self)
495 
496  def do_show(self, *args):
497  """do_show(Simplex self, _ostream out)"""
498  return _IMP_gsl.Simplex_do_show(self, *args)
499 
500  __swig_destroy__ = _IMP_gsl.delete_Simplex
501  __del__ = lambda self : None;
502  def __str__(self):
503  """__str__(Simplex self) -> std::string"""
504  return _IMP_gsl.Simplex___str__(self)
505 
506  def __repr__(self):
507  """__repr__(Simplex self) -> std::string"""
508  return _IMP_gsl.Simplex___repr__(self)
509 
510  def get_from(o):
511  return _object_cast_to_Simplex(o)
512  get_from = staticmethod(get_from)
513 
514 Simplex_swigregister = _IMP_gsl.Simplex_swigregister
515 Simplex_swigregister(Simplex)
516 
517 
518 def get_module_version():
519  """get_module_version() -> std::string const"""
520  return _IMP_gsl.get_module_version()
521 
522 def get_example_path(*args):
523  """get_example_path(std::string fname) -> std::string"""
524  return _IMP_gsl.get_example_path(*args)
525 
526 def get_data_path(*args):
527  """get_data_path(std::string fname) -> std::string"""
528  return _IMP_gsl.get_data_path(*args)
529 import _version_check
530 _version_check.check_version(get_module_version())
531 
532 # This file is compatible with both classic and new-style classes.
533 
534