IMP logo
IMP Reference Guide  2.21.0
The Integrative Modeling Platform
gsl/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.2.1
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 # This wrapper is part of IMP,
9 # Copyright 2007-2024 IMP Inventors. All rights reserved.
10 
11 from __future__ import print_function, division, absolute_import
12 
13 
14 
15 from sys import version_info as _swig_python_version_info
16 import _IMP_gsl
17 
18 try:
19  import builtins as __builtin__
20 except ImportError:
21  import __builtin__
22 
23 def _swig_repr(self):
24  try:
25  strthis = "proxy of " + self.this.__repr__()
26  except __builtin__.Exception:
27  strthis = ""
28  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
29 
30 
31 def _swig_setattr_nondynamic_instance_variable(set):
32  def set_instance_attr(self, name, value):
33  if name == "this":
34  set(self, name, value)
35  elif name == "thisown":
36  self.this.own(value)
37  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
38  set(self, name, value)
39  else:
40  raise AttributeError("You cannot add instance attributes to %s" % self)
41  return set_instance_attr
42 
43 
44 def _swig_setattr_nondynamic_class_variable(set):
45  def set_class_attr(cls, name, value):
46  if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
47  set(cls, name, value)
48  else:
49  raise AttributeError("You cannot add class attributes to %s" % cls)
50  return set_class_attr
51 
52 
53 def _swig_add_metaclass(metaclass):
54  """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55  def wrapper(cls):
56  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
57  return wrapper
58 
59 
60 class _SwigNonDynamicMeta(type):
61  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
62  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
63 
64 
65 import weakref
66 
67 class IMP_GSL_SwigPyIterator(object):
68  r"""Proxy of C++ swig::IMP_GSL_SwigPyIterator class."""
69 
70  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
71 
72  def __init__(self, *args, **kwargs):
73  raise AttributeError("No constructor defined - class is abstract")
74  __repr__ = _swig_repr
75  __swig_destroy__ = _IMP_gsl.delete_IMP_GSL_SwigPyIterator
76 
77  def value(self):
78  r"""value(IMP_GSL_SwigPyIterator self) -> PyObject *"""
79  return _IMP_gsl.IMP_GSL_SwigPyIterator_value(self)
80 
81  def incr(self, n=1):
82  r"""incr(IMP_GSL_SwigPyIterator self, size_t n=1) -> IMP_GSL_SwigPyIterator"""
83  return _IMP_gsl.IMP_GSL_SwigPyIterator_incr(self, n)
84 
85  def decr(self, n=1):
86  r"""decr(IMP_GSL_SwigPyIterator self, size_t n=1) -> IMP_GSL_SwigPyIterator"""
87  return _IMP_gsl.IMP_GSL_SwigPyIterator_decr(self, n)
88 
89  def distance(self, x):
90  r"""distance(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> ptrdiff_t"""
91  return _IMP_gsl.IMP_GSL_SwigPyIterator_distance(self, x)
92 
93  def equal(self, x):
94  r"""equal(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> bool"""
95  return _IMP_gsl.IMP_GSL_SwigPyIterator_equal(self, x)
96 
97  def copy(self):
98  r"""copy(IMP_GSL_SwigPyIterator self) -> IMP_GSL_SwigPyIterator"""
99  return _IMP_gsl.IMP_GSL_SwigPyIterator_copy(self)
100 
101  def next(self):
102  r"""next(IMP_GSL_SwigPyIterator self) -> PyObject *"""
103  return _IMP_gsl.IMP_GSL_SwigPyIterator_next(self)
104 
105  def __next__(self):
106  r"""__next__(IMP_GSL_SwigPyIterator self) -> PyObject *"""
107  return _IMP_gsl.IMP_GSL_SwigPyIterator___next__(self)
108 
109  def previous(self):
110  r"""previous(IMP_GSL_SwigPyIterator self) -> PyObject *"""
111  return _IMP_gsl.IMP_GSL_SwigPyIterator_previous(self)
112 
113  def advance(self, n):
114  r"""advance(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
115  return _IMP_gsl.IMP_GSL_SwigPyIterator_advance(self, n)
116 
117  def __eq__(self, x):
118  r"""__eq__(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> bool"""
119  return _IMP_gsl.IMP_GSL_SwigPyIterator___eq__(self, x)
120 
121  def __ne__(self, x):
122  r"""__ne__(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> bool"""
123  return _IMP_gsl.IMP_GSL_SwigPyIterator___ne__(self, x)
124 
125  def __iadd__(self, n):
126  r"""__iadd__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
127  return _IMP_gsl.IMP_GSL_SwigPyIterator___iadd__(self, n)
128 
129  def __isub__(self, n):
130  r"""__isub__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
131  return _IMP_gsl.IMP_GSL_SwigPyIterator___isub__(self, n)
132 
133  def __add__(self, n):
134  r"""__add__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator"""
135  return _IMP_gsl.IMP_GSL_SwigPyIterator___add__(self, n)
136 
137  def __sub__(self, *args):
138  r"""
139  __sub__(IMP_GSL_SwigPyIterator self, ptrdiff_t n) -> IMP_GSL_SwigPyIterator
140  __sub__(IMP_GSL_SwigPyIterator self, IMP_GSL_SwigPyIterator x) -> ptrdiff_t
141  """
142  return _IMP_gsl.IMP_GSL_SwigPyIterator___sub__(self, *args)
143  def __iter__(self):
144  return self
145 
146 # Register IMP_GSL_SwigPyIterator in _IMP_gsl:
147 _IMP_gsl.IMP_GSL_SwigPyIterator_swigregister(IMP_GSL_SwigPyIterator)
148 
149 _value_types=[]
150 _object_types=[]
151 _raii_types=[]
152 _plural_types=[]
153 
154 IMP_DEBUG = _IMP_gsl.IMP_DEBUG
155 
156 IMP_RELEASE = _IMP_gsl.IMP_RELEASE
157 
158 IMP_SILENT = _IMP_gsl.IMP_SILENT
159 
160 IMP_PROGRESS = _IMP_gsl.IMP_PROGRESS
161 
162 IMP_TERSE = _IMP_gsl.IMP_TERSE
163 
164 IMP_VERBOSE = _IMP_gsl.IMP_VERBOSE
165 
166 IMP_MEMORY = _IMP_gsl.IMP_MEMORY
167 
168 IMP_NONE = _IMP_gsl.IMP_NONE
169 
170 IMP_USAGE = _IMP_gsl.IMP_USAGE
171 
172 IMP_INTERNAL = _IMP_gsl.IMP_INTERNAL
173 
174 IMP_KERNEL_HAS_LOG4CXX = _IMP_gsl.IMP_KERNEL_HAS_LOG4CXX
175 
176 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_gsl.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 
178 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_gsl.IMP_COMPILER_HAS_DEBUG_VECTOR
179 
180 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_gsl.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 
182 IMP_COMPILER_HAS_THREE_WAY = _IMP_gsl.IMP_COMPILER_HAS_THREE_WAY
183 
184 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_gsl.IMP_KERNEL_HAS_BOOST_RANDOM
185 
186 IMP_KERNEL_HAS_NUMPY = _IMP_gsl.IMP_KERNEL_HAS_NUMPY
187 
188 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_gsl.IMP_KERNEL_HAS_GPERFTOOLS
189 
190 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_gsl.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 
192 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_gsl.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 
194 IMPKERNEL_SHOW_WARNINGS = _IMP_gsl.IMPKERNEL_SHOW_WARNINGS
195 
196 
197 import sys
198 class _DirectorObjects(object):
199  """@internal Simple class to keep references to director objects
200  to prevent premature deletion."""
201  def __init__(self):
202  self._objects = []
203  def register(self, obj):
204  """Take a reference to a director object; will only work for
205  refcounted C++ classes"""
206  if hasattr(obj, 'get_ref_count'):
207  self._objects.append(obj)
208  def cleanup(self):
209  """Only drop our reference and allow cleanup by Python if no other
210  Python references exist (we hold 3 references: one in self._objects,
211  one in x, and one in the argument list for getrefcount) *and* no
212  other C++ references exist (the Python object always holds one)"""
213  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
214  or x.get_ref_count() > 1]
215 # Do in two steps so the references are kept until the end of the
216 # function (deleting references may trigger a fresh call to this method)
217  self._objects = objs
218  def get_object_count(self):
219  """Get number of director objects (useful for testing only)"""
220  return len(self._objects)
221 _director_objects = _DirectorObjects()
222 
223 class _ostream(object):
224  r"""Proxy of C++ std::ostream class."""
225 
226  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
227 
228  def __init__(self, *args, **kwargs):
229  raise AttributeError("No constructor defined")
230  __repr__ = _swig_repr
231 
232  def write(self, osa_buf):
233  r"""write(_ostream self, char const * osa_buf)"""
234  return _IMP_gsl._ostream_write(self, osa_buf)
235 
236 # Register _ostream in _IMP_gsl:
237 _IMP_gsl._ostream_swigregister(_ostream)
238 IMP_C_OPEN_BINARY = _IMP_gsl.IMP_C_OPEN_BINARY
239 
240 import IMP
241 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_gsl.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 
243 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_gsl.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 
245 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_gsl.IMP_CGAL_HAS_BOOST_RANDOM
246 
247 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_gsl.IMP_CGAL_HAS_BOOST_SYSTEM
248 
249 IMP_CGAL_HAS_NUMPY = _IMP_gsl.IMP_CGAL_HAS_NUMPY
250 
251 IMPCGAL_SHOW_WARNINGS = _IMP_gsl.IMPCGAL_SHOW_WARNINGS
252 
253 import IMP.cgal
254 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_gsl.IMP_ALGEBRA_HAS_IMP_CGAL
255 
256 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 
258 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 
260 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 
262 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_gsl.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 
264 IMP_ALGEBRA_HAS_CGAL = _IMP_gsl.IMP_ALGEBRA_HAS_CGAL
265 
266 IMP_ALGEBRA_HAS_NUMPY = _IMP_gsl.IMP_ALGEBRA_HAS_NUMPY
267 
268 IMP_ALGEBRA_HAS_ANN = _IMP_gsl.IMP_ALGEBRA_HAS_ANN
269 
270 IMPALGEBRA_SHOW_WARNINGS = _IMP_gsl.IMPALGEBRA_SHOW_WARNINGS
271 
272 import IMP.algebra
273 IMP_GSL_HAS_IMP_CGAL = _IMP_gsl.IMP_GSL_HAS_IMP_CGAL
274 
275 IMP_GSL_HAS_BOOST_FILESYSTEM = _IMP_gsl.IMP_GSL_HAS_BOOST_FILESYSTEM
276 
277 IMP_GSL_HAS_BOOST_PROGRAMOPTIONS = _IMP_gsl.IMP_GSL_HAS_BOOST_PROGRAMOPTIONS
278 
279 IMP_GSL_HAS_BOOST_RANDOM = _IMP_gsl.IMP_GSL_HAS_BOOST_RANDOM
280 
281 IMP_GSL_HAS_BOOST_SYSTEM = _IMP_gsl.IMP_GSL_HAS_BOOST_SYSTEM
282 
283 IMP_GSL_HAS_CGAL = _IMP_gsl.IMP_GSL_HAS_CGAL
284 
285 IMP_GSL_HAS_NUMPY = _IMP_gsl.IMP_GSL_HAS_NUMPY
286 
287 IMPGSL_SHOW_WARNINGS = _IMP_gsl.IMPGSL_SHOW_WARNINGS
288 
289 
290 _object_types.append("GSLOptimizer")
291 
292 
293 def _object_cast_to_GSLOptimizer(o):
294  r"""_object_cast_to_GSLOptimizer(Object o) -> GSLOptimizer"""
295  return _IMP_gsl._object_cast_to_GSLOptimizer(o)
296 
297 _object_types.append("ConjugateGradients")
298 
299 
300 def _object_cast_to_ConjugateGradients(o):
301  r"""_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
302  return _IMP_gsl._object_cast_to_ConjugateGradients(o)
303 
304 _object_types.append("QuasiNewton")
305 
306 
307 def _object_cast_to_QuasiNewton(o):
308  r"""_object_cast_to_QuasiNewton(Object o) -> QuasiNewton"""
309  return _IMP_gsl._object_cast_to_QuasiNewton(o)
310 
311 _object_types.append("Simplex")
312 
313 
314 def _object_cast_to_Simplex(o):
315  r"""_object_cast_to_Simplex(Object o) -> Simplex"""
316  return _IMP_gsl._object_cast_to_Simplex(o)
317 class GSLOptimizer(IMP.AttributeOptimizer):
318  r"""Proxy of C++ IMP::gsl::GSLOptimizer class."""
319 
320  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
321 
322  def __init__(self, m):
323  r"""__init__(GSLOptimizer self, Model m) -> GSLOptimizer"""
324  if self.__class__ == GSLOptimizer:
325  _self = None
326  else:
327  _self = self
328  _IMP_gsl.GSLOptimizer_swiginit(self, _IMP_gsl.new_GSLOptimizer(_self, m))
329 
330  if self.__class__ != GSLOptimizer:
331  _director_objects.register(self)
332 
333 
334 
335  __swig_destroy__ = _IMP_gsl.delete_GSLOptimizer
336 
337  def set_stop_score(self, d):
338  r"""set_stop_score(GSLOptimizer self, double d)"""
339  return _IMP_gsl.GSLOptimizer_set_stop_score(self, d)
340 
341  def __str__(self):
342  r"""__str__(GSLOptimizer self) -> std::string"""
343  return _IMP_gsl.GSLOptimizer___str__(self)
344 
345  def __repr__(self):
346  r"""__repr__(GSLOptimizer self) -> std::string"""
347  return _IMP_gsl.GSLOptimizer___repr__(self)
348 
349  @staticmethod
350  def get_from(o):
351  return _object_cast_to_GSLOptimizer(o)
352 
353 
354  def get_type_name(self):
355  return self.__class__.__name__
356  def do_show(self, out):
357  pass
358  def get_version_info(self):
359  if"IMP::gsl" == "IMP":
360  return VersionInfo(self.__module__,
361  __import__(self.__module__).get_module_version())
362  else:
363  return IMP.VersionInfo(self.__module__,
364  __import__(self.__module__).get_module_version())
365  @staticmethod
366  def get_from(o):
367  return _object_cast_to_GSLOptimizer(o)
368 
369  def __disown__(self):
370  self.this.disown()
371  _IMP_gsl.disown_GSLOptimizer(self)
372  return weakref.proxy(self)
373 
374  def do_destroy(self):
375  r"""do_destroy(GSLOptimizer self)"""
376  return _IMP_gsl.GSLOptimizer_do_destroy(self)
377 
378  def handle_set_has_required_score_states(self, arg0):
379  r"""handle_set_has_required_score_states(GSLOptimizer self, bool arg0)"""
380  return _IMP_gsl.GSLOptimizer_handle_set_has_required_score_states(self, arg0)
381 
382  def do_get_inputs(self):
383  r"""do_get_inputs(GSLOptimizer self) -> IMP::ModelObjectsTemp"""
384  return _IMP_gsl.GSLOptimizer_do_get_inputs(self)
385 
386  def do_get_outputs(self):
387  r"""do_get_outputs(GSLOptimizer self) -> IMP::ModelObjectsTemp"""
388  return _IMP_gsl.GSLOptimizer_do_get_outputs(self)
389 
390  def do_get_interactions(self):
391  r"""do_get_interactions(GSLOptimizer self) -> IMP::ModelObjectsTemps"""
392  return _IMP_gsl.GSLOptimizer_do_get_interactions(self)
393 
394  def do_optimize(self, ns):
395  r"""do_optimize(GSLOptimizer self, unsigned int ns) -> double"""
396  return _IMP_gsl.GSLOptimizer_do_optimize(self, ns)
397 
398 # Register GSLOptimizer in _IMP_gsl:
399 _IMP_gsl.GSLOptimizer_swigregister(GSLOptimizer)
400 class ConjugateGradients(GSLOptimizer):
401  r"""Proxy of C++ IMP::gsl::ConjugateGradients class."""
402 
403  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
404 
405  def __init__(self, m):
406  r"""__init__(ConjugateGradients self, Model m) -> ConjugateGradients"""
407  _IMP_gsl.ConjugateGradients_swiginit(self, _IMP_gsl.new_ConjugateGradients(m))
408 
409  def set_threshold(self, mg):
410  r"""set_threshold(ConjugateGradients self, double mg)"""
411  return _IMP_gsl.ConjugateGradients_set_threshold(self, mg)
412 
413  def do_optimize(self, max_steps):
414  r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
415  return _IMP_gsl.ConjugateGradients_do_optimize(self, max_steps)
416 
417  def get_version_info(self):
418  r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
419  return _IMP_gsl.ConjugateGradients_get_version_info(self)
420  __swig_destroy__ = _IMP_gsl.delete_ConjugateGradients
421 
422  def __str__(self):
423  r"""__str__(ConjugateGradients self) -> std::string"""
424  return _IMP_gsl.ConjugateGradients___str__(self)
425 
426  def __repr__(self):
427  r"""__repr__(ConjugateGradients self) -> std::string"""
428  return _IMP_gsl.ConjugateGradients___repr__(self)
429 
430  @staticmethod
431  def get_from(o):
432  return _object_cast_to_ConjugateGradients(o)
433 
434 
435 # Register ConjugateGradients in _IMP_gsl:
436 _IMP_gsl.ConjugateGradients_swigregister(ConjugateGradients)
437 class QuasiNewton(GSLOptimizer):
438  r"""Proxy of C++ IMP::gsl::QuasiNewton class."""
439 
440  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
441 
442  def __init__(self, m):
443  r"""__init__(QuasiNewton self, Model m) -> QuasiNewton"""
444  _IMP_gsl.QuasiNewton_swiginit(self, _IMP_gsl.new_QuasiNewton(m))
445 
446  def set_initial_step(self, length):
447  r"""set_initial_step(QuasiNewton self, double length)"""
448  return _IMP_gsl.QuasiNewton_set_initial_step(self, length)
449 
450  def set_line_step(self, d):
451  r"""set_line_step(QuasiNewton self, double d)"""
452  return _IMP_gsl.QuasiNewton_set_line_step(self, d)
453 
454  def set_minimum_gradient(self, d):
455  r"""set_minimum_gradient(QuasiNewton self, double d)"""
456  return _IMP_gsl.QuasiNewton_set_minimum_gradient(self, d)
457 
458  def do_optimize(self, max_steps):
459  r"""do_optimize(QuasiNewton self, unsigned int max_steps) -> IMP::Float"""
460  return _IMP_gsl.QuasiNewton_do_optimize(self, max_steps)
461 
462  def get_version_info(self):
463  r"""get_version_info(QuasiNewton self) -> VersionInfo"""
464  return _IMP_gsl.QuasiNewton_get_version_info(self)
465  __swig_destroy__ = _IMP_gsl.delete_QuasiNewton
466 
467  def __str__(self):
468  r"""__str__(QuasiNewton self) -> std::string"""
469  return _IMP_gsl.QuasiNewton___str__(self)
470 
471  def __repr__(self):
472  r"""__repr__(QuasiNewton self) -> std::string"""
473  return _IMP_gsl.QuasiNewton___repr__(self)
474 
475  @staticmethod
476  def get_from(o):
477  return _object_cast_to_QuasiNewton(o)
478 
479 
480 # Register QuasiNewton in _IMP_gsl:
481 _IMP_gsl.QuasiNewton_swigregister(QuasiNewton)
482 class Simplex(GSLOptimizer):
483  r"""Proxy of C++ IMP::gsl::Simplex class."""
484 
485  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
486 
487  def __init__(self, m):
488  r"""__init__(Simplex self, Model m) -> Simplex"""
489  _IMP_gsl.Simplex_swiginit(self, _IMP_gsl.new_Simplex(m))
490 
491  def set_initial_length(self, length):
492  r"""set_initial_length(Simplex self, double length)"""
493  return _IMP_gsl.Simplex_set_initial_length(self, length)
494 
495  def set_minimum_size(self, d):
496  r"""set_minimum_size(Simplex self, double d)"""
497  return _IMP_gsl.Simplex_set_minimum_size(self, d)
498 
499  def do_optimize(self, max_steps):
500  r"""do_optimize(Simplex self, unsigned int max_steps) -> IMP::Float"""
501  return _IMP_gsl.Simplex_do_optimize(self, max_steps)
502 
503  def get_version_info(self):
504  r"""get_version_info(Simplex self) -> VersionInfo"""
505  return _IMP_gsl.Simplex_get_version_info(self)
506  __swig_destroy__ = _IMP_gsl.delete_Simplex
507 
508  def __str__(self):
509  r"""__str__(Simplex self) -> std::string"""
510  return _IMP_gsl.Simplex___str__(self)
511 
512  def __repr__(self):
513  r"""__repr__(Simplex self) -> std::string"""
514  return _IMP_gsl.Simplex___repr__(self)
515 
516  @staticmethod
517  def get_from(o):
518  return _object_cast_to_Simplex(o)
519 
520 
521 # Register Simplex in _IMP_gsl:
522 _IMP_gsl.Simplex_swigregister(Simplex)
523 
524 def get_module_version():
525  r"""get_module_version() -> std::string const"""
526  return _IMP_gsl.get_module_version()
527 
528 def get_example_path(fname):
529  r"""get_example_path(std::string fname) -> std::string"""
530  return _IMP_gsl.get_example_path(fname)
531 
532 def get_data_path(fname):
533  r"""get_data_path(std::string fname) -> std::string"""
534  return _IMP_gsl.get_data_path(fname)
535 
536 from . import _version_check
537 _version_check.check_version(get_module_version())
538 __version__ = get_module_version()
539 
540 
Make CGAL functionality available to IMP.
virtual ModelObjectsTemp do_get_outputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the outputs.
virtual void do_destroy()
Definition: Object.h:274
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
Version and module information for Objects.
Definition: VersionInfo.h:29
Base class for optimizers that act on individual attributes.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
std::string get_module_version()
Return the version of this module, as a string.
virtual VersionInfo get_version_info() const
Get information about the module and version of the object.
Definition: Object.h:206
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.