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

◆ vec_homogenize() [1/2]

vec Ring::vec_homogenize ( const FreeModule * F,
const vec f,
int v,
const std::vector< int > & wts ) const

Definition at line 910 of file ring-vecs.cpp.

914{
915 vecterm *result = nullptr;
916 if (f == nullptr) return result;
917 int lo, hi;
918 vec_degree_weights(F, f, wts, lo, hi);
919 assert(wts[v] != 0);
920 int d = (wts[v] > 0 ? hi : lo);
921 return vec_homogenize(F, f, v, d, wts);
922}
vec vec_homogenize(const FreeModule *F, const vec f, int v, int deg, const std::vector< int > &wts) const
void vec_degree_weights(const FreeModule *F, const vec f, const std::vector< int > &wts, int &lo, int &hi) const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References result(), vec_degree_weights(), and vec_homogenize().