![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Port of matlab/src/api/sn/sn_print.m, jline.api.sn.SnPrint and the python sn_print in api/sn/utils.py: the full debug dump of a NetworkStruct, one field: value line per field, matrices in the compact [a b; c d] form, integer-valued entries printed as integers. More...
#include <cmath>#include <cstddef>#include <cstdio>#include <limits>#include <string>#include <vector>#include "line/lang/lang_types.h"#include "line/lang/qn/network_struct.h"#include "line/num/number.h"#include "line/util/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 (const qn::NetworkStruct< T > &sn) |
| The full field: value dump of a NetworkStruct, ending with a newline. | |
Port of matlab/src/api/sn/sn_print.m, jline.api.sn.SnPrint and the python sn_print in api/sn/utils.py: the full debug dump of a NetworkStruct, one field: value line per field, matrices in the compact [a b; c d] form, integer-valued entries printed as integers.
The field list is this port's own: the C++ NetworkStruct is object-shaped (per-station and per-class records instead of MATLAB's flat matrices), so the dump renders the MATLAB fields it can derive (refstat, njobs, nservers, phases, chains, ...) in the reference's order and naming, then the structural members that only exist here (station_to_node, stateful_nodes). MATLAB fields with no counterpart in this port (connmatrix, spaceHash) are omitted rather than printed empty; network_struct.h documents why each is absent.
Returned as a string rather than printed, so a caller can route it to a log, a CLI or a test, following sn_print_routing_matrix.
ARITHMETIC: field, but the rendering is in double.
Definition in file sn_print.h.