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

◆ get_initial()

const Matrix * GB_comp::get_initial ( int nparts)
virtual

Implements GBComputation.

Definition at line 1043 of file gb-homog2.cpp.

1044{
1046 MatrixConstructor mat(_F, 0);
1047 for (int i = 0; i < _gb.size(); i++)
1048 {
1049 gbvector *f = _GR->gbvector_lead_term(nparts, _F, _gb[i]->f);
1050 mat.append(originalR->translate_gbvector_to_vec(_F, f));
1051 }
1052 // TODO: sort this list. This sort order will affect:
1053 // get_matrix, get_change, and of course this one.
1054 return mat.to_matrix();
1055}
void start_computation()
const FreeModule * _F
Definition gb-homog2.hpp:73
GBRing * _GR
Definition gb-homog2.hpp:68
const PolynomialRing * originalR
Definition gb-homog2.hpp:67

References _F, _GR, MatrixConstructor::append(), Matrix, originalR, start_computation(), and MatrixConstructor::to_matrix().