Dense Matrices over a general ring¶
-
class
sage.matrix.matrix_generic_dense.Matrix_generic_dense¶ Bases:
sage.matrix.matrix_dense.Matrix_denseThe
Matrix_generic_denseclass derives fromMatrix, and defines functionality for dense matrices over any base ring. Matrices are represented by a list of elements in the base ring, and element access operations are implemented in this class.EXAMPLES:
sage: A = random_matrix(Integers(25)['x'],2); A [ x^2 + 12*x + 2 4*x^2 + 13*x + 8] [ 22*x^2 + 2*x + 17 19*x^2 + 22*x + 14] sage: type(A) <type 'sage.matrix.matrix_generic_dense.Matrix_generic_dense'> sage: TestSuite(A).run()
Test comparisons:
sage: A = random_matrix(Integers(25)['x'],2) sage: A == A True sage: A < A + 1 True sage: A+1 < A False