forked from Macaulay2/M2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
M2/Macaulay2/packages/Macaulay2Doc/functions/setupPromote-doc.m2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- status: DRAFT | ||
--- author(s): PZJ | ||
--- notes: | ||
|
||
undocumented {(setupPromote,Ring,Ring)} | ||
|
||
doc /// | ||
Key | ||
setupPromote | ||
Headline | ||
automatic promotion from one ring to another | ||
Usage | ||
setupPromote f | ||
Inputs | ||
f: RingMap | ||
Description | ||
Text | ||
After calling @TT "setupPromote"@, any operation that is given an element of the source of @TT "f"@ but | ||
expects an elements of the target of @TT "f"@ will automatically apply @TT "f"@. | ||
Example | ||
R=QQ[x_1,x_2] | ||
R'=QQ[e_1,e_2] | ||
setupPromote map(R,R',{x_1+x_2,x_1*x_2}) | ||
e_1*x_1 | ||
e_2==x_1*x_2 | ||
/// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters