Skip to content

Commit

Permalink
libsingular_julia: id_prune_map_v
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes14 committed Dec 17, 2023
1 parent 2f97ab9 commit 4cc8b96
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions deps/src/ideals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,17 @@ auto id_prune_map_helper(sip_sideal * I, ring R)
return std::make_tuple(s, TT);
}

auto id_prune_map_v_helper(sip_sideal * I, int* v, ring R)
{
auto origin = currRing;
rChangeCurrRing(R);
ideal T;
ideal s = idMinEmbedding_with_map_v(I, NULL, T, v);
matrix TT = id_Module2Matrix(T, currRing);
rChangeCurrRing(origin);
return std::make_tuple(s, TT);
}

ideal id_Syzygies_internal(ideal m, ring o)
{
ideal id = NULL;
Expand Down Expand Up @@ -405,6 +416,7 @@ void singular_define_ideals(jlcxx::Module & Singular)
Singular.method("id_res", &id_res_helper);
Singular.method("id_mres_map", &id_mres_map_helper);
Singular.method("id_prune_map", &id_prune_map_helper);
Singular.method("id_prune_map_v", &id_prune_map_v_helper);

Singular.method("id_Slimgb", &id_Slimgb_helper);

Expand Down

0 comments on commit 4cc8b96

Please sign in to comment.