Matrix windows#
- class sage.matrix.matrix_window.MatrixWindow#
Bases:
object
- add(A)#
- add_prod(A, B)#
- echelon_in_place()#
Calculate the echelon form of this matrix, returning the list of pivot columns
- element_is_zero(i, j)#
- get_unsafe(i, j)#
- matrix()#
Returns the underlying matrix that this window is a view of.
- matrix_window(row, col, n_rows, n_cols)#
Returns a matrix window relative to this window of the underlying matrix.
- ncols()#
- new_empty_window(nrows, ncols)#
- new_matrix_window(matrix, row, col, n_rows, n_cols)#
This method is here only to provide a fast cdef way of constructing new matrix windows. The only implicit assumption is that self._matrix and matrix are over the same base ring (so share the zero).
- nrows()#
- set(src)#
- set_to(A)#
Change self, making it equal A.
- set_to_diff(A, B)#
- set_to_prod(A, B)#
- set_to_sum(A, B)#
- set_to_zero()#
- set_unsafe(i, j, x)#
- subtract(A)#
- subtract_prod(A, B)#
- swap_rows(a, b)#
- to_matrix()#
Returns an actual matrix object representing this view.