| 195 | |
| 196 | |
| 197 | int main() |
| 198 | { |
| 199 | ZMatrix A(3,2); |
| 200 | |
| 201 | A[0][0]=2;A[0][1]=2; |
| 202 | A[1][0]=1;A[1][1]=2; |
| 203 | A[2][0]=-2;A[2][1]=1; |
| 204 | |
| 205 | ZMatrix temp(0,2); |
| 206 | ZCone C(A,temp); |
| 207 | |
| 208 | cout<<C; |
| 209 | C.canonicalize(); |
| 210 | cout<<C; |
| 211 | |
| 212 | cout<<"Relative interior point"<<endl<<C.getRelativeInteriorPoint()<<endl; |
| 213 | cout<<"Extreme rays"<<endl<<C.extremeRays()<<endl; |
| 214 | cout<<"Dual cone"<<endl<<C.dualCone()<<endl; |
| 215 | cout<<"Unique point"<<endl<<C.getUniquePoint()<<endl; |
| 216 | cout<<"Inequalities"<<endl<<C.getInequalities()<<endl; |
| 217 | |
| 218 | |
| 219 | ZMatrix B(1,2); |
| 220 | |
| 221 | B[0][0]=1;B[0][1]=5; |
| 222 | ZCone C2(B,temp); |
| 223 | C2.canonicalize(); |
| 224 | cout<<""<<"Quotient lattice basis"<<endl<<C2.quotientLatticeBasis()<<endl; |
| 225 | cout<<""<<"Semigroup generator"<<endl<<C2.semiGroupGeneratorOfRay()<<endl; |
| 226 | |
| 227 | |
| 228 | |
| 229 | |
| 230 | |
| 231 | std::cerr<<toString(C); |
| 232 | std::cerr<<toPrintString(C,"_"); |
| 233 | |
| 234 | return 0; |
| 235 | } |
nothing calls this directly
no test coverage detected