NeuroTIC 0.0
Loading...
Searching...
No Matches
ntfeedforward.c File Reference

Implementation of predefined feedforward topologies for NeuroTIC networks. More...

#include "ntfeedforward.h"
#include "ntmemory.h"
#include <stdlib.h>
Include dependency graph for ntfeedforward.c:

Go to the source code of this file.

Functions

struct net_snewfeedforward (net_s *net)
 Initializes a simple feedforward topology.
 
struct net_snewdense (net_s *net)
 Initializes a dense feedforward topology.
 

Detailed Description

Implementation of predefined feedforward topologies for NeuroTIC networks.

Provides convenient functions to initialize common neural network wiring configurations.
These functions allocate and configure the network's bff_wiring structure according to a specific topology.

Author
Oscar Sotomayor
Date
2026

Definition in file ntfeedforward.c.

Function Documentation

◆ newdense()

struct net_s * newdense ( net_s net)

Initializes a dense feedforward topology.

Connects each neuron in a layer to all neurons in previous layers, creating a fully connected inter-layer mapping.
Validates input and uses memtrack for all allocations.

References wiring_s::array_type, wiring_s::arrays, neuron_s::bff_idx, net_s::layers, net_s::neurons, net_s::nn, wiring_s::size, wiring_s::src_index, wiring_s::src_layer, wiring_s::src_type, and net_s::wiring.

◆ newfeedforward()

struct net_s * newfeedforward ( net_s net)

Initializes a simple feedforward topology.

Sets up one buffer per neuron connecting each neuron to the corresponding neuron in the previous layer.
Validates input and uses memtrack for all allocations.

References wiring_s::array_type, wiring_s::arrays, neuron_s::bff_idx, net_s::layers, net_s::neurons, net_s::nn, wiring_s::size, wiring_s::src_index, wiring_s::src_layer, wiring_s::src_type, and net_s::wiring.