Macaulay2 Engine
Loading...
Searching...
No Matches
cra.h
Go to the documentation of this file.
1#ifndef _cra_h_
2# define _cra_h_
3
30
31# include "engine-includes.hpp"
32
33// TODO: fix this
34# if defined(__cplusplus)
35class Matrix;
36class Ring;
37class RingElement;
38# else
39typedef struct Matrix Matrix;
40typedef struct Ring Ring;
41typedef struct RingElement RingElement;
42# endif
43
47
48# if defined(__cplusplus)
49extern "C" {
50# endif
51
53 const RingElement *g,
54 mpz_srcptr m,
55 mpz_srcptr n);
56
57const Matrix *rawMatrixCRA(const Matrix *f,
58 const Matrix *g,
59 mpz_srcptr m,
60 mpz_srcptr n);
61
62// f should be an element in the polynomial ring R (over ZZ).
63// RQ should be the same ring as R, but with rational coefficients
65 mpz_srcptr m,
66 const Ring *RQ);
67
68// f should be a matrix in the polynomial ring R (over ZZ).
69// RQ should be the same ring as R, but with rational coefficients
71 mpz_srcptr m,
72 const Ring *RQ);
73
74# if defined(__cplusplus)
75}
76# endif
77
78#endif /* _cra_h_ */
79
80// Local Variables:
81// indent-tabs-mode: nil
82// End:
Front-end-visible "ring element" value: an engine ring_elem paired with the Ring* that gives it meani...
Definition relem.hpp:67
xxx xxx xxx
Definition ring.hpp:102
const RingElement * rawRingElementCRA(const RingElement *f, const RingElement *g, mpz_srcptr m, mpz_srcptr n)
Definition cra.cpp:14
const RingElement * rawRingElementRatConversion(const RingElement *f, mpz_srcptr m, const Ring *RQ)
Definition cra.cpp:94
const Matrix * rawMatrixRatConversion(const Matrix *f, mpz_srcptr m, const Ring *RQ)
Definition cra.cpp:135
const Matrix * rawMatrixCRA(const Matrix *f, const Matrix *g, mpz_srcptr m, mpz_srcptr n)
Definition cra.cpp:61
Engine-wide include prelude — a single point of truth for portability shims.
#define Matrix
Definition factory.cpp:14