Definition at line 1087 of file matrix.cpp.
1088{
1090 {
1091 ERROR(
"expected a matrix with one row");
1092 return nullptr;
1093 }
1094
1100
1103 for (
int c = 0; c <
G->rank(); c++)
1104 {
1105 C.decode(c, a);
1107 for (
int r =
p - 1; r >= 0; r--)
1108 {
1110 size_t x = C.encodeBoundary(r, a);
1111 ring_elem f =
elem(0,
static_cast<int>(a[r]));
1113
1114 mat.set_entry(
static_cast<int>(
x), c, f);
1115 }
1116 }
1117 return mat.to_matrix();
1118}
FreeModule * exterior(int p) const
const_monomial degree_shift() const
const Ring * get_ring() const
ring_elem elem(int i, int j) const
friend class MatrixConstructor
const FreeModule * cols() const
void negate_to(ring_elem &f) const
std::vector< size_t > Subset
mpreal & negate(mpreal &x)
References cols(), Subsets::decode(), degree_shift(), elem(), Subsets::encodeBoundary(), ERROR, FreeModule, G, get_ring(), koszul(), Matrix(), MatrixConstructor, n_cols(), n_rows(), Ring::negate_to(), p, MatrixConstructor::set_entry(), MatrixConstructor::to_matrix(), and x.
Referenced by IM2_Matrix_koszul(), koszul(), and koszul().