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

◆ subtract_vec()

vec Ring::subtract_vec ( vec v,
vec w ) const

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

208{
209 vec f = copy_vec(v);
210 vec g = negate_vec(w);
211 add_vec_to(f, g);
212 return f;
213}
vec negate_vec(vec v) const
void add_vec_to(vec &v, vec &w) const
vec copy_vec(const vecterm *v) const
Definition ring-vecs.cpp:91

References add_vec_to(), copy_vec(), and negate_vec().