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

◆ NCCoefficientMatrix() [1/2]

std::pair< Matrix *, Matrix * > NCCoefficientMatrix ( const Matrix * M)

Definition at line 1673 of file matrix.cpp.

1674{
1675 const M2FreeAlgebraOrQuotient* Q = dynamic_cast<const M2FreeAlgebraOrQuotient*>(M->get_ring());
1676 if (Q == nullptr)
1677 {
1678 ERROR("expected NC polynomial algebra");
1679 return {nullptr, nullptr};
1680 }
1681
1683 NCMonomials(H, M);
1684
1685 // now loop through all columns in M, monomials in column:
1686 // find index.
1687 // create coeff
1688 // return matrix constructed.
1689 return {nullptr, nullptr};
1690}
virtual int n_vars() const =0
Abstract Ring subclass that lifts either a FreeAlgebra or a FreeAlgebraQuotient into the engine's Rin...
const Ring * get_ring() const
Definition matrix.hpp:134
Current IntsSet configuration: exposes Hash and Eq as discrete member functors so the unordered_set c...
const int ERROR
Definition m2-mem.cpp:55
void NCMonomials(ModuleMonomialSet &H, const Matrix *M)
Definition matrix.cpp:1593
IntsSet< ModuleMonomDefaultConfig > ModuleMonomialSet

References ERROR, Matrix::get_ring(), Matrix, M2FreeAlgebraOrQuotient::n_vars(), and NCMonomials().