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

◆ TEST() [2/19]

TEST ( FreeAlgebra ,
create  )

Definition at line 269 of file NCGroebnerTest.cpp.

270{
271 if (degreeRing(1) == nullptr or error())
272 {
273 std::cout << "Error: " << error_message() << std::endl;
274 EXPECT_TRUE(false);
275 }
276
278 { "x", "y", "z" },
279 degreeRing(1),
280 {1,2,3},
281 {},
282 {1}
283 );
284 EXPECT_TRUE(A != nullptr);
285}
const RingQQ * globalQQ
Definition aring.cpp:24
static FreeAlgebra * create(const Ring *K, const std::vector< std::string > &names, const PolynomialRing *degreeRing, const std::vector< int > &degrees, const std::vector< int > &wtvecs, const std::vector< int > &heftVector)
Free associative algebra over a coefficient ring: the non-commutative analogue of PolynomialRing.
const char * error_message()
Definition error.c:49
int error()
Definition error.c:48
const PolynomialRing * degreeRing(const std::vector< std::string > &names)

References FreeAlgebra::create(), degreeRing(), error(), error_message(), and globalQQ.