Tensor Network Theory Library  Beta release 1.1.1 A library of routines for performing TNT-based operations
Functional nodes

## Detailed Description

A functional node contains a number of operators, and information for building the node from a function, and operators and parameters. Currently functional nodes can only be created using initialisation files, and more information is given in the documentation for tntLoadNodes(). Multiple copies of this node can then be made for using at different points in the network. The parameter values for each point in the node are then set using the functions tntNodeSetRealParam() or tntNodeSetCompParam(). Note that once the node has been used in a calculation e.g. tntNodeContractPair(), the functional nature is lost.

## Functions

void tntNodeSetCompParam (tntNode A, tntComplex pval, unsigned pnum)

void tntNodeSetRealParam (tntNode A, double pval, unsigned pnum)

## Function Documentation

 void tntNodeSetCompParam ( tntNode A, tntComplex pval, unsigned pnum )

Sets complex parameters for functional nodes. If there are multiple parameters, this function should be called once for each parameter. These parameters will then be used to generate the tensor using the operators and linked function set when the node was first created. Trying to set a parameter for a node that is not a functional node will cause an error.

Parameters
 A The node to set the parameter for pval The value to set for the parameter pnum Index specifying which parameter should be set, where the index counts from zero.

Definition at line 497 of file tntNodeUtil.c.

 void tntNodeSetRealParam ( tntNode A, double pval, unsigned pnum )

Sets a real parameter for functional nodes. If there are multiple parameters, this function should be called once for each parameter. These parameters will then be used to generate the tensor using the operators and linked function set when the node was first created. Trying to set a parameter for a node that is not a functional node will cause an error.

Parameters
 A The node to set the parameter for pval The value to set for the parameter pnum Index specifying which parameter should be set, where the index counts from zero.

Definition at line 480 of file tntNodeUtil.c.