nns.c  1.0.1
Nanowire Network simulator
components.h
Go to the documentation of this file.
1 
8 #ifndef COMPONENTS_H
9 #define COMPONENTS_H
10 
11 #include "device/network.h"
12 #include "device/component.h"
13 
23 int map_components(const datasheet ds, const network_topology nt, int n2c[]);
24 
47 void group_nanowires(
48  const datasheet ds,
50  int n2c[],
51  int cc_count
52 );
53 
69  const datasheet ds,
70  const network_topology nt,
71  int n2c[],
72  int cc_count
73 );
74 
75 #endif /* COMPONENTS_H */
Defines the structure and operations for connected components in a Nanowire Network.
connected_component * split_components(const datasheet ds, const network_topology nt, int n2c[], int cc_count)
Create cc_count connected components referencing the sub-arrays of ns containing the data belonging t...
Definition: components.c:145
void group_nanowires(const datasheet ds, network_topology nt, int n2c[], int cc_count)
Sort the Ws and Js arrays of nt according to the index of the connected component each entry belongs ...
Definition: components.c:96
int map_components(const datasheet ds, const network_topology nt, int n2c[])
Given a network topology and its corresponding datasheet, generate an array containing for each node ...
Definition: components.c:7
Defines the structures and functions used to model and simulate the topology and electrical state of ...
Connected component of the Nanowire Network. It contains all the information needed to identify the n...
Definition: component.h:24
Defines the static characteristics of the device.
Definition: datasheet.h:16
Topology of the Nanowire Network. It contains information about the physical placement of nanowires a...
Definition: network.h:26