Package gmisclib :: Module mcmc_cooperate :: Class connection
[frames] | no frames]

Class connection

source code


Instance Methods
 
__init__(self, host, port, Key, jobid)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
send(self, *s) source code
 
flush(self) source code
 
recv(self) source code
 
list_ops(self) source code
 
version(self) source code
(int, int)
rank(self)
Returns: number_of_processes, rank_of_this_process
source code
 
close(self) source code
 
__del__(self) source code
 
barrier(self, b, nmin=0, exc=True) source code
 
swap_vec(self, logp, v)
Returns: (logp, vector)
source code
 
set(self, *kv) source code
 
get_list(self, key) source code
 
get_combined(self, key, operation) source code
 
spread(self, key, value, barrier, nmin=0) source code
 
get_consensus(self, key, value, barrier, operation, nmin=0) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  e = g_encode.encoder(regex= r"""[^a-zA-Z0-9<>?,./:";'{}[\]!@$^...
Properties

Inherited from object: __class__

Method Details

__init__(self, host, port, Key, jobid)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

rank(self)

source code 
Returns: (int, int)
number_of_processes, rank_of_this_process

swap_vec(self, logp, v)

source code 
Returns:
(logp, vector)

Class Variable Details

e

Value:
g_encode.encoder(regex= r"""[^a-zA-Z0-9<>?,./:";'{}[\]!@$^&*()_+=|\\-]\
""")