Auryn simulator  v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
auryn::DuplexConnection Class Reference

Duplex connection is the base class of most plastic connections. More...

#include <DuplexConnection.h>

Inheritance diagram for auryn::DuplexConnection:
Inheritance graph
[legend]
Collaboration diagram for auryn::DuplexConnection:
Collaboration graph
[legend]

Public Member Functions

 DuplexConnection (const char *filename)
 
 DuplexConnection (NeuronID rows, NeuronID cols)
 
 DuplexConnection (SpikingGroup *source, NeuronGroup *destination, TransmitterType transmitter=GLUT)
 
 DuplexConnection (SpikingGroup *source, NeuronGroup *destination, const char *filename, TransmitterType transmitter=GLUT)
 
 DuplexConnection (SpikingGroup *source, NeuronGroup *destination, AurynWeight weight, AurynFloat sparseness=0.05, TransmitterType transmitter=GLUT, std::string name="DuplexConnection")
 
virtual ~DuplexConnection ()
 
virtual void finalize ()
 Finalizes connection after random or manual initialization of the weights. More...
 
void prune ()
 Prune weight matrices. More...
 
- Public Member Functions inherited from auryn::SparseConnection
 SparseConnection ()
 Empty constructor which should not be used – TODO should be deprecated at some point. More...
 
 SparseConnection (const char *filename)
 Load from wmat file constructor which should not be used – TODO should be deprecated at some point. More...
 
 SparseConnection (NeuronID rows, NeuronID cols)
 Deprecated constructor for manual filling. More...
 
 SparseConnection (SpikingGroup *source, NeuronGroup *destination, const char *filename, TransmitterType transmitter=GLUT)
 Deprecated constructor for loading from file. More...
 
 SparseConnection (SpikingGroup *source, NeuronGroup *destination, TransmitterType transmitter=GLUT, string name="SparseConnection")
 Constructor for manual filling. More...
 
 SparseConnection (SpikingGroup *source, NeuronGroup *destination, AurynWeight weight, AurynDouble sparseness=0.05, TransmitterType transmitter=GLUT, string name="SparseConnection")
 Default constructor which sets up a random sparse matrix with fixed weight between the source and destination group. More...
 
 SparseConnection (SpikingGroup *source, NeuronGroup *destination, SparseConnection *con, string name="SparseConnection")
 This constructor tries to clone a connection by guessing all parameters except source and destination from another connection instance. More...
 
 SparseConnection (SpikingGroup *source, NeuronGroup *destination, AurynWeight weight, AurynDouble sparseness, NeuronID lo_row, NeuronID hi_row, NeuronID lo_col, NeuronID hi_col, TransmitterType transmitter=GLUT)
 Sparse block constructor. More...
 
virtual ~SparseConnection ()
 The default destructor. More...
 
void allocate_manually (AurynLong expected_size)
 Is used whenever memory has to be allocated manually. Automatically adjusts for number of ranks and for security margin. More...
 
AurynLong estimate_required_nonzero_entires (AurynLong nonzero, double sigma=5.)
 This function estimates the required size of the nonzero entry buffer. More...
 
void seed (NeuronID randomseed)
 This function seeds the pseudo random number generator for all random fill operatios. More...
 
virtual AurynWeight get (NeuronID i, NeuronID j)
 Returns weight value of a given element if it exists. More...
 
virtual AurynWeightget_ptr (NeuronID i, NeuronID j)
 Returns pointer to given weight element if it exists. Returns NULL if element does not exist. More...
 
virtual AurynWeight get_data (NeuronID i)
 Returns weight value of a given element referenced by index in the data array. More...
 
virtual void set_data (NeuronID i, AurynWeight value)
 Sets weight value of a given element referenced by its index in the data array. More...
 
virtual void set (NeuronID i, NeuronID j, AurynWeight value)
 Sets a single connection to value if it exists. More...
 
virtual void set (std::vector< neuron_pair > element_list, AurynWeight value)
 Sets a list of connection to value if they exists. More...
 
void random_data (AurynWeight mean, AurynWeight sigma)
 Synonym for random_data. More...
 
void random_data_normal (AurynWeight mean, AurynWeight sigma)
 Set weights of all existing connections randomly using a normal distrubtion. More...
 
void random_data_lognormal (AurynWeight m, AurynWeight s)
 Set weights of all existing connections randomly using a lognormal distribution. More...
 
