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

◆ make()

Matrix * res_comp::make ( int i) const

Definition at line 1388 of file res-a1.cpp.

1389{
1390 const FreeModule *F = free_of(level - 1);
1391 const FreeModule *G = free_of(level);
1392 MatrixConstructor result(F, G, nullptr);
1393
1394 int n = 0;
1395 if (G == nullptr) return result.to_matrix();
1396 res_level *lev = resn[level];
1397 for (int j = 0; j < lev->bin.size(); j++)
1398 {
1399 res_degree *mypairs = lev->bin[j];
1400 for (res_pair *p = mypairs->first; p != nullptr; p = p->next)
1401 result.set_column(n++, R->to_vector(p->syz, F));
1402 }
1403 return result.to_matrix();
1404}
res_poly * R
Definition res-a1.hpp:79
const FreeModule * free_of(int i) const
Definition res-a1.cpp:1341
res_pair * first
Definition res-a1.hpp:25
int p
VALGRIND_MAKE_MEM_DEFINED & result(result)
tbb::flow::graph G

References res_degree::first, free_of(), G, Matrix, p, R, and result().