MCPcopy Create free account
hub / github.com/Gecode/gecode / print

Method print

examples/bibd.cpp:146–159  ·  view source on GitHub ↗

Print solution

Source from the content-addressed store, hash-verified

144
145 /// Print solution
146 virtual void
147 print(std::ostream& os) const {
148 os << "\tBIBD("
149 << opt.v << "," << opt.k << ","
150 << opt.lambda << ")" << std::endl;
151 Matrix<BoolVarArray> p(_p,opt.b,opt.v);
152 for (int i = 0; i<opt.v; i++) {
153 os << "\t\t";
154 for (int j = 0; j<opt.b; j++)
155 os << p(j,i) << " ";
156 os << std::endl;
157 }
158 os << std::endl;
159 }
160
161 /// Constructor for cloning \a s
162 BIBD(BIBD& s)

Callers

nothing calls this directly

Calls 1

pFunction · 0.50

Tested by

no test coverage detected