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

Predefined Feedforward Topologies.
http://tituxdev.github.io/NeuroTIC/src/CPU/ntfeedforward.c. More...

#include "ntcore.h"
Include dependency graph for ntfeedforward.h:
This graph shows which files directly or indirectly include this file:

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

Predefined Feedforward Topologies.
http://tituxdev.github.io/NeuroTIC/src/CPU/ntfeedforward.c.

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.h.

Function Documentation

◆ newdense()

struct net_s * newdense ( net_s net)

Initializes a dense feedforward topology.

Parameters
netPointer to the network to configure.
Returns
Pointer to the configured network, or NULL on invalid input.

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.

Parameters
netPointer to the network to configure.
Returns
Pointer to the configured network, or NULL on invalid input.

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.