setupPromote fsetupPromote(f, R, S)setupPromote(f, R, S, d)setupPromote(R, S)This defines promotion from one ring R to another ring S as the application of a ring map or function f. After calling setupPromote, any operation that is given an element of R but expects an element of S will automatically promote it by applying f.
Note that R and S must be specified when f is a function, but may be omitted when it is a ring map.
|
|
|
|
|
|
If f is omitted, then the map created by map(Ring,Ring) that maps variables in R to variables in S with the same name is used.
|
|
|
|
The optional argument d is a function that translates degrees from R to S. It is used to set up promote(List, R, S), which translates degree lists when promoting free modules. When f is a function, there is no DegreeMap option available, so d must be specified explicitly if the degree map is not the default (which pads or truncates degrees). Consider the following example.
|
|
|
|
|
|
The object setupPromote is a method function.
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Macaulay2Doc/functions/setupPromote-doc.m2:70:0.