@@ -5039,19 +5039,19 @@ cdef class Matrix(Matrix1):
5039
5039
5040
5040
def _test_right_kernel(self, **options):
5041
5041
"""
5042
- Checks that :meth:`right_kernel` works.
5042
+ Check that :meth:`right_kernel` works.
5043
5043
5044
5044
EXAMPLES::
5045
5045
5046
- sage: a= matrix([[1,2],[3,4]])
5046
+ sage: a = matrix([[1,2], [3,4]])
5047
5047
sage: a._test_right_kernel()
5048
5048
5049
5049
"""
5050
5050
tester = self._tester(**options)
5051
5051
# At least we'll check that the basis of the kernel kills the matrix
5052
- V= self.right_kernel()
5053
- tester.assert_(self.ncols()- self.rank()== V.dimension())
5054
- tester.assert_((self* V.basis_matrix().transpose()).is_zero())
5052
+ V = self.right_kernel()
5053
+ tester.assert_(self.ncols() - self.rank() == V.dimension())
5054
+ tester.assert_((self * V.basis_matrix().transpose()).is_zero())
5055
5055
5056
5056
def left_kernel(self, *args, **kwds):
5057
5057
r"""
@@ -5211,19 +5211,19 @@ cdef class Matrix(Matrix1):
5211
5211
5212
5212
def _test_left_kernel(self, **options):
5213
5213
"""
5214
- Checks that :meth:`left_kernel` works.
5214
+ Check that :meth:`left_kernel` works.
5215
5215
5216
5216
EXAMPLES::
5217
5217
5218
- sage: a= matrix([[1,2],[3,4]])
5218
+ sage: a = matrix([[1,2], [3,4]])
5219
5219
sage: a._test_left_kernel()
5220
5220
5221
5221
"""
5222
5222
tester = self._tester(**options)
5223
5223
# At least we'll check that the basis of the kernel kills the matrix
5224
- V= self.left_kernel()
5225
- tester.assert_(self.nrows()- self.rank()== V.dimension())
5226
- tester.assert_((V.basis_matrix()* self).is_zero())
5224
+ V = self.left_kernel()
5225
+ tester.assert_(self.nrows() - self.rank() == V.dimension())
5226
+ tester.assert_((V.basis_matrix() * self).is_zero())
5227
5227
5228
5228
def kernel_on(self, V, poly=None, check=True):
5229
5229
"""
0 commit comments