[PREVIOUS][UP]

Embedding Neo Circuits

The libnstld.so library provides a C/C++ interface to load circuits from *.NST description files as written by Neo. For a more detailed description see the Nst Loader documentation (PDF).

A simple example can be found in the file call_pca.c in the nstloader subdirectory of this tutorial. In order to try the Nst Loader mechanism, edit the Makefile and adjust NST_HOME to point to your local Neo/NST installation path.

The example circuit PCA.NST.gz which is embedded into the C-program generates a sequence of 3D random vectors, computes the principal components of the data distribution and displays the results. It has the following interface:
Input field 0 3D float[] Variance of random sequence along X, Y and Z-axis
Output field 0 dynamical float[] Eigenvector matrix
Output field 1 3D float Eigenvalues in descendig order

The C-program is a simple wrapper which executes the "pca" unit while binding C-variables to its input- and output fields. It serves as a starting point for more advanced applications, which embedd complete Neo circuits to realize complex Neural Networks or Data Mining tasks. These in turn can be implemented with the Neo/NST rapid prototyping framework.


[PREVIOUS][UP]