void init_random_binary (AurynFloat prob=0.5, AurynWeight wlo=0.0, AurynWeight whi=1.0)
 Initialize with random binary at wlo and whi. More...
 
void random_col_data (AurynWeight mean, AurynWeight sigma)
 Sets weights in cols to the same value drewn from a Gaussian distribution. More...
 
void set_block (NeuronID lo_row, NeuronID hi_row, NeuronID lo_col, NeuronID hi_col, AurynWeight weight)
 Sets all weights of existing connections in a block spanned by the first 4 parameters to the value given. More...
 
void scale_block (NeuronID lo_row, NeuronID hi_row, NeuronID lo_col, NeuronID hi_col, AurynWeight alpha)
 Scale all weights of existing connections in a block spanned by the first 4 parameters to the value given. More...
 
virtual void set_all (AurynWeight weight)
 Sets all weights of existing connections to the given value. More...
 
virtual void scale_all (AurynFloat value)
 Scales all weights in the weight matrix with the given value. More...
 
virtual void clip (AurynWeight lo, AurynWeight hi)
 Clip weights. More...
 
void set_upper_triangular (AurynWeight weight)
 Sets weights in a upper triangular matrix. More...
 
virtual void sparse_set_data (AurynDouble sparseness, AurynWeight value)
 Sets a sparse random subset of connection elements wight the given value. More...
 
void connect_random (AurynWeight weight=1.0, AurynDouble sparseness=0.05, bool skip_diag=false)
 Connect src and dst SpikingGroup and NeuronGroup randomly with given sparseness. More...
 
void connect_block_random (AurynWeight weight, AurynDouble sparseness, NeuronID lo_row, NeuronID hi_row, NeuronID lo_col, NeuronID hi_col, bool skip_diag=false)
 Underlying sparse fill method. More...
 
bool push_back (NeuronID i, NeuronID j, AurynWeight weight)
 Pushes a single element to the ComplexMatrix. More...
 
AurynLong get_nonzero ()
 Returns number of nonzero elements in this SparseConnection. More...
 
void put_pattern (type_pattern *pattern, AurynWeight strength, bool overwrite)
 Puts cell assembly to existing sparse weights. More...
 
void put_pattern (type_pattern *pattern1, type_pattern *pattern2, AurynWeight strength, bool overwrite)
 Puts cell assembly or synfire pattern to existing sparse weights. More...
 
void load_patterns (string filename, AurynWeight strength, int nb_max_patterns=10000, bool overwrite=false, bool chainmode=false)
 Reads first n patterns from a .pat file and adds them as Hebbian assemblies onto an existing weight matrix. More...
 
void load_pre_post_patterns (std::string pre_file, std::string post_file, AurynWeight strength, int nb_max_patterns=10000, bool overwrite=false)
 Reads patterns from two files and connects them. More...
 
virtual void propagate ()
 Internally used propagate method. More...
 
void sanity_check ()
 Quick an dirty function that checks if all units on the local rank are connected. More...
 
virtual AurynDouble sum ()
 Computes sum of all weight elements in the Connection. More...
 
virtual void stats (AurynDouble &mean, AurynDouble &std)
 Computes mean and variance of weights in default weight matrix. More...
 
virtual void stats (AurynDouble &mean, AurynDouble &std, NeuronID zid)
 Computes mean and variance of weights for matrix state zid. More...
 
bool write_to_file (ForwardMatrix *m, string filename)
 Writes rank specific weight matrix on the same rank to a file. More...
 
virtual bool write_to_file (string filename)
 Writes rank specific default weight matrix on the same rank to a file. More...
 
virtual bool load_from_complete_file (string filename)
 Loads weight matrix from a single file. More...
 
virtual bool load_from_file (string filename)
 Loads weight matrix from Matrix Market (wmat) file. More...
 
bool load_from_file (ForwardMatrix *m, string filename, AurynLong data_size=0)
 Loads weight matrix from Matrix Market (wmat) file to specified weight matrix. More...
 
virtual void set_min_weight (AurynWeight minimum_weight)
 Sets minimum weight (for plastic connections). More...
 
AurynWeight get_min_weight ()
 Gets minimum weight (for plastic connections). More...
 
virtual void set_max_weight (AurynWeight maximum_weight)
 Sets maximum weight (for plastic connections). More...
 
AurynWeight get_max_weight ()
 Gets maximum weight (for plastic connections). More...
 
