1- # -*- coding: utf-8 -*-
21r"""
32Convex rational polyhedral cones
43
@@ -554,7 +553,7 @@ def _ambient_space_point(body, data):
554553
555554 An integral, rational, real algebraic, or numeric point of the
556555 ambient space of ``body`` is returned if ``data`` were
557- successfully interpreted in such a way. A `` TypeError` ` is raised
556+ successfully interpreted in such a way. A :class:` TypeError` is raised
558557 otherwise.
559558
560559 TESTS::
@@ -1664,7 +1663,7 @@ def _contains(self, point, region='whole cone'):
16641663 otherwise, in particular when ``point`` is incompatible with
16651664 the ambient space.
16661665
1667- A `` ValueError` ` is raised if ``region`` is not one of the
1666+ A :class:` ValueError` is raised if ``region`` is not one of the
16681667 three allowed values.
16691668
16701669 TESTS::
@@ -2340,8 +2339,8 @@ def embed(self, cone):
23402339 or
23412340 :meth:`~sage.geometry.cone.ConvexRationalPolyhedralCone.facet_of`. The
23422341 cone returned by this method will have ``self`` as ambient. If ``cone``
2343- does not represent a valid cone of ``self``, `` ValueError`` exception
2344- is raised.
2342+ does not represent a valid cone of ``self``, :class:` ValueError`
2343+ exception is raised.
23452344
23462345 .. NOTE::
23472346
@@ -3017,8 +3016,8 @@ def intersection(self, other):
30173016
30183017 - :class:`cone <ConvexRationalPolyhedralCone>`.
30193018
3020- Raises `` ValueError`` if the ambient space dimensions are not
3021- compatible.
3019+ This raises :class:` ValueError` if the ambient space dimensions
3020+ are not compatible.
30223021
30233022 EXAMPLES::
30243023
@@ -5349,7 +5348,7 @@ def random_element(self, ring=ZZ):
53495348 Either a lattice element or vector contained in both this cone
53505349 and its ambient vector space. If ``ring`` is ``ZZ``, a lattice
53515350 element is returned; otherwise a vector is returned. If ``ring``
5352- is neither ``ZZ`` nor ``QQ``, then a `` NotImplementedError` ` is
5351+ is neither ``ZZ`` nor ``QQ``, then a :class:` NotImplementedError` is
53535352 raised.
53545353
53555354 EXAMPLES:
@@ -6267,7 +6266,7 @@ def random_cone(lattice=None, min_ambient_dim=0, max_ambient_dim=None,
62676266
62686267 A new, randomly generated cone.
62696268
6270- A `` ValueError` ` will be thrown under the following conditions:
6269+ A :class:` ValueError` will be thrown under the following conditions:
62716270
62726271 * Any of ``min_ambient_dim``, ``max_ambient_dim``, ``min_rays``, or
62736272 ``max_rays`` are negative.
@@ -6425,7 +6424,7 @@ def random_cone(lattice=None, min_ambient_dim=0, max_ambient_dim=None,
64256424 provided.
64266425
64276426 If the user requests too many rays in zero, one, or two dimensions,
6428- a `` ValueError` ` is thrown::
6427+ a :class:` ValueError` is thrown::
64296428
64306429 sage: random_cone(max_ambient_dim=0, min_rays=1)
64316430 Traceback (most recent call last):
@@ -6513,7 +6512,7 @@ def random_cone(lattice=None, min_ambient_dim=0, max_ambient_dim=None,
65136512 sage: random_cone(lattice=L, strictly_convex=True)
65146513 0-d cone in 0-d lattice L
65156514
6516- A `` ValueError` ` is thrown if a non-solid cone is requested in a
6515+ A :class:` ValueError` is thrown if a non-solid cone is requested in a
65176516 zero-dimensional lattice::
65186517
65196518 sage: L = ToricLattice(0)
@@ -6527,7 +6526,7 @@ def random_cone(lattice=None, min_ambient_dim=0, max_ambient_dim=None,
65276526 ...
65286527 ValueError: all cones are solid when max_ambient_dim is zero.
65296528
6530- A `` ValueError` ` is thrown if a solid cone is requested but the
6529+ A :class:` ValueError` is thrown if a solid cone is requested but the
65316530 maximum number of rays is too few::
65326531
65336532 sage: random_cone(min_ambient_dim=4, max_rays=3, solid=True)
@@ -6542,7 +6541,7 @@ def random_cone(lattice=None, min_ambient_dim=0, max_ambient_dim=None,
65426541 ValueError: max_rays must be at least 5 for a solid cone in this
65436542 lattice.
65446543
6545- A `` ValueError` ` is thrown if a non-solid cone is requested but
6544+ A :class:` ValueError` is thrown if a non-solid cone is requested but
65466545 ``min_rays`` guarantees a solid cone::
65476546
65486547 sage: random_cone(max_ambient_dim=4, min_rays=10, solid=False)
0 commit comments