Macaulay2 Engine
Loading...
Searching...
No Matches

◆ tryOutMathicCode()

void tryOutMathicCode ( )

Monoid tests

Definition at line 1185 of file NCReduction.cpp.

1186{
1187 std::cout << "trying out mathic code!" << std::endl;
1188
1189 auto Q = makeQueue();
1190 Q->push(3);
1191 Q->push(7);
1192 Q->push(2);
1193 Q->push(42);
1194 Q->push(7);
1195 while (not Q->empty())
1196 {
1197 int a = Q->pop();
1198 std::cout << "popped: " << a << std::endl;
1199 }
1200
1201
1202 std::cout << "trying out mathic code, part 2!" << std::endl;
1203
1204 auto Q1 = makeQueue1();
1205 Q1->push(3);
1206 Q1->push(7);
1207 Q1->push(2);
1208 Q1->push(42);
1209 Q1->push(7);
1210 while (not Q1->empty())
1211 {
1212 int a = Q1->pop();
1213 std::cout << "popped: " << a << std::endl;
1214 }
1215}
std::unique_ptr< mathic::Geobucket< OurQueueConfiguration > > makeQueue()
std::unique_ptr< mathic::Geobucket< OurQueueConfiguration1 > > makeQueue1()

References makeQueue(), and makeQueue1().

Referenced by TEST().