|
Macaulay2 Engine
|
|
virtual |
If there is a "natural" map S --> R=this, where f is an element of S , then result is set to the image of f, and true is returned. Otherwise, false is returned.
The map must one-step, e.g. for k --> k[x] --> k[x][y], promotion must be done with two consecutive calls to promote(with different arguments). Examples of natural maps: ZZ --> R, for any R QQ --> RR --> CC ZZ --> ZZ/p ZZ/p --> GF(p^n) GF(p^m) --> GF(p^n), where m|n A --> A[vars]/I A[vars]/J --> A[vars]/I (assumption: I contains J).
Implements Ring.
Definition at line 663 of file aring-glue.hpp.
References copy(), Ring::from_int(), ring_elem::get_mpz(), globalZZ, R, Ring::Ring(), M2::ring_CC, M2::ring_CCC, M2::ring_CCi, M2::ring_QQ, M2::ring_RR, M2::ring_RRi, M2::ring_RRR, M2::ring_ZZp, M2::ring_ZZpFfpack, and Ring::ringID().