LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
sn_print_routing_matrix.h File Reference

The human-readable form of sn.rtnodes: one line per positive (node, class) to (node, class) edge. More...

#include <cstddef>
#include <cstdio>
#include <string>
#include "line/lang/qn/network_struct.h"
#include "line/num/number.h"
Include dependency graph for sn_print_routing_matrix.h:

Go to the source code of this file.

Namespaces

namespace  line
namespace  line::api

Functions

template<class T>
std::string line::api::sn_print_routing_matrix (const qn::NetworkStruct< T > &sn, std::size_t onlyclass=0)
 The human-readable form of sn.rtnodes: one line per positive (node, class) to (node, class) edge.

Detailed Description

The human-readable form of sn.rtnodes: one line per positive (node, class) to (node, class) edge.

Port of matlab/src/api/sn/sn_print_routing_matrix.m. A Cache's outgoing probability is reported as "state-dependent" rather than as a number, because the number the refresh left there is a placeholder the cache fixed point later replaces; a Sink has no outgoing edge to report; and a class whose routing at that node is DISABLED is skipped even though the expanded matrix may carry a value for it.

Returned as a string rather than printed, so a caller can route it to a log, a CLI or a test. sn_print_routing_matrix in the reference ends with a newline and so does this.

ARITHMETIC: field, but the rendering is in double.

Definition in file sn_print_routing_matrix.h.