std::vector< neuron_pairget_block (NeuronID lo_row, NeuronID hi_row, NeuronID lo_col, NeuronID hi_col)
 Returns a vector of ConnectionsID of a block specified by the arguments. More...
 
std::vector< neuron_pairget_post_partners (NeuronID i)
 Returns a vector of ConnectionsID of postsynaptic parterns of neuron i. More...
 
std::vector< neuron_pairget_pre_partners (NeuronID j)
 Returns a vector of ConnectionsID of presynaptic parterns of neuron i. More...
 
- Public Member Functions inherited from auryn::Connection
 Connection ()
 
 Connection (NeuronID rows, NeuronID cols)
 
 Connection (SpikingGroup *source, NeuronGroup *destination, TransmitterType transmitter=GLUT, std::string name="Connection")
 
virtual ~Connection ()
 
void set_size (NeuronID i, NeuronID j)
 
void set_name (std::string name)
 Set name of connection. More...
 
std::string get_name ()
 Returns name of connection. More...
 
std::string get_file_name ()
 Extracts the class name of the connection from the file name. More...
 
std::string get_log_name ()
 Returns a string which is the combination of file and connection name for logging. More...
 
AurynStateVectorget_target_vector ()
 Returns target state vector if one is defined. More...
 
NeuronID get_m_rows ()
 Get number of rows (presynaptic) in connection. More...
 
NeuronID get_n_cols ()
 Get number of columns (postsynaptic) in connection. More...
 
TransmitterType get_transmitter ()
 Returns transmitter type. More...
 
void set_target (AurynWeight *ptr)
 Sets target state of this connection directly via a pointer. More...
 
void set_target (AurynStateVector *ptr)
 Sets target state of this connection directly via a StateVector. More...
 
void set_receptor (AurynStateVector *ptr)
 Same as set_target. More...
 
void set_transmitter (AurynStateVector *ptr)
 Same as set_target. More...
 
void set_transmitter (TransmitterType transmitter)
 Sets target state of this connection for a given receptor as one of Auryn's default transmitter types. More...
 
void set_receptor (string state_name)
 Sets target state of this connection directly the name of a state vector. More...
 
void set_target (string state_name)
 Same as set_receptor. More...
 
void set_transmitter (string state_name)
 Same as set_receptor, but DEPRECATED. More...
 
void set_source (SpikingGroup *source)
 Sets source SpikingGroup of this connection. More...
 
SpikingGroupget_source ()
 Returns pointer to the presynaptic group. More...
 
void set_destination (NeuronGroup *source)
 Sets destination SpikingGroup of this connection. More...
 
NeuronGroupget_destination ()
 Returns pointer to the postsynaptic group. More...
 
virtual void evolve ()
 Evolve method to update internal connection state. Called by System run method. More...
 
void conditional_propagate ()
 DEPRECATED. (Such connections should not be registered in the first place) Calls propagate only if the postsynaptic NeuronGroup exists on the local rank. More...
 
Traceget_pre_trace (const AurynDouble tau)
 Returns a pointer to a presynaptic trace object. More...
 
Traceget_post_trace (const AurynDouble tau)
 Returns a pointer to a postsynaptic trace object. More...
 
Traceget_post_state_trace (const string state_name, const AurynDouble tau, const AurynDouble jump_size=0.0)
 Returns a pointer to a postsynaptic state trace object. More...
 
void transmit (const NeuronID id, const AurynWeight amount)
 Default way to transmit a spike to a postsynaptic partner. More...
 
void targeted_transmit (SpikingGroup *target_group, AurynStateVector *target_state, const NeuronID id, const AurynWeight amount)
 Transmits a spike to a given target group and state. More...
 
