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

◆ make()

Matrix * res2_comp::make ( int i) const

Definition at line 2073 of file res-a0.cpp.

2074{
2075 const FreeModule *F = free_of(level - 1);
2076 const FreeModule *G = free_of(level);
2077 MatrixConstructor result(F, G, nullptr);
2078 // Matrix *result = new Matrix(free_of(level-1), free_of(level));
2079
2080 int n = 0;
2081 if (G->rank() == 0) return result.to_matrix();
2082 for (res2_pair *p = resn[level]->pairs; p != nullptr; p = p->next)
2083 result.set_column(n++, R->to_vector(p->syz, F));
2084 return result.to_matrix();
2085}
FreeModule * free_of(int i) const
Definition res-a0.cpp:2034
res2_poly * R
Definition res-a0.hpp:123
int p
VALGRIND_MAKE_MEM_DEFINED & result(result)
tbb::flow::graph G

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

Referenced by make_minimal().