• ## sage/crypto/classical.py

```# HG changeset patch
# User Rob Beezer <beezer@ups.edu>
# Date 1292885494 28800
# Node ID bea160d9915819066f5e032ce5b353c31265237a
# Parent  1cb202e8a606dc2ab85489ff9df9cb4ea78c1aa1

diff -r 1cb202e8a606 -r bea160d99158 sage/crypto/classical.py```
 a m = self.block_length() MatZZ = MatrixSpace(ZZ, m) AZ = MatZZ([ [ A[i, j].lift() for j in range(m) ] for i in range(m) ]) AZ_adj = AZ.adjoint() AZ_adj = AZ.adjugate() u, r, s = xgcd(A.det().lift(), S.ngens()) if u != 1: raise ValueError("Argument:\n\n%s\n\nis not invertible." % (A))
• ## sage/matrix/matrix2.pyx

`diff -r 1cb202e8a606 -r bea160d99158 sage/matrix/matrix2.pyx`
• ## sage/matrix/matrix_integer_dense.pyx

`diff -r 1cb202e8a606 -r bea160d99158 sage/matrix/matrix_integer_dense.pyx`
 a else: return A def _adjoint(self): def _adjugate(self): """ Return the adjoint of this matrix. Assumes self is a square matrix (checked in adjoint). Return the adjugate of this matrix. Assumes self is a square matrix (checked in adjugate). EXAMPLES:: sage: m = matrix(ZZ,3,[1..9]) sage: m.adjoint() sage: m.adjugate() [ -3   6  -3] [  6 -12   6] [ -3   6  -3] """ return self.parent()(self._pari_().matadjoint().python()) def _adjoint(self): r""" The _adjoint() method has been deprecated, and is not meant to be called by a user, try adjugate() instead.' EXAMPLE:: sage: A = matrix(SR, 2, range(4)) sage: A._adjoint() doctest:...: DeprecationWarning: (Since Sage Version 4.6.2) The _adjoint() method has been deprecated """ from sage.misc.misc import deprecation deprecation('The _adjoint() method has been deprecated', 'Sage Version 4.6.2') def _ntl_(self): r""" ntl.mat_ZZ representation of self.
• ## sage/matrix/matrix_rational_dense.pyx

`diff -r 1cb202e8a606 -r bea160d99158 sage/matrix/matrix_rational_dense.pyx`
 a mpq_mul(self._matrix[i][j], self._matrix[i][j], a) sig_off() def _adjoint(self): def _adjugate(self): """ Return the adjoint of this matrix. Return the adjugate of this matrix. Assumes self is a square matrix (checked in adjoint). Assumes self is a square matrix (checked in adjugate). EXAMPLES:: [1/9 2/9 1/3] [4/9 5/9 2/3] [7/9 8/9   1] sage: m.adjoint() sage: m.adjugate() [-1/27  2/27 -1/27] [ 2/27 -4/27  2/27] [-1/27  2/27 -1/27] """ return self.parent()(self._pari_().matadjoint().python()) def _adjoint(self): r""" The _adjoint() method has been deprecated, and is not meant to be called by a user, try adjugate() instead.' EXAMPLE:: sage: A = matrix(SR, 2, range(4)) sage: A._adjoint() doctest:...: DeprecationWarning: (Since Sage Version 4.6.2) The _adjoint() method has been deprecated """ from sage.misc.misc import deprecation deprecation('The _adjoint() method has been deprecated', 'Sage Version 4.6.2') def _magma_init_(self, magma): """ EXAMPLES::
`diff -r 1cb202e8a606 -r bea160d99158 sage/quadratic_forms/quadratic_form.py`
`diff -r 1cb202e8a606 -r bea160d99158 sage/quadratic_forms/quadratic_form__ternary_Tornaria.py`