void safe_transmit (NeuronID id, AurynWeight amount)
 Same as transmit but first checks if the target neuron exists and avoids segfaults that way (but it's also slower). More...
 
SpikeContainerget_pre_spikes ()
 Supplies pointer to SpikeContainer of all presynaptic spikes. More...
 
SpikeContainerget_post_spikes ()
 Returns pointer to SpikeContainer for postsynaptic spikes on this node. More...
 
void add_number_of_spike_attributes (int x)
 Set up spike delay to accomodate x additional spike attributes. More...
 
AurynFloat get_spike_attribute (const NeuronID i, const int attribute_id=0)
 Returns spike attribute belonging to the spike at position i in the get_spikes() SpikeContainer. More...
 

Public Attributes

ForwardMatrixfwd
 
BackwardMatrixbkw
 
- Public Attributes inherited from auryn::SparseConnection
bool patterns_ignore_gamma
 Switch that toggles for the load_patterns function whether or not to use the intensity (gamma) value. Default is false. More...
 
NeuronID patterns_every_pre
 The every_pre parameter allows to skip presynaptically over pattern IDs when loading patterns. Default is 1. This can be useful to when loading patterns into the exc->inh connections and there significantly less inhibitory cells than exc ones. More...
 
NeuronID patterns_every_post
 The every_post parameter allows to skip postsynaptically over pattern IDs when loading patterns. Default is 1. This can be useful to when loading patterns into the exc->inh connections and there significantly less inhibitory cells than exc ones. More...
 
bool wrap_patterns
 Switch that toggles the behavior when loading a pattern to wrap neuron IDs back onto existing cells via the modulo function. More...
 
ForwardMatrixw
 A pointer that points per default to the ComplexMatrix that stores the connectinos. More...
 
- Public Attributes inherited from auryn::Connection
SpikingGroupsrc
 Pointer to the source group of this connection. More...
 
NeuronGroupdst
 Pointer to the destination group of this connection. More...
 

Protected Member Functions

void compute_reverse_matrix (int z=0)
 
- Protected Member Functions inherited from auryn::SparseConnection
void virtual_serialize (boost::archive::binary_oarchive &ar, const unsigned int version)
 
void virtual_serialize (boost::archive::binary_iarchive &ar, const unsigned int version)
 
void free ()
 
void allocate (AurynLong bufsize)
 
std::vector< type_patternload_pattern_file (string filename, int nb_max_patterns)
 Reads patterns from a .pat file and returns a vector with the patterns. More...
 
- Protected Member Functions inherited from auryn::Connection
void init (TransmitterType transmitter=GLUT)
 

Additional Inherited Members

- Protected Attributes inherited from auryn::SparseConnection
AurynWeight wmin
 
AurynWeight wmax
 
bool skip_diagonal
 
- Protected Attributes inherited from auryn::Connection
TransmitterType trans
 
AurynStateVectortarget_state_vector
 
AurynFloattarget
 A more direct reference on the first element of the target_state_vector. More...
 
NeuronID number_of_spike_attributes
 Number of spike attributes to expect with each spike transmitted through this connection. More...
 
NeuronID spike_attribute_offset
 Stores spike attribute offset in attribute array. More...
 
- Static Protected Attributes inherited from auryn::SparseConnection
static boost::mt19937 sparse_connection_gen = boost::mt19937()
 

Detailed Description

Duplex connection is the base class of most plastic connections.

DuplexConnection serves as base class for plastic connections that want to implement synaptic weight change in response to a postsynaptic spike. This requires the post spike to be signalled back to the presynaptic cell (rather the connecting synapse). To do this efficiently, the weight matrix (ForwardMatrix) which allows for efficient forward propagation of spikes is mirrored as its transposed (BackwardMatrix). To keep the two matrices in sync the BackwardMatrix does not contain the actual weight value to the forward weight, but a pointer reference to that value.

Constructor & Destructor Documentation

◆ DuplexConnection() [1/5]

DuplexConnection::DuplexConnection ( const char *  filename)
54 : SparseConnection(filename)
55 {
56  allocated_bkw=false;
57  if ( dst->get_post_size() > 0 ) {
58  init();
59  }
60 }
SparseConnection()
Empty constructor which should not be used – TODO should be deprecated at some point.
NeuronGroup * dst
Pointer to the destination group of this connection.
Definition: Connection.h:111
NeuronID get_post_size()
Returns the size on this rank.
Definition: SpikingGroup.cpp:314
Here is the call graph for this function:

◆ DuplexConnection() [2/5]

DuplexConnection::DuplexConnection ( NeuronID  rows,
NeuronID  cols 
)
82 : SparseConnection(rows,cols)
83 {
84  allocated_bkw=false;
85  init();
86 }
SparseConnection()
Empty constructor which should not be used – TODO should be deprecated at some point.

◆ DuplexConnection() [3/5]

DuplexConnection::DuplexConnection ( SpikingGroup source,
NeuronGroup destination,
TransmitterType  transmitter = GLUT 
)
65 : SparseConnection(source, destination, transmitter)
66 {
67  allocated_bkw=false;
68 }
SparseConnection()
Empty constructor which should not be used – TODO should be deprecated at some point.

◆ DuplexConnection() [4/5]

DuplexConnection::DuplexConnection ( SpikingGroup source,
NeuronGroup destination,
const char *  filename,
TransmitterType  transmitter = GLUT 
)
73 : SparseConnection(source, destination, filename, transmitter)
74 {
75  allocated_bkw=false;
76  if ( dst->get_post_size() > 0 )
77  init();
78 }
SparseConnection()
Empty constructor which should not be used – TODO should be deprecated at some point.
NeuronGroup * dst
Pointer to the destination group of this connection.
Definition: Connection.h:111
NeuronID get_post_size()
Returns the size on this rank.
Definition: SpikingGroup.cpp:314
Here is the call graph for this function:

◆ DuplexConnection() [5/5]

DuplexConnection::DuplexConnection ( SpikingGroup source,
NeuronGroup destination,
AurynWeight  weight,
AurynFloat  sparseness = 0.05,
TransmitterType  transmitter = GLUT,
std::string  name = "DuplexConnection" 
)
91 : SparseConnection(source,destination,weight,sparseness,transmitter, name)
92 {
93  if ( dst->get_post_size() > 0 )
94  init();
95 }
SparseConnection()
Empty constructor which should not be used – TODO should be deprecated at some point.
NeuronGroup * dst
Pointer to the destination group of this connection.
Definition: Connection.h:111
NeuronID get_post_size()
Returns the size on this rank.
Definition: SpikingGroup.cpp:314
Here is the call graph for this function:

◆ ~DuplexConnection()

DuplexConnection::~DuplexConnection ( )
virtual
105 {
106  if ( dst->get_post_size() != 0 && allocated_bkw ) free();
107  else {
108  logger->debug("DuplexConnection:: Nothing to free.");
109  }
110 }
NeuronGroup * dst
Pointer to the destination group of this connection.
Definition: Connection.h:111
Logger * logger
Global pointer to instance of Logger which needs to be initialized in every simulation main program...
Definition: auryn_global.cpp:36
NeuronID get_post_size()
Returns the size on this rank.
Definition: SpikingGroup.cpp:314
void debug(std::string text, bool global=false, int line=-1, std::string srcfile="")
Definition: Logger.cpp:151
Here is the call graph for this function:

Member Function Documentation

◆ compute_reverse_matrix()

void DuplexConnection::compute_reverse_matrix ( int  z = 0)
protected
114 {
115 
116  if ( fwd->get_nonzero() <= bkw->get_datasize() ) {
117  auryn::logger->msg("Clearing reverse matrix..." ,VERBOSE);
118  bkw->clear();
119  } else {
120  auryn::logger->msg("Bkw buffer too small reallocating..." ,VERBOSE);
122  }
123 
124  std::stringstream oss;
125  oss << "DuplexConnection: ("<< get_name() << "): Computing transposed (reverse) matrix view ...";
126  auryn::logger->msg(oss.str(),VERBOSE);
127 
128  NeuronID maxrows = get_m_rows();
129  NeuronID maxcols = get_n_cols();
130  NeuronID ** rowwalker = new NeuronID * [maxrows+1];
131  // copy pointer arrays
132  for ( NeuronID i = 0 ; i < maxrows+1 ; ++i ) {
133  rowwalker[i] = (fwd->get_rowptrs())[i];
134  }
135  for ( NeuronID j = 0 ; j < maxcols ; ++j ) {
136  if ( dst->localrank(j) ) {
137  for ( NeuronID i = 0 ; i < maxrows ; ++i ) {
138  if (rowwalker[i] < fwd->get_rowptrs()[i+1]) { // stop when reached end of row
139  if (*rowwalker[i]==j) { // if there is an element for that column add pointer to backward matrix
140  bkw->push_back(j,i,fwd->get_ptr(i,j,z));
141  ++rowwalker[i]; // move on when processed element
142  }
143  }
144  }
145  }
146  }
147  bkw->fill_na();
148  delete [] rowwalker;
149 
150  if ( fwd->get_nonzero() != bkw->get_nonzero() ) {
151  oss.str("");
152  oss << "DuplexConnection: ("<< get_name() << "): "
153  << bkw->get_nonzero()
154  << " different number of non-zero elements in bkw and fwd matrix.";
155  auryn::logger->msg(oss.str(),ERROR);
156  } else {
157  oss.str("");
158  oss << "DuplexConnection: ("<< get_name() << "): "
159  << bkw->get_nonzero()
160  << " elements processed.";
161  auryn::logger->msg(oss.str(),VERBOSE);
162  }
163 }
T * get_ptr(const NeuronID i, const NeuronID j, const StateID z=0)
Returns the pointer to a particular element.
Definition: ComplexMatrix.h:814
bool localrank(NeuronID i)
Checks if the global NeuronID i is integrated on this MPI rank.
Definition: SpikingGroup.cpp:531
AurynLong get_datasize()
Returns datasize: number of possible entries.
Definition: ComplexMatrix.h:651
void clear()
Definition: SimpleMatrix.h:248
BackwardMatrix * bkw
Definition: DuplexConnection.h:64
AurynLong get_nonzero()
Returns number of non-zero elements.
Definition: ComplexMatrix.h:670
NeuronGroup * dst
Pointer to the destination group of this connection.
Definition: Connection.h:111
Logger * logger
Global pointer to instance of Logger which needs to be initialized in every simulation main program...
Definition: auryn_global.cpp:36
void push_back(const NeuronID i, const NeuronID j, const T value)
Definition: SimpleMatrix.h:380
NeuronID get_n_cols()
Get number of columns (postsynaptic) in connection.
Definition: Connection.cpp:183
Definition: Logger.h:41
ForwardMatrix * fwd
Definition: DuplexConnection.h:63
void resize_buffer_and_clear(AurynLong size)
Definition: SimpleMatrix.h:308
NeuronID ** get_rowptrs()
Definition: ComplexMatrix.h:965
Definition: Logger.h:41
void msg(std::string text, LogMessageType type=NOTIFICATION, bool global=false, int line=-1, std::string srcfile="")
Definition: Logger.cpp:74
AurynLong get_nonzero()
Definition: SimpleMatrix.h:410
AurynLong get_datasize()
Definition: SimpleMatrix.h:403
NeuronID get_m_rows()
Get number of rows (presynaptic) in connection.
Definition: Connection.cpp:178
void fill_na()
Marks the remainder of buffers non-existing connections.
Definition: SimpleMatrix.h:416
std::string get_name()
Returns name of connection.
Definition: Connection.cpp:87
unsigned int NeuronID
NeuronID is an unsigned integeger type used to index neurons in Auryn.
Definition: auryn_definitions.h:151
Here is the call graph for this function:

◆ finalize()

void DuplexConnection::finalize ( )
virtual

Finalizes connection after random or manual initialization of the weights.

Essentially pads zeros or non-existing elements at the end of ComplexMatrix. Called interally or after manually filling matrices.

Reimplemented from auryn::SparseConnection.

Reimplemented in auryn::TripletConnection, auryn::LPTripletConnection, auryn::MinimalTripletConnection, auryn::STDPwdConnection, auryn::TripletScalingConnection, and auryn::STDPConnection.

44 {
45  std::stringstream oss;
46  oss << "DuplexConnection: Finalizing ...";
47  auryn::logger->msg(oss.str(),VERBOSE);
48 
50 }
Logger * logger
Global pointer to instance of Logger which needs to be initialized in every simulation main program...
Definition: auryn_global.cpp:36
void compute_reverse_matrix(int z=0)
Definition: DuplexConnection.cpp:113
Definition: Logger.h:41
void msg(std::string text, LogMessageType type=NOTIFICATION, bool global=false, int line=-1, std::string srcfile="")
Definition: Logger.cpp:74
Here is the call graph for this function:

◆ prune()

void DuplexConnection::prune ( )

Prune weight matrices.

166 {
167  auryn::logger->msg("Pruning weight matrix",VERBOSE);
168  fwd->prune();
170 }
void prune()
Prunes the reserved memory such that datasize=get_nonzero() Note that this is an expensive operation ...
Definition: ComplexMatrix.h:562
Logger * logger
Global pointer to instance of Logger which needs to be initialized in every simulation main program...
Definition: auryn_global.cpp:36
void compute_reverse_matrix(int z=0)
Definition: DuplexConnection.cpp:113
ForwardMatrix * fwd
Definition: DuplexConnection.h:63
Definition: Logger.h:41
void msg(std::string text, LogMessageType type=NOTIFICATION, bool global=false, int line=-1, std::string srcfile="")
Definition: Logger.cpp:74
Here is the call graph for this function:

Member Data Documentation

◆ bkw

BackwardMatrix* auryn::DuplexConnection::bkw

◆ fwd

ForwardMatrix* auryn::DuplexConnection::fwd

The documentation for this class was generated from the following files: