A multi-rational map is a rational map between multi-projective varieties, $$\Phi:X\subseteq \mathbb{P}^{r_1}\times\mathbb{P}^{r_2}\times\cdots\times\mathbb{P}^{r_n}\dashrightarrow Y \subseteq \mathbb{P}^{s_1}\times\mathbb{P}^{s_2}\times\cdots\times\mathbb{P}^{s_m} .$$Thus, it can be represented by an ordered list of rational maps$$\Phi_i = (\Phi:X\dashrightarrow Y)\circ(pr_i:Y\to Y_i\subseteq\mathbb{P}^{s_i}) ,$$for $i=1,\ldots,m$. The maps $\Phi_i:X\dashrightarrow Y_i\subseteq\mathbb{P}^{s_i}$, since the target $Y_i$ is a standard projective variety, are implemented internally with the class LegacyRationalMap of the package Cremona (more properly, when $n>1$ the class of such maps is called LegacyMultihomogeneousRationalMap); they are returned by factor, but usually one does not need to handle them directly.
The most convenient way to define a multi-rational map is to apply the hom-set Hom(X,Y) to the list of the defining forms (see defining a multi-rational map with Hom).
The basic constructor for the class of multi-rational maps is rationalMap (see also shortcuts). It takes as input the list of maps $\{\Phi_1:X\dashrightarrow Y_1,\ldots,\Phi_m:X\dashrightarrow Y_m\}$, together with the variety $Y$, and returns the map $\Phi:X\dashrightarrow Y$.
The object RationalMap is a type, with ancestor classes MutableHashTable < HashTable < Thing.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/MultiprojectiveVarieties.m2:3407:0.