2372{
2373 int t0,t1,t2,
i,
j,t,
m;
2376 std::vector<std::vector<int> > hvs=
supports(
h), mv=
Mabv(
h,a,
b), mts, vecs,vars;
2378 mts=
mabtv(hvs,mv,av,bv);
2379 PrintS(
"The homomorphism should map onto:\n");
2383 {
2384 vars=
mabtv(hvs,mv,av,bv);
2385 int vn=vars.size();
2386 for(t0=0;t0<vars.size();t0++)
2387 {
2391 {
2392
2394
2395
2396
2397 vecs.push_back(
vec);
2399 }
2401 {
2402
2404
2405
2406
2407 vecs.push_back(
vec);
2409 }
2410 for(t1=t0+1;t1<vars.size();t1++)
2411 {
2412 for(t2=t1+1;t2<vars.size();t2++)
2413 {
2414 if(vars[t0][0]==vars[t1][0]&&vars[t1][1]==vars[t2][1]&&vars[t0][1]==vars[t2][0])
2415 {
2418 t=vars[t1][1];
2420 {
2422 vecs.push_back(
vec);
2424 }
2425 }
2426 }
2427 }
2428 }
2429
2430
2433
2434 std::vector<std::vector<int> > re=
getvector(id_re,vn);
2435 PrintS(
"this is the solution for ideal :\n");
2438 std::vector<std::vector<int> > sub=
subspacet(mv, bv,vars);
2439 PrintS(
"this is the solution for subspace:\n");
2443 PrintS(
"This is the solution of coefficients:\n");
2446 }
2447 else
2448 {
2449 PrintS(
"No element considered!");
2450 }
2451}
bool condition3for2(std::vector< std::vector< int > > hvs, std::vector< int > pv, std::vector< int > qv, std::vector< int > av, std::vector< int > bv)
bool condition1for2(std::vector< int > pv, std::vector< int > qv, std::vector< int > bv)
ideal idMake3(std::vector< std::vector< int > > vecs)
bool condition2for2(std::vector< std::vector< int > > hvs, std::vector< int > pv, std::vector< int > qv, std::vector< int > sv, std::vector< int > av, std::vector< int > bv)
std::vector< std::vector< int > > subspacet(std::vector< std::vector< int > > mv, std::vector< int > bv, std::vector< std::vector< int > > ntvs)
void lpsprint(std::vector< std::vector< poly > > pvs)
std::vector< std::vector< poly > > idMakei(std::vector< std::vector< int > > mv, std::vector< std::vector< int > > vecs)
std::vector< std::vector< int > > mabtv(std::vector< std::vector< int > > hvs, std::vector< std::vector< int > > Mv, std::vector< int > av, std::vector< int > bv)
std::vector< std::vector< int > > getvector(ideal h, int n)
std::vector< int > makeequation(int i, int j, int t)