@@ -242,7 +242,7 @@ cdef class Matrix(Matrix1):
242242 some solvers will return solutions over a larger ring than the
243243 base ring of the inputs (a typical case are rational solutions
244244 for integer linear systems). When set to ``False``, a solution
245- over the base ring is returned, with a :class :`ValueError`
245+ over the base ring is returned, with a :exc :`ValueError`
246246 being raised if none exists.
247247
248248 - ``check`` -- boolean (default: ``True``); verify the answer
@@ -476,7 +476,7 @@ cdef class Matrix(Matrix1):
476476 some solvers will return solutions over a larger ring than the
477477 base ring of the inputs (a typical case are rational solutions
478478 for integer linear systems). When set to ``False``, a solution
479- over the base ring is returned, with a :class :`ValueError`
479+ over the base ring is returned, with a :exc :`ValueError`
480480 being raised if none exists.
481481
482482 - ``check`` -- boolean (default: ``True``); verify the answer
@@ -554,7 +554,7 @@ cdef class Matrix(Matrix1):
554554 ...
555555 ValueError: matrix equation has no solutions
556556
557- A :class :`ValueError` is raised if the input is invalid::
557+ A :exc :`ValueError` is raised if the input is invalid::
558558
559559 sage: A = matrix(QQ, 4,2, [0, -1, 1, 0, -2, 2, 1, 0])
560560 sage: B = matrix(QQ, 2,2, [1, 0, 1, -1])
@@ -1246,7 +1246,7 @@ cdef class Matrix(Matrix1):
12461246 of elements of the base rings of ``self`` and ``right``
12471247 is defined, once Sage's coercion model is applied. If
12481248 the matrices have different sizes, or if multiplication
1249- of individual entries cannot be achieved, a `` TypeError` `
1249+ of individual entries cannot be achieved, a :exc:` TypeError`
12501250 will result.
12511251
12521252 OUTPUT:
@@ -6281,7 +6281,7 @@ cdef class Matrix(Matrix1):
62816281 the irreducible factors of the characteristic polynomial,
62826282 even for linear factors.
62836283
6284- - ``algebraic_multiplicity`` -- boolean (default: ``False``);;
6284+ - ``algebraic_multiplicity`` -- boolean (default: ``False``);
62856285 whether to include the algebraic multiplicity of each eigenvalue
62866286 in the output. See the discussion below.
62876287
@@ -7712,7 +7712,7 @@ cdef class Matrix(Matrix1):
77127712 be a ring (not a field).
77137713
77147714 Right now this *only* works over ZZ and some principal ideal domains;
7715- otherwise a `` NotImplementedError` ` is raised. In the special case of
7715+ otherwise a :exc:` NotImplementedError` is raised. In the special case of
77167716 sparse matrices over ZZ it makes them dense, gets the echelon form of
77177717 the dense matrix, then sets ``self`` equal to the result.
77187718
@@ -12252,7 +12252,7 @@ cdef class Matrix(Matrix1):
1225212252 provide a transformation. But Jordan form will require that
1225312253 the eigenvalues of the matrix can be represented within Sage,
1225412254 requiring the existence of the appropriate extension field.
12255- When this is not possible, a `` RuntimeError` ` is raised, as
12255+ When this is not possible, a :exc:` RuntimeError` is raised, as
1225612256 demonstrated in an example below.
1225712257
1225812258 EXAMPLES:
@@ -12354,7 +12354,7 @@ cdef class Matrix(Matrix1):
1235412354 eigenvalues of the matrix, which may not lie in the field
1235512355 used for entries of the matrix. In this unfortunate case,
1235612356 the computation of the transformation may fail with a
12357- `` RuntimeError` `, EVEN when the matrices are similar. This
12357+ :exc:` RuntimeError`, EVEN when the matrices are similar. This
1235812358 is not the case for matrices over the integers, rationals
1235912359 or algebraic numbers, since the computations are done in
1236012360 the algebraically closed field of algebraic numbers.
@@ -12535,7 +12535,7 @@ cdef class Matrix(Matrix1):
1253512535 Returns a pair (F, C) such that the rows of C form a symplectic
1253612536 basis for ``self`` and ``F = C \* self \* C.transpose()``.
1253712537
12538- Raises a :class :`ValueError` if not over a field, or ``self`` is not
12538+ Raises a :exc :`ValueError` if not over a field, or ``self`` is not
1253912539 anti-symmetric, or ``self`` is not alternating.
1254012540
1254112541 Anti-symmetric means that `M = -M^t`. Alternating means
@@ -12972,7 +12972,7 @@ cdef class Matrix(Matrix1):
1297212972
1297312973 where `L^\ast` is the conjugate-transpose. If the matrix is
1297412974 not positive-definite (for example, if it is not Hermitian)
12975- then a `` ValueError` ` results.
12975+ then a :exc:` ValueError` results.
1297612976
1297712977 If possible, the output matrix will be over the fraction field
1297812978 of the base ring of the input matrix. If that fraction field
@@ -13940,7 +13940,7 @@ cdef class Matrix(Matrix1):
1394013940 the conjugate-transpose.
1394113941
1394213942 If any leading principal submatrix is singular, then the
13943- computation cannot be performed and a `` ValueError` ` results.
13943+ computation cannot be performed and a :exc:` ValueError` results.
1394413944
1394513945 Results are cached, and hence are immutable. Caching
1394613946 eliminates redundant computations across
@@ -14203,7 +14203,7 @@ cdef class Matrix(Matrix1):
1420314203
1420414204 If any leading principal submatrix (a square submatrix
1420514205 in the upper-left corner) is singular then this method will
14206- fail with a `` ValueError` `.
14206+ fail with a :exc:` ValueError`.
1420714207
1420814208 ALGORITHM:
1420914209
@@ -14666,7 +14666,7 @@ cdef class Matrix(Matrix1):
1466614666
1466714667 With ``classical=True``, the permutation matrix `P` is always
1466814668 an identity matrix and the diagonal blocks are always
14669- one-by-one. A `` ValueError` ` is raised if the matrix has no
14669+ one-by-one. A :exc:` ValueError` is raised if the matrix has no
1467014670 classical `LDL^{T}` factorization.
1467114671
1467214672 ALGORITHM:
@@ -18252,7 +18252,7 @@ cdef class Matrix(Matrix1):
1825218252 [ 0 -1]
1825318253 [ 1 0]
1825418254
18255- However, it might fail for others, either raising a `` ValueError` `::
18255+ However, it might fail for others, either raising a :exc:` ValueError`::
1825618256
1825718257 sage: Matrix(ZZ, 1, 1, [0]).LLL_gram() # needs sage.libs.pari
1825818258 Traceback (most recent call last):
0 commit comments