Changeset 739 for cpp/frams/_demos/printconvmap.h
- Timestamp:
- 02/18/18 02:54:36 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/printconvmap.h
r732 r739 7 7 8 8 #include <frams/util/sstring.h> 9 #include <frams/model/model.h> 10 #include <frams/util/multimap.h> 9 11 10 12 class MultiMap; 11 13 12 void printConvMap(const SString& gen1, const SString& gen2, const MultiMap& map); 13 void printModelMap(const SString& gen1, const MultiMap& map); //automaticaly combines the map with the ModelDisplayMap 14 const MultiMap & getModelDisplayMap(); // mapping: true model -> display (so the regular map printing/debugging tools can be used for model maps, avoiding invonveniently huge numbers) 14 void printConvMap(const SString& gen1, const SString& gen2, const MultiMap& map, int left_column_padding = 15); 15 16 class ModelDisplayMap 17 { 18 MultiMap map; 19 Model &model; 20 int joint_offset, neuron_offset, max_element; 21 public: 22 ModelDisplayMap(Model &m); 23 void print(int left_column_padding = 15); 24 const MultiMap & getMap() { return map; } //mapping: true model -> display (so the regular map printing/debugging tools can be used for model maps, avoiding invonveniently huge numbers) 25 }; 15 26 16 27 #endif
Note: See TracChangeset
for help on using the changeset viewer.