seldon.py

00001 # This file was automatically generated by SWIG (http://www.swig.org).
00002 # Version 2.0.4
00003 #
00004 # Do not make changes to this file unless you know what you are doing--modify
00005 # the SWIG interface file instead.
00006 
00007 
00008 
00009 from sys import version_info
00010 if version_info >= (2,6,0):
00011     def swig_import_helper():
00012         from os.path import dirname
00013         import imp
00014         fp = None
00015         try:
00016             fp, pathname, description = imp.find_module('_seldon', [dirname(__file__)])
00017         except ImportError:
00018             import _seldon
00019             return _seldon
00020         if fp is not None:
00021             try:
00022                 _mod = imp.load_module('_seldon', fp, pathname, description)
00023             finally:
00024                 fp.close()
00025             return _mod
00026     _seldon = swig_import_helper()
00027     del swig_import_helper
00028 else:
00029     import _seldon
00030 del version_info
00031 try:
00032     _swig_property = property
00033 except NameError:
00034     pass # Python < 2.2 doesn't have 'property'.
00035 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
00036     if (name == "thisown"): return self.this.own(value)
00037     if (name == "this"):
00038         if type(value).__name__ == 'SwigPyObject':
00039             self.__dict__[name] = value
00040             return
00041     method = class_type.__swig_setmethods__.get(name,None)
00042     if method: return method(self,value)
00043     if (not static):
00044         self.__dict__[name] = value
00045     else:
00046         raise AttributeError("You cannot add attributes to %s" % self)
00047 
00048 def _swig_setattr(self,class_type,name,value):
00049     return _swig_setattr_nondynamic(self,class_type,name,value,0)
00050 
00051 def _swig_getattr(self,class_type,name):
00052     if (name == "thisown"): return self.this.own()
00053     method = class_type.__swig_getmethods__.get(name,None)
00054     if method: return method(self)
00055     raise AttributeError(name)
00056 
00057 def _swig_repr(self):
00058     try: strthis = "proxy of " + self.this.__repr__()
00059     except: strthis = ""
00060     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
00061 
00062 try:
00063     _object = object
00064     _newclass = 1
00065 except AttributeError:
00066     class _object : pass
00067     _newclass = 0
00068 
00069 
00070 class SwigPyIterator(_object):
00071     __swig_setmethods__ = {}
00072     __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
00073     __swig_getmethods__ = {}
00074     __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
00075     def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
00076     __repr__ = _swig_repr
00077     __swig_destroy__ = _seldon.delete_SwigPyIterator
00078     __del__ = lambda self : None;
00079     def value(self): return _seldon.SwigPyIterator_value(self)
00080     def incr(self, n = 1): return _seldon.SwigPyIterator_incr(self, n)
00081     def decr(self, n = 1): return _seldon.SwigPyIterator_decr(self, n)
00082     def distance(self, *args): return _seldon.SwigPyIterator_distance(self, *args)
00083     def equal(self, *args): return _seldon.SwigPyIterator_equal(self, *args)
00084     def copy(self): return _seldon.SwigPyIterator_copy(self)
00085     def next(self): return _seldon.SwigPyIterator_next(self)
00086     def __next__(self): return _seldon.SwigPyIterator___next__(self)
00087     def previous(self): return _seldon.SwigPyIterator_previous(self)
00088     def advance(self, *args): return _seldon.SwigPyIterator_advance(self, *args)
00089     def __eq__(self, *args): return _seldon.SwigPyIterator___eq__(self, *args)
00090     def __ne__(self, *args): return _seldon.SwigPyIterator___ne__(self, *args)
00091     def __iadd__(self, *args): return _seldon.SwigPyIterator___iadd__(self, *args)
00092     def __isub__(self, *args): return _seldon.SwigPyIterator___isub__(self, *args)
00093     def __add__(self, *args): return _seldon.SwigPyIterator___add__(self, *args)
00094     def __sub__(self, *args): return _seldon.SwigPyIterator___sub__(self, *args)
00095     def __iter__(self): return self
00096 SwigPyIterator_swigregister = _seldon.SwigPyIterator_swigregister
00097 SwigPyIterator_swigregister(SwigPyIterator)
00098 
00099 class ios_base(_object):
00100     __swig_setmethods__ = {}
00101     __setattr__ = lambda self, name, value: _swig_setattr(self, ios_base, name, value)
00102     __swig_getmethods__ = {}
00103     __getattr__ = lambda self, name: _swig_getattr(self, ios_base, name)
00104     def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
00105     __repr__ = _swig_repr
00106     erase_event = _seldon.ios_base_erase_event
00107     imbue_event = _seldon.ios_base_imbue_event
00108     copyfmt_event = _seldon.ios_base_copyfmt_event
00109     def register_callback(self, *args): return _seldon.ios_base_register_callback(self, *args)
00110     def flags(self, *args): return _seldon.ios_base_flags(self, *args)
00111     def setf(self, *args): return _seldon.ios_base_setf(self, *args)
00112     def unsetf(self, *args): return _seldon.ios_base_unsetf(self, *args)
00113     def precision(self, *args): return _seldon.ios_base_precision(self, *args)
00114     def width(self, *args): return _seldon.ios_base_width(self, *args)
00115     __swig_getmethods__["sync_with_stdio"] = lambda x: _seldon.ios_base_sync_with_stdio
00116     if _newclass:sync_with_stdio = staticmethod(_seldon.ios_base_sync_with_stdio)
00117     def imbue(self, *args): return _seldon.ios_base_imbue(self, *args)
00118     def getloc(self): return _seldon.ios_base_getloc(self)
00119     __swig_getmethods__["xalloc"] = lambda x: _seldon.ios_base_xalloc
00120     if _newclass:xalloc = staticmethod(_seldon.ios_base_xalloc)
00121     def iword(self, *args): return _seldon.ios_base_iword(self, *args)
00122     def pword(self, *args): return _seldon.ios_base_pword(self, *args)
00123     __swig_destroy__ = _seldon.delete_ios_base
00124     __del__ = lambda self : None;
00125 ios_base_swigregister = _seldon.ios_base_swigregister
00126 ios_base_swigregister(ios_base)
00127 cvar = _seldon.cvar
00128 ios_base.boolalpha = _seldon.cvar.ios_base_boolalpha
00129 ios_base.dec = _seldon.cvar.ios_base_dec
00130 ios_base.fixed = _seldon.cvar.ios_base_fixed
00131 ios_base.hex = _seldon.cvar.ios_base_hex
00132 ios_base.internal = _seldon.cvar.ios_base_internal
00133 ios_base.left = _seldon.cvar.ios_base_left
00134 ios_base.oct = _seldon.cvar.ios_base_oct
00135 ios_base.right = _seldon.cvar.ios_base_right
00136 ios_base.scientific = _seldon.cvar.ios_base_scientific
00137 ios_base.showbase = _seldon.cvar.ios_base_showbase
00138 ios_base.showpoint = _seldon.cvar.ios_base_showpoint
00139 ios_base.showpos = _seldon.cvar.ios_base_showpos
00140 ios_base.skipws = _seldon.cvar.ios_base_skipws
00141 ios_base.unitbuf = _seldon.cvar.ios_base_unitbuf
00142 ios_base.uppercase = _seldon.cvar.ios_base_uppercase
00143 ios_base.adjustfield = _seldon.cvar.ios_base_adjustfield
00144 ios_base.basefield = _seldon.cvar.ios_base_basefield
00145 ios_base.floatfield = _seldon.cvar.ios_base_floatfield
00146 ios_base.badbit = _seldon.cvar.ios_base_badbit
00147 ios_base.eofbit = _seldon.cvar.ios_base_eofbit
00148 ios_base.failbit = _seldon.cvar.ios_base_failbit
00149 ios_base.goodbit = _seldon.cvar.ios_base_goodbit
00150 ios_base.app = _seldon.cvar.ios_base_app
00151 ios_base.ate = _seldon.cvar.ios_base_ate
00152 ios_base.binary = _seldon.cvar.ios_base_binary
00153 ios_base.ios_base_in = _seldon.cvar.ios_base_ios_base_in
00154 ios_base.out = _seldon.cvar.ios_base_out
00155 ios_base.trunc = _seldon.cvar.ios_base_trunc
00156 ios_base.beg = _seldon.cvar.ios_base_beg
00157 ios_base.cur = _seldon.cvar.ios_base_cur
00158 ios_base.end = _seldon.cvar.ios_base_end
00159 
00160 def ios_base_sync_with_stdio(__sync = True):
00161   return _seldon.ios_base_sync_with_stdio(__sync)
00162 ios_base_sync_with_stdio = _seldon.ios_base_sync_with_stdio
00163 
00164 def ios_base_xalloc():
00165   return _seldon.ios_base_xalloc()
00166 ios_base_xalloc = _seldon.ios_base_xalloc
00167 
00168 class ios(ios_base):
00169     __swig_setmethods__ = {}
00170     for _s in [ios_base]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00171     __setattr__ = lambda self, name, value: _swig_setattr(self, ios, name, value)
00172     __swig_getmethods__ = {}
00173     for _s in [ios_base]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00174     __getattr__ = lambda self, name: _swig_getattr(self, ios, name)
00175     __repr__ = _swig_repr
00176     def rdstate(self): return _seldon.ios_rdstate(self)
00177     def clear(self, *args): return _seldon.ios_clear(self, *args)
00178     def setstate(self, *args): return _seldon.ios_setstate(self, *args)
00179     def good(self): return _seldon.ios_good(self)
00180     def eof(self): return _seldon.ios_eof(self)
00181     def fail(self): return _seldon.ios_fail(self)
00182     def bad(self): return _seldon.ios_bad(self)
00183     def exceptions(self, *args): return _seldon.ios_exceptions(self, *args)
00184     def __init__(self, *args): 
00185         this = _seldon.new_ios(*args)
00186         try: self.this.append(this)
00187         except: self.this = this
00188     __swig_destroy__ = _seldon.delete_ios
00189     __del__ = lambda self : None;
00190     def tie(self, *args): return _seldon.ios_tie(self, *args)
00191     def rdbuf(self, *args): return _seldon.ios_rdbuf(self, *args)
00192     def copyfmt(self, *args): return _seldon.ios_copyfmt(self, *args)
00193     def fill(self, *args): return _seldon.ios_fill(self, *args)
00194     def imbue(self, *args): return _seldon.ios_imbue(self, *args)
00195     def narrow(self, *args): return _seldon.ios_narrow(self, *args)
00196     def widen(self, *args): return _seldon.ios_widen(self, *args)
00197 ios_swigregister = _seldon.ios_swigregister
00198 ios_swigregister(ios)
00199 
00200 class string(_object):
00201     __swig_setmethods__ = {}
00202     __setattr__ = lambda self, name, value: _swig_setattr(self, string, name, value)
00203     __swig_getmethods__ = {}
00204     __getattr__ = lambda self, name: _swig_getattr(self, string, name)
00205     __repr__ = _swig_repr
00206     def length(self): return _seldon.string_length(self)
00207     def max_size(self): return _seldon.string_max_size(self)
00208     def capacity(self): return _seldon.string_capacity(self)
00209     def reserve(self, __res_arg = 0): return _seldon.string_reserve(self, __res_arg)
00210     def copy(self, *args): return _seldon.string_copy(self, *args)
00211     def c_str(self): return _seldon.string_c_str(self)
00212     def find(self, *args): return _seldon.string_find(self, *args)
00213     def rfind(self, *args): return _seldon.string_rfind(self, *args)
00214     def find_first_of(self, *args): return _seldon.string_find_first_of(self, *args)
00215     def find_last_of(self, *args): return _seldon.string_find_last_of(self, *args)
00216     def find_first_not_of(self, *args): return _seldon.string_find_first_not_of(self, *args)
00217     def find_last_not_of(self, *args): return _seldon.string_find_last_not_of(self, *args)
00218     def substr(self, *args): return _seldon.string_substr(self, *args)
00219     def empty(self): return _seldon.string_empty(self)
00220     def size(self): return _seldon.string_size(self)
00221     def swap(self, *args): return _seldon.string_swap(self, *args)
00222     def get_allocator(self): return _seldon.string_get_allocator(self)
00223     def begin(self): return _seldon.string_begin(self)
00224     def end(self): return _seldon.string_end(self)
00225     def rbegin(self): return _seldon.string_rbegin(self)
00226     def rend(self): return _seldon.string_rend(self)
00227     def erase(self, *args): return _seldon.string_erase(self, *args)
00228     def __init__(self, *args): 
00229         this = _seldon.new_string(*args)
00230         try: self.this.append(this)
00231         except: self.this = this
00232     def assign(self, *args): return _seldon.string_assign(self, *args)
00233     def resize(self, *args): return _seldon.string_resize(self, *args)
00234     def iterator(self): return _seldon.string_iterator(self)
00235     def __iter__(self): return self.iterator()
00236     def __nonzero__(self): return _seldon.string___nonzero__(self)
00237     def __bool__(self): return _seldon.string___bool__(self)
00238     def __len__(self): return _seldon.string___len__(self)
00239     def __getslice__(self, *args): return _seldon.string___getslice__(self, *args)
00240     def __setslice__(self, *args): return _seldon.string___setslice__(self, *args)
00241     def __delslice__(self, *args): return _seldon.string___delslice__(self, *args)
00242     def __delitem__(self, *args): return _seldon.string___delitem__(self, *args)
00243     def __getitem__(self, *args): return _seldon.string___getitem__(self, *args)
00244     def __setitem__(self, *args): return _seldon.string___setitem__(self, *args)
00245     def insert(self, *args): return _seldon.string_insert(self, *args)
00246     def replace(self, *args): return _seldon.string_replace(self, *args)
00247     def __iadd__(self, *args): return _seldon.string___iadd__(self, *args)
00248     def __add__(self, *args): return _seldon.string___add__(self, *args)
00249     def __radd__(self, *args): return _seldon.string___radd__(self, *args)
00250     def __str__(self): return _seldon.string___str__(self)
00251     def __rlshift__(self, *args): return _seldon.string___rlshift__(self, *args)
00252     def __eq__(self, *args): return _seldon.string___eq__(self, *args)
00253     def __ne__(self, *args): return _seldon.string___ne__(self, *args)
00254     def __gt__(self, *args): return _seldon.string___gt__(self, *args)
00255     def __lt__(self, *args): return _seldon.string___lt__(self, *args)
00256     def __ge__(self, *args): return _seldon.string___ge__(self, *args)
00257     def __le__(self, *args): return _seldon.string___le__(self, *args)
00258     __swig_destroy__ = _seldon.delete_string
00259     __del__ = lambda self : None;
00260 string_swigregister = _seldon.string_swigregister
00261 string_swigregister(string)
00262 string.npos = _seldon.cvar.string_npos
00263 
00264 class ostream(ios):
00265     __swig_setmethods__ = {}
00266     for _s in [ios]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00267     __setattr__ = lambda self, name, value: _swig_setattr(self, ostream, name, value)
00268     __swig_getmethods__ = {}
00269     for _s in [ios]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00270     __getattr__ = lambda self, name: _swig_getattr(self, ostream, name)
00271     __repr__ = _swig_repr
00272     def __init__(self, *args): 
00273         this = _seldon.new_ostream(*args)
00274         try: self.this.append(this)
00275         except: self.this = this
00276     __swig_destroy__ = _seldon.delete_ostream
00277     __del__ = lambda self : None;
00278     def __lshift__(self, *args): return _seldon.ostream___lshift__(self, *args)
00279     def put(self, *args): return _seldon.ostream_put(self, *args)
00280     def write(self, *args): return _seldon.ostream_write(self, *args)
00281     def flush(self): return _seldon.ostream_flush(self)
00282     def tellp(self): return _seldon.ostream_tellp(self)
00283     def seekp(self, *args): return _seldon.ostream_seekp(self, *args)
00284 ostream_swigregister = _seldon.ostream_swigregister
00285 ostream_swigregister(ostream)
00286 cin = cvar.cin
00287 cout = cvar.cout
00288 cerr = cvar.cerr
00289 clog = cvar.clog
00290 
00291 class istream(ios):
00292     __swig_setmethods__ = {}
00293     for _s in [ios]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00294     __setattr__ = lambda self, name, value: _swig_setattr(self, istream, name, value)
00295     __swig_getmethods__ = {}
00296     for _s in [ios]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00297     __getattr__ = lambda self, name: _swig_getattr(self, istream, name)
00298     __repr__ = _swig_repr
00299     def __init__(self, *args): 
00300         this = _seldon.new_istream(*args)
00301         try: self.this.append(this)
00302         except: self.this = this
00303     __swig_destroy__ = _seldon.delete_istream
00304     __del__ = lambda self : None;
00305     def __rshift__(self, *args): return _seldon.istream___rshift__(self, *args)
00306     def gcount(self): return _seldon.istream_gcount(self)
00307     def get(self, *args): return _seldon.istream_get(self, *args)
00308     def getline(self, *args): return _seldon.istream_getline(self, *args)
00309     def ignore(self, *args): return _seldon.istream_ignore(self, *args)
00310     def peek(self): return _seldon.istream_peek(self)
00311     def read(self, *args): return _seldon.istream_read(self, *args)
00312     def readsome(self, *args): return _seldon.istream_readsome(self, *args)
00313     def putback(self, *args): return _seldon.istream_putback(self, *args)
00314     def unget(self): return _seldon.istream_unget(self)
00315     def sync(self): return _seldon.istream_sync(self)
00316     def tellg(self): return _seldon.istream_tellg(self)
00317     def seekg(self, *args): return _seldon.istream_seekg(self, *args)
00318 istream_swigregister = _seldon.istream_swigregister
00319 istream_swigregister(istream)
00320 
00321 class iostream(istream,ostream):
00322     __swig_setmethods__ = {}
00323     for _s in [istream,ostream]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00324     __setattr__ = lambda self, name, value: _swig_setattr(self, iostream, name, value)
00325     __swig_getmethods__ = {}
00326     for _s in [istream,ostream]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00327     __getattr__ = lambda self, name: _swig_getattr(self, iostream, name)
00328     __repr__ = _swig_repr
00329     def __init__(self, *args): 
00330         this = _seldon.new_iostream(*args)
00331         try: self.this.append(this)
00332         except: self.this = this
00333     __swig_destroy__ = _seldon.delete_iostream
00334     __del__ = lambda self : None;
00335 iostream_swigregister = _seldon.iostream_swigregister
00336 iostream_swigregister(iostream)
00337 
00338 endl_cb_ptr = _seldon.endl_cb_ptr
00339 
00340 def endl(*args):
00341   return _seldon.endl(*args)
00342 endl = _seldon.endl
00343 ends_cb_ptr = _seldon.ends_cb_ptr
00344 
00345 def ends(*args):
00346   return _seldon.ends(*args)
00347 ends = _seldon.ends
00348 flush_cb_ptr = _seldon.flush_cb_ptr
00349 
00350 def flush(*args):
00351   return _seldon.flush(*args)
00352 flush = _seldon.flush
00353 class ifstream(istream):
00354     __swig_setmethods__ = {}
00355     for _s in [istream]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00356     __setattr__ = lambda self, name, value: _swig_setattr(self, ifstream, name, value)
00357     __swig_getmethods__ = {}
00358     for _s in [istream]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00359     __getattr__ = lambda self, name: _swig_getattr(self, ifstream, name)
00360     __repr__ = _swig_repr
00361     def __init__(self, *args): 
00362         this = _seldon.new_ifstream(*args)
00363         try: self.this.append(this)
00364         except: self.this = this
00365     __swig_destroy__ = _seldon.delete_ifstream
00366     __del__ = lambda self : None;
00367     def is_open(self): return _seldon.ifstream_is_open(self)
00368     def close(self): return _seldon.ifstream_close(self)
00369 ifstream_swigregister = _seldon.ifstream_swigregister
00370 ifstream_swigregister(ifstream)
00371 
00372 class ofstream(ostream):
00373     __swig_setmethods__ = {}
00374     for _s in [ostream]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00375     __setattr__ = lambda self, name, value: _swig_setattr(self, ofstream, name, value)
00376     __swig_getmethods__ = {}
00377     for _s in [ostream]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00378     __getattr__ = lambda self, name: _swig_getattr(self, ofstream, name)
00379     __repr__ = _swig_repr
00380     def __init__(self, *args): 
00381         this = _seldon.new_ofstream(*args)
00382         try: self.this.append(this)
00383         except: self.this = this
00384     __swig_destroy__ = _seldon.delete_ofstream
00385     __del__ = lambda self : None;
00386     def is_open(self): return _seldon.ofstream_is_open(self)
00387     def close(self): return _seldon.ofstream_close(self)
00388 ofstream_swigregister = _seldon.ofstream_swigregister
00389 ofstream_swigregister(ofstream)
00390 
00391 class Error(_object):
00392     __swig_setmethods__ = {}
00393     __setattr__ = lambda self, name, value: _swig_setattr(self, Error, name, value)
00394     __swig_getmethods__ = {}
00395     __getattr__ = lambda self, name: _swig_getattr(self, Error, name)
00396     __repr__ = _swig_repr
00397     def __init__(self, *args): 
00398         this = _seldon.new_Error(*args)
00399         try: self.this.append(this)
00400         except: self.this = this
00401     __swig_destroy__ = _seldon.delete_Error
00402     __del__ = lambda self : None;
00403     def What(self): return _seldon.Error_What(self)
00404     def CoutWhat(self): return _seldon.Error_CoutWhat(self)
00405 Error_swigregister = _seldon.Error_swigregister
00406 Error_swigregister(Error)
00407 
00408 class Undefined(Error):
00409     __swig_setmethods__ = {}
00410     for _s in [Error]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00411     __setattr__ = lambda self, name, value: _swig_setattr(self, Undefined, name, value)
00412     __swig_getmethods__ = {}
00413     for _s in [Error]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00414     __getattr__ = lambda self, name: _swig_getattr(self, Undefined, name)
00415     __repr__ = _swig_repr
00416     def __init__(self, function = "", comment = ""): 
00417         this = _seldon.new_Undefined(function, comment)
00418         try: self.this.append(this)
00419         except: self.this = this
00420     def What(self): return _seldon.Undefined_What(self)
00421     __swig_destroy__ = _seldon.delete_Undefined
00422     __del__ = lambda self : None;
00423 Undefined_swigregister = _seldon.Undefined_swigregister
00424 Undefined_swigregister(Undefined)
00425 
00426 class WrongArgument(Error):
00427     __swig_setmethods__ = {}
00428     for _s in [Error]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00429     __setattr__ = lambda self, name, value: _swig_setattr(self, WrongArgument, name, value)
00430     __swig_getmethods__ = {}
00431     for _s in [Error]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00432     __getattr__ = lambda self, name: _swig_getattr(self, WrongArgument, name)
00433     __repr__ = _swig_repr
00434     def __init__(self, function = "", comment = ""): 
00435         this = _seldon.new_WrongArgument(function, comment)
00436         try: self.this.append(this)
00437         except: self.this = this
00438     def What(self): return _seldon.WrongArgument_What(self)
00439     __swig_destroy__ = _seldon.delete_WrongArgument
00440     __del__ = lambda self : None;
00441 WrongArgument_swigregister = _seldon.WrongArgument_swigregister
00442 WrongArgument_swigregister(WrongArgument)
00443 
00444 class NoMemory(Error):
00445     __swig_setmethods__ = {}
00446     for _s in [Error]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00447     __setattr__ = lambda self, name, value: _swig_setattr(self, NoMemory, name, value)
00448     __swig_getmethods__ = {}
00449     for _s in [Error]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00450     __getattr__ = lambda self, name: _swig_getattr(self, NoMemory, name)
00451     __repr__ = _swig_repr
00452     def __init__(self, function = "", comment = ""): 
00453         this = _seldon.new_NoMemory(function, comment)
00454         try: self.this.append(this)
00455         except: self.this = this
00456     __swig_destroy__ = _seldon.delete_NoMemory
00457     __del__ = lambda self : None;
00458 NoMemory_swigregister = _seldon.NoMemory_swigregister
00459 NoMemory_swigregister(NoMemory)
00460 
00461 class WrongDim(Error):
00462     __swig_setmethods__ = {}
00463     for _s in [Error]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00464     __setattr__ = lambda self, name, value: _swig_setattr(self, WrongDim, name, value)
00465     __swig_getmethods__ = {}
00466     for _s in [Error]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00467     __getattr__ = lambda self, name: _swig_getattr(self, WrongDim, name)
00468     __repr__ = _swig_repr
00469     def __init__(self, function = "", comment = ""): 
00470         this = _seldon.new_WrongDim(function, comment)
00471         try: self.this.append(this)
00472         except: self.this = this
00473     __swig_destroy__ = _seldon.delete_WrongDim
00474     __del__ = lambda self : None;
00475 WrongDim_swigregister = _seldon.WrongDim_swigregister
00476 WrongDim_swigregister(WrongDim)
00477 
00478 class WrongIndex(Error):
00479     __swig_setmethods__ = {}
00480     for _s in [Error]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00481     __setattr__ = lambda self, name, value: _swig_setattr(self, WrongIndex, name, value)
00482     __swig_getmethods__ = {}
00483     for _s in [Error]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00484     __getattr__ = lambda self, name: _swig_getattr(self, WrongIndex, name)
00485     __repr__ = _swig_repr
00486     def __init__(self, function = "", comment = ""): 
00487         this = _seldon.new_WrongIndex(function, comment)
00488         try: self.this.append(this)
00489         except: self.this = this
00490     __swig_destroy__ = _seldon.delete_WrongIndex
00491     __del__ = lambda self : None;
00492 WrongIndex_swigregister = _seldon.WrongIndex_swigregister
00493 WrongIndex_swigregister(WrongIndex)
00494 
00495 class WrongRow(Error):
00496     __swig_setmethods__ = {}
00497     for _s in [Error]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00498     __setattr__ = lambda self, name, value: _swig_setattr(self, WrongRow, name, value)
00499     __swig_getmethods__ = {}
00500     for _s in [Error]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00501     __getattr__ = lambda self, name: _swig_getattr(self, WrongRow, name)
00502     __repr__ = _swig_repr
00503     def __init__(self, function = "", comment = ""): 
00504         this = _seldon.new_WrongRow(function, comment)
00505         try: self.this.append(this)
00506         except: self.this = this
00507     __swig_destroy__ = _seldon.delete_WrongRow
00508     __del__ = lambda self : None;
00509 WrongRow_swigregister = _seldon.WrongRow_swigregister
00510 WrongRow_swigregister(WrongRow)
00511 
00512 class WrongCol(Error):
00513     __swig_setmethods__ = {}
00514     for _s in [Error]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00515     __setattr__ = lambda self, name, value: _swig_setattr(self, WrongCol, name, value)
00516     __swig_getmethods__ = {}
00517     for _s in [Error]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00518     __getattr__ = lambda self, name: _swig_getattr(self, WrongCol, name)
00519     __repr__ = _swig_repr
00520     def __init__(self, function = "", comment = ""): 
00521         this = _seldon.new_WrongCol(function, comment)
00522         try: self.this.append(this)
00523         except: self.this = this
00524     __swig_destroy__ = _seldon.delete_WrongCol
00525     __del__ = lambda self : None;
00526 WrongCol_swigregister = _seldon.WrongCol_swigregister
00527 WrongCol_swigregister(WrongCol)
00528 
00529 class IOError(Error):
00530     __swig_setmethods__ = {}
00531     for _s in [Error]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00532     __setattr__ = lambda self, name, value: _swig_setattr(self, IOError, name, value)
00533     __swig_getmethods__ = {}
00534     for _s in [Error]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00535     __getattr__ = lambda self, name: _swig_getattr(self, IOError, name)
00536     __repr__ = _swig_repr
00537     def __init__(self, function = "", comment = ""): 
00538         this = _seldon.new_IOError(function, comment)
00539         try: self.this.append(this)
00540         except: self.this = this
00541     __swig_destroy__ = _seldon.delete_IOError
00542     __del__ = lambda self : None;
00543 IOError_swigregister = _seldon.IOError_swigregister
00544 IOError_swigregister(IOError)
00545 
00546 class LapackError(Error):
00547     __swig_setmethods__ = {}
00548     for _s in [Error]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00549     __setattr__ = lambda self, name, value: _swig_setattr(self, LapackError, name, value)
00550     __swig_getmethods__ = {}
00551     for _s in [Error]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00552     __getattr__ = lambda self, name: _swig_getattr(self, LapackError, name)
00553     __repr__ = _swig_repr
00554     def __init__(self, *args): 
00555         this = _seldon.new_LapackError(*args)
00556         try: self.this.append(this)
00557         except: self.this = this
00558     def What(self): return _seldon.LapackError_What(self)
00559     __swig_destroy__ = _seldon.delete_LapackError
00560     __del__ = lambda self : None;
00561 LapackError_swigregister = _seldon.LapackError_swigregister
00562 LapackError_swigregister(LapackError)
00563 
00564 class LapackInfo(_object):
00565     __swig_setmethods__ = {}
00566     __setattr__ = lambda self, name, value: _swig_setattr(self, LapackInfo, name, value)
00567     __swig_getmethods__ = {}
00568     __getattr__ = lambda self, name: _swig_getattr(self, LapackInfo, name)
00569     __repr__ = _swig_repr
00570     def __init__(self, *args): 
00571         this = _seldon.new_LapackInfo(*args)
00572         try: self.this.append(this)
00573         except: self.this = this
00574     def GetInfo(self): return _seldon.LapackInfo_GetInfo(self)
00575     def GetInfoRef(self): return _seldon.LapackInfo_GetInfoRef(self)
00576     __swig_destroy__ = _seldon.delete_LapackInfo
00577     __del__ = lambda self : None;
00578 LapackInfo_swigregister = _seldon.LapackInfo_swigregister
00579 LapackInfo_swigregister(LapackInfo)
00580 
00581 class Str(_object):
00582     __swig_setmethods__ = {}
00583     __setattr__ = lambda self, name, value: _swig_setattr(self, Str, name, value)
00584     __swig_getmethods__ = {}
00585     __getattr__ = lambda self, name: _swig_getattr(self, Str, name)
00586     __repr__ = _swig_repr
00587     def __init__(self, *args): 
00588         this = _seldon.new_Str(*args)
00589         try: self.this.append(this)
00590         except: self.this = this
00591     __swig_destroy__ = _seldon.delete_Str
00592     __del__ = lambda self : None;
00593 Str_swigregister = _seldon.Str_swigregister
00594 Str_swigregister(Str)
00595 
00596 class RowMajor(_object):
00597     __swig_setmethods__ = {}
00598     __setattr__ = lambda self, name, value: _swig_setattr(self, RowMajor, name, value)
00599     __swig_getmethods__ = {}
00600     __getattr__ = lambda self, name: _swig_getattr(self, RowMajor, name)
00601     __repr__ = _swig_repr
00602     __swig_getmethods__["GetFirst"] = lambda x: _seldon.RowMajor_GetFirst
00603     if _newclass:GetFirst = staticmethod(_seldon.RowMajor_GetFirst)
00604     __swig_getmethods__["GetSecond"] = lambda x: _seldon.RowMajor_GetSecond
00605     if _newclass:GetSecond = staticmethod(_seldon.RowMajor_GetSecond)
00606     def __init__(self): 
00607         this = _seldon.new_RowMajor()
00608         try: self.this.append(this)
00609         except: self.this = this
00610     __swig_destroy__ = _seldon.delete_RowMajor
00611     __del__ = lambda self : None;
00612 RowMajor_swigregister = _seldon.RowMajor_swigregister
00613 RowMajor_swigregister(RowMajor)
00614 
00615 def RowMajor_GetFirst(*args):
00616   return _seldon.RowMajor_GetFirst(*args)
00617 RowMajor_GetFirst = _seldon.RowMajor_GetFirst
00618 
00619 def RowMajor_GetSecond(*args):
00620   return _seldon.RowMajor_GetSecond(*args)
00621 RowMajor_GetSecond = _seldon.RowMajor_GetSecond
00622 
00623 class RowSparse(_object):
00624     __swig_setmethods__ = {}
00625     __setattr__ = lambda self, name, value: _swig_setattr(self, RowSparse, name, value)
00626     __swig_getmethods__ = {}
00627     __getattr__ = lambda self, name: _swig_getattr(self, RowSparse, name)
00628     __repr__ = _swig_repr
00629     __swig_getmethods__["GetFirst"] = lambda x: _seldon.RowSparse_GetFirst
00630     if _newclass:GetFirst = staticmethod(_seldon.RowSparse_GetFirst)
00631     __swig_getmethods__["GetSecond"] = lambda x: _seldon.RowSparse_GetSecond
00632     if _newclass:GetSecond = staticmethod(_seldon.RowSparse_GetSecond)
00633     def __init__(self): 
00634         this = _seldon.new_RowSparse()
00635         try: self.this.append(this)
00636         except: self.this = this
00637     __swig_destroy__ = _seldon.delete_RowSparse
00638     __del__ = lambda self : None;
00639 RowSparse_swigregister = _seldon.RowSparse_swigregister
00640 RowSparse_swigregister(RowSparse)
00641 
00642 def RowSparse_GetFirst(*args):
00643   return _seldon.RowSparse_GetFirst(*args)
00644 RowSparse_GetFirst = _seldon.RowSparse_GetFirst
00645 
00646 def RowSparse_GetSecond(*args):
00647   return _seldon.RowSparse_GetSecond(*args)
00648 RowSparse_GetSecond = _seldon.RowSparse_GetSecond
00649 
00650 class FloatDouble(_object):
00651     __swig_setmethods__ = {}
00652     __setattr__ = lambda self, name, value: _swig_setattr(self, FloatDouble, name, value)
00653     __swig_getmethods__ = {}
00654     __getattr__ = lambda self, name: _swig_getattr(self, FloatDouble, name)
00655     __repr__ = _swig_repr
00656     def __init__(self): 
00657         this = _seldon.new_FloatDouble()
00658         try: self.this.append(this)
00659         except: self.this = this
00660     __swig_destroy__ = _seldon.delete_FloatDouble
00661     __del__ = lambda self : None;
00662 FloatDouble_swigregister = _seldon.FloatDouble_swigregister
00663 FloatDouble_swigregister(FloatDouble)
00664 
00665 class ColMajorCollection(_object):
00666     __swig_setmethods__ = {}
00667     __setattr__ = lambda self, name, value: _swig_setattr(self, ColMajorCollection, name, value)
00668     __swig_getmethods__ = {}
00669     __getattr__ = lambda self, name: _swig_getattr(self, ColMajorCollection, name)
00670     __repr__ = _swig_repr
00671     def __init__(self): 
00672         this = _seldon.new_ColMajorCollection()
00673         try: self.this.append(this)
00674         except: self.this = this
00675     __swig_destroy__ = _seldon.delete_ColMajorCollection
00676     __del__ = lambda self : None;
00677 ColMajorCollection_swigregister = _seldon.ColMajorCollection_swigregister
00678 ColMajorCollection_swigregister(ColMajorCollection)
00679 
00680 class RowMajorCollection(_object):
00681     __swig_setmethods__ = {}
00682     __setattr__ = lambda self, name, value: _swig_setattr(self, RowMajorCollection, name, value)
00683     __swig_getmethods__ = {}
00684     __getattr__ = lambda self, name: _swig_getattr(self, RowMajorCollection, name)
00685     __repr__ = _swig_repr
00686     def __init__(self): 
00687         this = _seldon.new_RowMajorCollection()
00688         try: self.this.append(this)
00689         except: self.this = this
00690     __swig_destroy__ = _seldon.delete_RowMajorCollection
00691     __del__ = lambda self : None;
00692 RowMajorCollection_swigregister = _seldon.RowMajorCollection_swigregister
00693 RowMajorCollection_swigregister(RowMajorCollection)
00694 
00695 class ColSymPackedCollection(_object):
00696     __swig_setmethods__ = {}
00697     __setattr__ = lambda self, name, value: _swig_setattr(self, ColSymPackedCollection, name, value)
00698     __swig_getmethods__ = {}
00699     __getattr__ = lambda self, name: _swig_getattr(self, ColSymPackedCollection, name)
00700     __repr__ = _swig_repr
00701     def __init__(self): 
00702         this = _seldon.new_ColSymPackedCollection()
00703         try: self.this.append(this)
00704         except: self.this = this
00705     __swig_destroy__ = _seldon.delete_ColSymPackedCollection
00706     __del__ = lambda self : None;
00707 ColSymPackedCollection_swigregister = _seldon.ColSymPackedCollection_swigregister
00708 ColSymPackedCollection_swigregister(ColSymPackedCollection)
00709 
00710 class RowSymPackedCollection(_object):
00711     __swig_setmethods__ = {}
00712     __setattr__ = lambda self, name, value: _swig_setattr(self, RowSymPackedCollection, name, value)
00713     __swig_getmethods__ = {}
00714     __getattr__ = lambda self, name: _swig_getattr(self, RowSymPackedCollection, name)
00715     __repr__ = _swig_repr
00716     def __init__(self): 
00717         this = _seldon.new_RowSymPackedCollection()
00718         try: self.this.append(this)
00719         except: self.this = this
00720     __swig_destroy__ = _seldon.delete_RowSymPackedCollection
00721     __del__ = lambda self : None;
00722 RowSymPackedCollection_swigregister = _seldon.RowSymPackedCollection_swigregister
00723 RowSymPackedCollection_swigregister(RowSymPackedCollection)
00724 
00725 class ColUpTriangPackedCollection(_object):
00726     __swig_setmethods__ = {}
00727     __setattr__ = lambda self, name, value: _swig_setattr(self, ColUpTriangPackedCollection, name, value)
00728     __swig_getmethods__ = {}
00729     __getattr__ = lambda self, name: _swig_getattr(self, ColUpTriangPackedCollection, name)
00730     __repr__ = _swig_repr
00731     def __init__(self): 
00732         this = _seldon.new_ColUpTriangPackedCollection()
00733         try: self.this.append(this)
00734         except: self.this = this
00735     __swig_destroy__ = _seldon.delete_ColUpTriangPackedCollection
00736     __del__ = lambda self : None;
00737 ColUpTriangPackedCollection_swigregister = _seldon.ColUpTriangPackedCollection_swigregister
00738 ColUpTriangPackedCollection_swigregister(ColUpTriangPackedCollection)
00739 
00740 class RowUpTriangPackedCollection(_object):
00741     __swig_setmethods__ = {}
00742     __setattr__ = lambda self, name, value: _swig_setattr(self, RowUpTriangPackedCollection, name, value)
00743     __swig_getmethods__ = {}
00744     __getattr__ = lambda self, name: _swig_getattr(self, RowUpTriangPackedCollection, name)
00745     __repr__ = _swig_repr
00746     def __init__(self): 
00747         this = _seldon.new_RowUpTriangPackedCollection()
00748         try: self.this.append(this)
00749         except: self.this = this
00750     __swig_destroy__ = _seldon.delete_RowUpTriangPackedCollection
00751     __del__ = lambda self : None;
00752 RowUpTriangPackedCollection_swigregister = _seldon.RowUpTriangPackedCollection_swigregister
00753 RowUpTriangPackedCollection_swigregister(RowUpTriangPackedCollection)
00754 
00755 class General(_object):
00756     __swig_setmethods__ = {}
00757     __setattr__ = lambda self, name, value: _swig_setattr(self, General, name, value)
00758     __swig_getmethods__ = {}
00759     __getattr__ = lambda self, name: _swig_getattr(self, General, name)
00760     __repr__ = _swig_repr
00761     def __init__(self): 
00762         this = _seldon.new_General()
00763         try: self.this.append(this)
00764         except: self.this = this
00765     __swig_destroy__ = _seldon.delete_General
00766     __del__ = lambda self : None;
00767 General_swigregister = _seldon.General_swigregister
00768 General_swigregister(General)
00769 
00770 class Symmetric(_object):
00771     __swig_setmethods__ = {}
00772     __setattr__ = lambda self, name, value: _swig_setattr(self, Symmetric, name, value)
00773     __swig_getmethods__ = {}
00774     __getattr__ = lambda self, name: _swig_getattr(self, Symmetric, name)
00775     __repr__ = _swig_repr
00776     def __init__(self): 
00777         this = _seldon.new_Symmetric()
00778         try: self.this.append(this)
00779         except: self.this = this
00780     __swig_destroy__ = _seldon.delete_Symmetric
00781     __del__ = lambda self : None;
00782 Symmetric_swigregister = _seldon.Symmetric_swigregister
00783 Symmetric_swigregister(Symmetric)
00784 
00785 class IntMalloc(_object):
00786     __swig_setmethods__ = {}
00787     __setattr__ = lambda self, name, value: _swig_setattr(self, IntMalloc, name, value)
00788     __swig_getmethods__ = {}
00789     __getattr__ = lambda self, name: _swig_getattr(self, IntMalloc, name)
00790     __repr__ = _swig_repr
00791     def allocate(self, *args): return _seldon.IntMalloc_allocate(self, *args)
00792     def deallocate(self, *args): return _seldon.IntMalloc_deallocate(self, *args)
00793     def reallocate(self, *args): return _seldon.IntMalloc_reallocate(self, *args)
00794     def memoryset(self, *args): return _seldon.IntMalloc_memoryset(self, *args)
00795     def memorycpy(self, *args): return _seldon.IntMalloc_memorycpy(self, *args)
00796     def __init__(self): 
00797         this = _seldon.new_IntMalloc()
00798         try: self.this.append(this)
00799         except: self.this = this
00800     __swig_destroy__ = _seldon.delete_IntMalloc
00801     __del__ = lambda self : None;
00802 IntMalloc_swigregister = _seldon.IntMalloc_swigregister
00803 IntMalloc_swigregister(IntMalloc)
00804 
00805 class BaseSeldonVectorInt(_object):
00806     __swig_setmethods__ = {}
00807     __setattr__ = lambda self, name, value: _swig_setattr(self, BaseSeldonVectorInt, name, value)
00808     __swig_getmethods__ = {}
00809     __getattr__ = lambda self, name: _swig_getattr(self, BaseSeldonVectorInt, name)
00810     __repr__ = _swig_repr
00811     def __init__(self, *args): 
00812         this = _seldon.new_BaseSeldonVectorInt(*args)
00813         try: self.this.append(this)
00814         except: self.this = this
00815     __swig_destroy__ = _seldon.delete_BaseSeldonVectorInt
00816     __del__ = lambda self : None;
00817     def GetM(self): return _seldon.BaseSeldonVectorInt_GetM(self)
00818     def GetLength(self): return _seldon.BaseSeldonVectorInt_GetLength(self)
00819     def GetSize(self): return _seldon.BaseSeldonVectorInt_GetSize(self)
00820     def GetData(self): return _seldon.BaseSeldonVectorInt_GetData(self)
00821     def GetDataConst(self): return _seldon.BaseSeldonVectorInt_GetDataConst(self)
00822     def GetDataVoid(self): return _seldon.BaseSeldonVectorInt_GetDataVoid(self)
00823     def GetDataConstVoid(self): return _seldon.BaseSeldonVectorInt_GetDataConstVoid(self)
00824 BaseSeldonVectorInt_swigregister = _seldon.BaseSeldonVectorInt_swigregister
00825 BaseSeldonVectorInt_swigregister(BaseSeldonVectorInt)
00826 
00827 class VectorInt(BaseSeldonVectorInt):
00828     __swig_setmethods__ = {}
00829     for _s in [BaseSeldonVectorInt]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00830     __setattr__ = lambda self, name, value: _swig_setattr(self, VectorInt, name, value)
00831     __swig_getmethods__ = {}
00832     for _s in [BaseSeldonVectorInt]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00833     __getattr__ = lambda self, name: _swig_getattr(self, VectorInt, name)
00834     __repr__ = _swig_repr
00835     def __init__(self, *args): 
00836         this = _seldon.new_VectorInt(*args)
00837         try: self.this.append(this)
00838         except: self.this = this
00839     __swig_destroy__ = _seldon.delete_VectorInt
00840     __del__ = lambda self : None;
00841     def Clear(self): return _seldon.VectorInt_Clear(self)
00842     def Reallocate(self, *args): return _seldon.VectorInt_Reallocate(self, *args)
00843     def Resize(self, *args): return _seldon.VectorInt_Resize(self, *args)
00844     def SetData(self, *args): return _seldon.VectorInt_SetData(self, *args)
00845     def Nullify(self): return _seldon.VectorInt_Nullify(self)
00846     def __call__(self, *args): return _seldon.VectorInt___call__(self, *args)
00847     def Get(self, *args): return _seldon.VectorInt_Get(self, *args)
00848     def Copy(self, *args): return _seldon.VectorInt_Copy(self, *args)
00849     def Append(self, *args): return _seldon.VectorInt_Append(self, *args)
00850     def GetDataSize(self): return _seldon.VectorInt_GetDataSize(self)
00851     def Zero(self): return _seldon.VectorInt_Zero(self)
00852     def Fill(self): return _seldon.VectorInt_Fill(self)
00853     def FillRand(self): return _seldon.VectorInt_FillRand(self)
00854     def Print(self): return _seldon.VectorInt_Print(self)
00855     def GetNormInf(self): return _seldon.VectorInt_GetNormInf(self)
00856     def GetNormInfIndex(self): return _seldon.VectorInt_GetNormInfIndex(self)
00857     def Write(self, *args): return _seldon.VectorInt_Write(self, *args)
00858     def WriteText(self, *args): return _seldon.VectorInt_WriteText(self, *args)
00859     def Read(self, *args): return _seldon.VectorInt_Read(self, *args)
00860     def ReadText(self, *args): return _seldon.VectorInt_ReadText(self, *args)
00861     def __getitem__(self, *args): return _seldon.VectorInt___getitem__(self, *args)
00862     def __setitem__(self, *args): return _seldon.VectorInt___setitem__(self, *args)
00863     def __len__(self): return _seldon.VectorInt___len__(self)
00864 VectorInt_swigregister = _seldon.VectorInt_swigregister
00865 VectorInt_swigregister(VectorInt)
00866 
00867 class DoubleMalloc(_object):
00868     __swig_setmethods__ = {}
00869     __setattr__ = lambda self, name, value: _swig_setattr(self, DoubleMalloc, name, value)
00870     __swig_getmethods__ = {}
00871     __getattr__ = lambda self, name: _swig_getattr(self, DoubleMalloc, name)
00872     __repr__ = _swig_repr
00873     def allocate(self, *args): return _seldon.DoubleMalloc_allocate(self, *args)
00874     def deallocate(self, *args): return _seldon.DoubleMalloc_deallocate(self, *args)
00875     def reallocate(self, *args): return _seldon.DoubleMalloc_reallocate(self, *args)
00876     def memoryset(self, *args): return _seldon.DoubleMalloc_memoryset(self, *args)
00877     def memorycpy(self, *args): return _seldon.DoubleMalloc_memorycpy(self, *args)
00878     def __init__(self): 
00879         this = _seldon.new_DoubleMalloc()
00880         try: self.this.append(this)
00881         except: self.this = this
00882     __swig_destroy__ = _seldon.delete_DoubleMalloc
00883     __del__ = lambda self : None;
00884 DoubleMalloc_swigregister = _seldon.DoubleMalloc_swigregister
00885 DoubleMalloc_swigregister(DoubleMalloc)
00886 
00887 class BaseSeldonVectorDouble(_object):
00888     __swig_setmethods__ = {}
00889     __setattr__ = lambda self, name, value: _swig_setattr(self, BaseSeldonVectorDouble, name, value)
00890     __swig_getmethods__ = {}
00891     __getattr__ = lambda self, name: _swig_getattr(self, BaseSeldonVectorDouble, name)
00892     __repr__ = _swig_repr
00893     def __init__(self, *args): 
00894         this = _seldon.new_BaseSeldonVectorDouble(*args)
00895         try: self.this.append(this)
00896         except: self.this = this
00897     __swig_destroy__ = _seldon.delete_BaseSeldonVectorDouble
00898     __del__ = lambda self : None;
00899     def GetM(self): return _seldon.BaseSeldonVectorDouble_GetM(self)
00900     def GetLength(self): return _seldon.BaseSeldonVectorDouble_GetLength(self)
00901     def GetSize(self): return _seldon.BaseSeldonVectorDouble_GetSize(self)
00902     def GetData(self): return _seldon.BaseSeldonVectorDouble_GetData(self)
00903     def GetDataConst(self): return _seldon.BaseSeldonVectorDouble_GetDataConst(self)
00904     def GetDataVoid(self): return _seldon.BaseSeldonVectorDouble_GetDataVoid(self)
00905     def GetDataConstVoid(self): return _seldon.BaseSeldonVectorDouble_GetDataConstVoid(self)
00906 BaseSeldonVectorDouble_swigregister = _seldon.BaseSeldonVectorDouble_swigregister
00907 BaseSeldonVectorDouble_swigregister(BaseSeldonVectorDouble)
00908 
00909 class VectorDouble(BaseSeldonVectorDouble):
00910     __swig_setmethods__ = {}
00911     for _s in [BaseSeldonVectorDouble]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00912     __setattr__ = lambda self, name, value: _swig_setattr(self, VectorDouble, name, value)
00913     __swig_getmethods__ = {}
00914     for _s in [BaseSeldonVectorDouble]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00915     __getattr__ = lambda self, name: _swig_getattr(self, VectorDouble, name)
00916     __repr__ = _swig_repr
00917     def __init__(self, *args): 
00918         this = _seldon.new_VectorDouble(*args)
00919         try: self.this.append(this)
00920         except: self.this = this
00921     __swig_destroy__ = _seldon.delete_VectorDouble
00922     __del__ = lambda self : None;
00923     def Clear(self): return _seldon.VectorDouble_Clear(self)
00924     def Reallocate(self, *args): return _seldon.VectorDouble_Reallocate(self, *args)
00925     def Resize(self, *args): return _seldon.VectorDouble_Resize(self, *args)
00926     def SetData(self, *args): return _seldon.VectorDouble_SetData(self, *args)
00927     def Nullify(self): return _seldon.VectorDouble_Nullify(self)
00928     def __call__(self, *args): return _seldon.VectorDouble___call__(self, *args)
00929     def Get(self, *args): return _seldon.VectorDouble_Get(self, *args)
00930     def Copy(self, *args): return _seldon.VectorDouble_Copy(self, *args)
00931     def Append(self, *args): return _seldon.VectorDouble_Append(self, *args)
00932     def GetDataSize(self): return _seldon.VectorDouble_GetDataSize(self)
00933     def Zero(self): return _seldon.VectorDouble_Zero(self)
00934     def Fill(self): return _seldon.VectorDouble_Fill(self)
00935     def FillRand(self): return _seldon.VectorDouble_FillRand(self)
00936     def Print(self): return _seldon.VectorDouble_Print(self)
00937     def GetNormInf(self): return _seldon.VectorDouble_GetNormInf(self)
00938     def GetNormInfIndex(self): return _seldon.VectorDouble_GetNormInfIndex(self)
00939     def Write(self, *args): return _seldon.VectorDouble_Write(self, *args)
00940     def WriteText(self, *args): return _seldon.VectorDouble_WriteText(self, *args)
00941     def Read(self, *args): return _seldon.VectorDouble_Read(self, *args)
00942     def ReadText(self, *args): return _seldon.VectorDouble_ReadText(self, *args)
00943     def __getitem__(self, *args): return _seldon.VectorDouble___getitem__(self, *args)
00944     def __setitem__(self, *args): return _seldon.VectorDouble___setitem__(self, *args)
00945     def __len__(self): return _seldon.VectorDouble___len__(self)
00946 VectorDouble_swigregister = _seldon.VectorDouble_swigregister
00947 VectorDouble_swigregister(VectorDouble)
00948 
00949 class MatrixBaseInt(_object):
00950     __swig_setmethods__ = {}
00951     __setattr__ = lambda self, name, value: _swig_setattr(self, MatrixBaseInt, name, value)
00952     __swig_getmethods__ = {}
00953     __getattr__ = lambda self, name: _swig_getattr(self, MatrixBaseInt, name)
00954     __repr__ = _swig_repr
00955     def __init__(self, *args): 
00956         this = _seldon.new_MatrixBaseInt(*args)
00957         try: self.this.append(this)
00958         except: self.this = this
00959     __swig_destroy__ = _seldon.delete_MatrixBaseInt
00960     __del__ = lambda self : None;
00961     def GetM(self, *args): return _seldon.MatrixBaseInt_GetM(self, *args)
00962     def GetN(self, *args): return _seldon.MatrixBaseInt_GetN(self, *args)
00963     def GetSize(self): return _seldon.MatrixBaseInt_GetSize(self)
00964     def GetData(self): return _seldon.MatrixBaseInt_GetData(self)
00965     def GetDataConst(self): return _seldon.MatrixBaseInt_GetDataConst(self)
00966     def GetDataVoid(self): return _seldon.MatrixBaseInt_GetDataVoid(self)
00967     def GetDataConstVoid(self): return _seldon.MatrixBaseInt_GetDataConstVoid(self)
00968     def GetAllocator(self): return _seldon.MatrixBaseInt_GetAllocator(self)
00969 MatrixBaseInt_swigregister = _seldon.MatrixBaseInt_swigregister
00970 MatrixBaseInt_swigregister(MatrixBaseInt)
00971 
00972 class MatrixPointersInt(MatrixBaseInt):
00973     __swig_setmethods__ = {}
00974     for _s in [MatrixBaseInt]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
00975     __setattr__ = lambda self, name, value: _swig_setattr(self, MatrixPointersInt, name, value)
00976     __swig_getmethods__ = {}
00977     for _s in [MatrixBaseInt]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
00978     __getattr__ = lambda self, name: _swig_getattr(self, MatrixPointersInt, name)
00979     __repr__ = _swig_repr
00980     def __init__(self, *args): 
00981         this = _seldon.new_MatrixPointersInt(*args)
00982         try: self.this.append(this)
00983         except: self.this = this
00984     __swig_destroy__ = _seldon.delete_MatrixPointersInt
00985     __del__ = lambda self : None;
00986     def Clear(self): return _seldon.MatrixPointersInt_Clear(self)
00987     def GetDataSize(self): return _seldon.MatrixPointersInt_GetDataSize(self)
00988     def GetMe(self): return _seldon.MatrixPointersInt_GetMe(self)
00989     def Reallocate(self, *args): return _seldon.MatrixPointersInt_Reallocate(self, *args)
00990     def SetData(self, *args): return _seldon.MatrixPointersInt_SetData(self, *args)
00991     def Nullify(self): return _seldon.MatrixPointersInt_Nullify(self)
00992     def Resize(self, *args): return _seldon.MatrixPointersInt_Resize(self, *args)
00993     def __call__(self, *args): return _seldon.MatrixPointersInt___call__(self, *args)
00994     def Val(self, *args): return _seldon.MatrixPointersInt_Val(self, *args)
00995     def Get(self, *args): return _seldon.MatrixPointersInt_Get(self, *args)
00996     def Set(self, *args): return _seldon.MatrixPointersInt_Set(self, *args)
00997     def Copy(self, *args): return _seldon.MatrixPointersInt_Copy(self, *args)
00998     def GetLD(self): return _seldon.MatrixPointersInt_GetLD(self)
00999     def Zero(self): return _seldon.MatrixPointersInt_Zero(self)
01000     def SetIdentity(self): return _seldon.MatrixPointersInt_SetIdentity(self)
01001     def Fill(self): return _seldon.MatrixPointersInt_Fill(self)
01002     def FillRand(self): return _seldon.MatrixPointersInt_FillRand(self)
01003     def Print(self, *args): return _seldon.MatrixPointersInt_Print(self, *args)
01004     def Write(self, *args): return _seldon.MatrixPointersInt_Write(self, *args)
01005     def WriteText(self, *args): return _seldon.MatrixPointersInt_WriteText(self, *args)
01006     def Read(self, *args): return _seldon.MatrixPointersInt_Read(self, *args)
01007     def ReadText(self, *args): return _seldon.MatrixPointersInt_ReadText(self, *args)
01008 MatrixPointersInt_swigregister = _seldon.MatrixPointersInt_swigregister
01009 MatrixPointersInt_swigregister(MatrixPointersInt)
01010 
01011 class MatrixInt(MatrixPointersInt):
01012     __swig_setmethods__ = {}
01013     for _s in [MatrixPointersInt]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
01014     __setattr__ = lambda self, name, value: _swig_setattr(self, MatrixInt, name, value)
01015     __swig_getmethods__ = {}
01016     for _s in [MatrixPointersInt]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
01017     __getattr__ = lambda self, name: _swig_getattr(self, MatrixInt, name)
01018     __repr__ = _swig_repr
01019     def __init__(self, *args): 
01020         this = _seldon.new_MatrixInt(*args)
01021         try: self.this.append(this)
01022         except: self.this = this
01023     def __getitem__(self, *args): return _seldon.MatrixInt___getitem__(self, *args)
01024     def __setitem__(self, *args): return _seldon.MatrixInt___setitem__(self, *args)
01025     def __len__(self): return _seldon.MatrixInt___len__(self)
01026     __swig_destroy__ = _seldon.delete_MatrixInt
01027     __del__ = lambda self : None;
01028 MatrixInt_swigregister = _seldon.MatrixInt_swigregister
01029 MatrixInt_swigregister(MatrixInt)
01030 
01031 class MatrixBaseDouble(_object):
01032     __swig_setmethods__ = {}
01033     __setattr__ = lambda self, name, value: _swig_setattr(self, MatrixBaseDouble, name, value)
01034     __swig_getmethods__ = {}
01035     __getattr__ = lambda self, name: _swig_getattr(self, MatrixBaseDouble, name)
01036     __repr__ = _swig_repr
01037     def __init__(self, *args): 
01038         this = _seldon.new_MatrixBaseDouble(*args)
01039         try: self.this.append(this)
01040         except: self.this = this
01041     __swig_destroy__ = _seldon.delete_MatrixBaseDouble
01042     __del__ = lambda self : None;
01043     def GetM(self, *args): return _seldon.MatrixBaseDouble_GetM(self, *args)
01044     def GetN(self, *args): return _seldon.MatrixBaseDouble_GetN(self, *args)
01045     def GetSize(self): return _seldon.MatrixBaseDouble_GetSize(self)
01046     def GetData(self): return _seldon.MatrixBaseDouble_GetData(self)
01047     def GetDataConst(self): return _seldon.MatrixBaseDouble_GetDataConst(self)
01048     def GetDataVoid(self): return _seldon.MatrixBaseDouble_GetDataVoid(self)
01049     def GetDataConstVoid(self): return _seldon.MatrixBaseDouble_GetDataConstVoid(self)
01050     def GetAllocator(self): return _seldon.MatrixBaseDouble_GetAllocator(self)
01051 MatrixBaseDouble_swigregister = _seldon.MatrixBaseDouble_swigregister
01052 MatrixBaseDouble_swigregister(MatrixBaseDouble)
01053 
01054 class MatrixPointersDouble(MatrixBaseDouble):
01055     __swig_setmethods__ = {}
01056     for _s in [MatrixBaseDouble]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
01057     __setattr__ = lambda self, name, value: _swig_setattr(self, MatrixPointersDouble, name, value)
01058     __swig_getmethods__ = {}
01059     for _s in [MatrixBaseDouble]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
01060     __getattr__ = lambda self, name: _swig_getattr(self, MatrixPointersDouble, name)
01061     __repr__ = _swig_repr
01062     def __init__(self, *args): 
01063         this = _seldon.new_MatrixPointersDouble(*args)
01064         try: self.this.append(this)
01065         except: self.this = this
01066     __swig_destroy__ = _seldon.delete_MatrixPointersDouble
01067     __del__ = lambda self : None;
01068     def Clear(self): return _seldon.MatrixPointersDouble_Clear(self)
01069     def GetDataSize(self): return _seldon.MatrixPointersDouble_GetDataSize(self)
01070     def GetMe(self): return _seldon.MatrixPointersDouble_GetMe(self)
01071     def Reallocate(self, *args): return _seldon.MatrixPointersDouble_Reallocate(self, *args)
01072     def SetData(self, *args): return _seldon.MatrixPointersDouble_SetData(self, *args)
01073     def Nullify(self): return _seldon.MatrixPointersDouble_Nullify(self)
01074     def Resize(self, *args): return _seldon.MatrixPointersDouble_Resize(self, *args)
01075     def __call__(self, *args): return _seldon.MatrixPointersDouble___call__(self, *args)
01076     def Val(self, *args): return _seldon.MatrixPointersDouble_Val(self, *args)
01077     def Get(self, *args): return _seldon.MatrixPointersDouble_Get(self, *args)
01078     def Set(self, *args): return _seldon.MatrixPointersDouble_Set(self, *args)
01079     def Copy(self, *args): return _seldon.MatrixPointersDouble_Copy(self, *args)
01080     def GetLD(self): return _seldon.MatrixPointersDouble_GetLD(self)
01081     def Zero(self): return _seldon.MatrixPointersDouble_Zero(self)
01082     def SetIdentity(self): return _seldon.MatrixPointersDouble_SetIdentity(self)
01083     def Fill(self): return _seldon.MatrixPointersDouble_Fill(self)
01084     def FillRand(self): return _seldon.MatrixPointersDouble_FillRand(self)
01085     def Print(self, *args): return _seldon.MatrixPointersDouble_Print(self, *args)
01086     def Write(self, *args): return _seldon.MatrixPointersDouble_Write(self, *args)
01087     def WriteText(self, *args): return _seldon.MatrixPointersDouble_WriteText(self, *args)
01088     def Read(self, *args): return _seldon.MatrixPointersDouble_Read(self, *args)
01089     def ReadText(self, *args): return _seldon.MatrixPointersDouble_ReadText(self, *args)
01090 MatrixPointersDouble_swigregister = _seldon.MatrixPointersDouble_swigregister
01091 MatrixPointersDouble_swigregister(MatrixPointersDouble)
01092 
01093 class MatrixDouble(MatrixPointersDouble):
01094     __swig_setmethods__ = {}
01095     for _s in [MatrixPointersDouble]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
01096     __setattr__ = lambda self, name, value: _swig_setattr(self, MatrixDouble, name, value)
01097     __swig_getmethods__ = {}
01098     for _s in [MatrixPointersDouble]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
01099     __getattr__ = lambda self, name: _swig_getattr(self, MatrixDouble, name)
01100     __repr__ = _swig_repr
01101     def __init__(self, *args): 
01102         this = _seldon.new_MatrixDouble(*args)
01103         try: self.this.append(this)
01104         except: self.this = this
01105     def __getitem__(self, *args): return _seldon.MatrixDouble___getitem__(self, *args)
01106     def __setitem__(self, *args): return _seldon.MatrixDouble___setitem__(self, *args)
01107     def __len__(self): return _seldon.MatrixDouble___len__(self)
01108     __swig_destroy__ = _seldon.delete_MatrixDouble
01109     __del__ = lambda self : None;
01110 MatrixDouble_swigregister = _seldon.MatrixDouble_swigregister
01111 MatrixDouble_swigregister(MatrixDouble)
01112 
01113 class VectorSparseDouble(VectorDouble):
01114     __swig_setmethods__ = {}
01115     for _s in [VectorDouble]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
01116     __setattr__ = lambda self, name, value: _swig_setattr(self, VectorSparseDouble, name, value)
01117     __swig_getmethods__ = {}
01118     for _s in [VectorDouble]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
01119     __getattr__ = lambda self, name: _swig_getattr(self, VectorSparseDouble, name)
01120     __repr__ = _swig_repr
01121     def __init__(self, *args): 
01122         this = _seldon.new_VectorSparseDouble(*args)
01123         try: self.this.append(this)
01124         except: self.this = this
01125     __swig_destroy__ = _seldon.delete_VectorSparseDouble
01126     __del__ = lambda self : None;
01127     def Clear(self): return _seldon.VectorSparseDouble_Clear(self)
01128     def Reallocate(self, *args): return _seldon.VectorSparseDouble_Reallocate(self, *args)
01129     def Resize(self, *args): return _seldon.VectorSparseDouble_Resize(self, *args)
01130     def SetData(self, *args): return _seldon.VectorSparseDouble_SetData(self, *args)
01131     def Nullify(self): return _seldon.VectorSparseDouble_Nullify(self)
01132     def Value(self, *args): return _seldon.VectorSparseDouble_Value(self, *args)
01133     def Index(self, *args): return _seldon.VectorSparseDouble_Index(self, *args)
01134     def __call__(self, *args): return _seldon.VectorSparseDouble___call__(self, *args)
01135     def Get(self, *args): return _seldon.VectorSparseDouble_Get(self, *args)
01136     def Val(self, *args): return _seldon.VectorSparseDouble_Val(self, *args)
01137     def Copy(self, *args): return _seldon.VectorSparseDouble_Copy(self, *args)
01138     def GetIndex(self): return _seldon.VectorSparseDouble_GetIndex(self)
01139     def Assemble(self): return _seldon.VectorSparseDouble_Assemble(self)
01140     def AddInteraction(self, *args): return _seldon.VectorSparseDouble_AddInteraction(self, *args)
01141     def AddInteractionRow(self, *args): return _seldon.VectorSparseDouble_AddInteractionRow(self, *args)
01142     def Write(self, *args): return _seldon.VectorSparseDouble_Write(self, *args)
01143     def WriteText(self, *args): return _seldon.VectorSparseDouble_WriteText(self, *args)
01144     def Read(self, *args): return _seldon.VectorSparseDouble_Read(self, *args)
01145     def ReadText(self, *args): return _seldon.VectorSparseDouble_ReadText(self, *args)
01146 VectorSparseDouble_swigregister = _seldon.VectorSparseDouble_swigregister
01147 VectorSparseDouble_swigregister(VectorSparseDouble)
01148 
01149 class BaseMatrixSparseDouble(MatrixBaseDouble):
01150     __swig_setmethods__ = {}
01151     for _s in [MatrixBaseDouble]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
01152     __setattr__ = lambda self, name, value: _swig_setattr(self, BaseMatrixSparseDouble, name, value)
01153     __swig_getmethods__ = {}
01154     for _s in [MatrixBaseDouble]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
01155     __getattr__ = lambda self, name: _swig_getattr(self, BaseMatrixSparseDouble, name)
01156     __repr__ = _swig_repr
01157     def __init__(self, *args): 
01158         this = _seldon.new_BaseMatrixSparseDouble(*args)
01159         try: self.this.append(this)
01160         except: self.this = this
01161     __swig_destroy__ = _seldon.delete_BaseMatrixSparseDouble
01162     __del__ = lambda self : None;
01163     def Clear(self): return _seldon.BaseMatrixSparseDouble_Clear(self)
01164     def SetData(self, *args): return _seldon.BaseMatrixSparseDouble_SetData(self, *args)
01165     def Nullify(self): return _seldon.BaseMatrixSparseDouble_Nullify(self)
01166     def Reallocate(self, *args): return _seldon.BaseMatrixSparseDouble_Reallocate(self, *args)
01167     def Resize(self, *args): return _seldon.BaseMatrixSparseDouble_Resize(self, *args)
01168     def Copy(self, *args): return _seldon.BaseMatrixSparseDouble_Copy(self, *args)
01169     def GetNonZeros(self): return _seldon.BaseMatrixSparseDouble_GetNonZeros(self)
01170     def GetDataSize(self): return _seldon.BaseMatrixSparseDouble_GetDataSize(self)
01171     def GetPtr(self): return _seldon.BaseMatrixSparseDouble_GetPtr(self)
01172     def GetInd(self): return _seldon.BaseMatrixSparseDouble_GetInd(self)
01173     def GetPtrSize(self): return _seldon.BaseMatrixSparseDouble_GetPtrSize(self)
01174     def GetIndSize(self): return _seldon.BaseMatrixSparseDouble_GetIndSize(self)
01175     def __call__(self, *args): return _seldon.BaseMatrixSparseDouble___call__(self, *args)
01176     def Val(self, *args): return _seldon.BaseMatrixSparseDouble_Val(self, *args)
01177     def Get(self, *args): return _seldon.BaseMatrixSparseDouble_Get(self, *args)
01178     def AddInteraction(self, *args): return _seldon.BaseMatrixSparseDouble_AddInteraction(self, *args)
01179     def Set(self, *args): return _seldon.BaseMatrixSparseDouble_Set(self, *args)
01180     def Zero(self): return _seldon.BaseMatrixSparseDouble_Zero(self)
01181     def SetIdentity(self): return _seldon.BaseMatrixSparseDouble_SetIdentity(self)
01182     def Fill(self): return _seldon.BaseMatrixSparseDouble_Fill(self)
01183     def FillRand(self, *args): return _seldon.BaseMatrixSparseDouble_FillRand(self, *args)
01184     def Print(self): return _seldon.BaseMatrixSparseDouble_Print(self)
01185     def Write(self, *args): return _seldon.BaseMatrixSparseDouble_Write(self, *args)
01186     def WriteText(self, *args): return _seldon.BaseMatrixSparseDouble_WriteText(self, *args)
01187     def Read(self, *args): return _seldon.BaseMatrixSparseDouble_Read(self, *args)
01188     def ReadText(self, *args): return _seldon.BaseMatrixSparseDouble_ReadText(self, *args)
01189 BaseMatrixSparseDouble_swigregister = _seldon.BaseMatrixSparseDouble_swigregister
01190 BaseMatrixSparseDouble_swigregister(BaseMatrixSparseDouble)
01191 
01192 class MatrixSparseDouble(BaseMatrixSparseDouble):
01193     __swig_setmethods__ = {}
01194     for _s in [BaseMatrixSparseDouble]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
01195     __setattr__ = lambda self, name, value: _swig_setattr(self, MatrixSparseDouble, name, value)
01196     __swig_getmethods__ = {}
01197     for _s in [BaseMatrixSparseDouble]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
01198     __getattr__ = lambda self, name: _swig_getattr(self, MatrixSparseDouble, name)
01199     __repr__ = _swig_repr
01200     def __init__(self, *args): 
01201         this = _seldon.new_MatrixSparseDouble(*args)
01202         try: self.this.append(this)
01203         except: self.this = this
01204     __swig_destroy__ = _seldon.delete_MatrixSparseDouble
01205     __del__ = lambda self : None;
01206 MatrixSparseDouble_swigregister = _seldon.MatrixSparseDouble_swigregister
01207 MatrixSparseDouble_swigregister(MatrixSparseDouble)
01208 
01209 
01210 def skip_vector_double(*args):
01211   return _seldon.skip_vector_double(*args)
01212 skip_vector_double = _seldon.skip_vector_double
01213 
01214 def skip_matrix_double(*args):
01215   return _seldon.skip_matrix_double(*args)
01216 skip_matrix_double = _seldon.skip_matrix_double
01217 def load_vector(filename, array = False):
01218     """
01219     Loads a Seldon vector (in double precision) from a file. If 'array' is set
01220     to True, the vector is converted to a numpy array.
01221     """
01222     import seldon
01223     if isinstance(filename, str):
01224         stream = seldon.ifstream(filename)
01225     else: # assuming 'filename' is already a stream.
01226         stream = filename
01227 
01228     vector = seldon.VectorDouble()
01229     vector.Read(stream, True)
01230 
01231     if array:
01232         import numpy
01233         vector = numpy.array(vector)
01234 
01235     if isinstance(filename, str):
01236         stream.close()
01237 
01238     return vector
01239 
01240 
01241 def load_vector_list(filename, array = False, begin = 0, N = 0):
01242     """
01243     Loads a list of Seldon vectors (in double precision) from a file, skipping
01244     the first 'begin' vectors. If 'array' is set to True, the vectors are
01245     converted to numpy arrays. 'N' is the number of vectors to read; all
01246     vectors are read if 'N' is 0 or negative.
01247     """
01248     import seldon
01249     if isinstance(filename, str):
01250         stream = seldon.ifstream(filename)
01251     else: # assuming 'filename' is already a stream.
01252         stream = filename
01253 
01254     begin = max(begin, 0)
01255     count = 0
01256     while stream.peek() != -1 and count != begin:
01257         skip_vector_double(stream)
01258         count += 1
01259 
01260     vector_list = []
01261     count = 0
01262     while stream.peek() != -1 and (N <= 0 or count < N):
01263         vector = seldon.VectorDouble()
01264         vector.Read(stream, True)
01265         vector_list.append(vector)
01266         count += 1
01267 
01268     if array:
01269         import numpy
01270         vector_list = [numpy.array(x) for x in vector_list]
01271 
01272     if isinstance(filename, str):
01273         stream.close()
01274 
01275     return vector_list
01276 
01277 
01278 def to_vector(v):
01279     """
01280     Converts a list or a numpy array to a Seldon vector (in double precision).
01281     """
01282     import seldon
01283     out = seldon.VectorDouble(len(v))
01284     for i in range(len(v)):
01285         out[i] = v[i]
01286     return out
01287 
01288 
01289 def load_matrix(filename, array = False):
01290     """
01291     Loads a Seldon matrix (in double precision) from a file. If 'array' is set
01292     to True, the matrix is converted to a numpy array.
01293     """
01294     import seldon
01295     if isinstance(filename, str):
01296         stream = seldon.ifstream(filename)
01297     else: # assuming 'filename' is already a stream.
01298         stream = filename
01299 
01300     matrix = seldon.MatrixDouble()
01301     matrix.Read(stream, True)
01302 
01303     if array:
01304         import numpy
01305         matrix = numpy.array(matrix)
01306 
01307     if isinstance(filename, str):
01308         stream.close()
01309 
01310     return matrix
01311 
01312 
01313 def load_matrix_list(filename, array = False, begin = 0, N = 0):
01314     """
01315     Loads a list of Seldon matrices (in double precision) from a file,
01316     skipping the first 'begin' matrices.. If 'array' is set to True, the
01317     matrices are converted to numpy arrays. 'N' is the number of matrices to
01318     read; all matrices are read if 'N' is 0 or negative.
01319     """
01320     import seldon
01321     if isinstance(filename, str):
01322         stream = seldon.ifstream(filename)
01323     else: # assuming 'filename' is already a stream.
01324         stream = filename
01325 
01326     begin = max(begin, 0)
01327     count = 0
01328     while stream.peek() != -1 and count != begin:
01329         skip_matrix_double(stream)
01330         count += 1
01331 
01332     matrix_list = []
01333     count = 0
01334     while stream.peek() != -1 and (N <= 0 or count < N):
01335         matrix = seldon.MatrixDouble()
01336         matrix.Read(stream, True)
01337         matrix_list.append(matrix)
01338         count += 1
01339 
01340     if array:
01341         import numpy
01342         matrix_list = [numpy.array(x) for x in matrix_list]
01343 
01344     if isinstance(filename, str):
01345         stream.close()
01346 
01347     return matrix_list
01348 
01349 
01350 def to_matrix(m):
01351     """
01352     Converts a numpy array to a Seldon matrix (in double precision).
01353     """
01354     import seldon
01355     out = seldon.MatrixDouble(m.shape[0], m.shape[1])
01356     for i in range(m.shape[0]):
01357         for j in range(m.shape[1]):
01358             out[i, j] = m[i, j]
01359     return out
01360 
01361 # This file is compatible with both classic and new-style classes.
01362 
01363