Views can modify the implementation of a network interface by
adding interface methods that are not supported by the implementation,
changing the implementation of interface methods, and
deleting interface methods.
Views implement the network interface and can be passed like a network to an algorithm. Several views are implemented in tweedledum.
layers_view: Compute levels and depth¶
layers_view: public tweedledum::immutable_view<Network>¶
Implements the network interface methods
The layers are computed at construction and can be recomputed by calling the
NOTE: The 0th and the last layers correspond to the input and output nodes, respectively.
immutable_view: Prevent network changes¶
immutable_view: public Network¶
Deletes all methods that can change the network.
This view deletes all methods that can change the network structure such as This view is convenient to use as a base class for other views that make some computations based on the structure when being constructed.
Subclassed by tweedledum::layers_view< Network >, tweedledum::pathsum_view< Network >, tweedledum::stats_view< Network >
immutable_view(Network const &network)¶
Constructs immutable view on a network.