Matrix windows

class sage.matrix.matrix_window.MatrixWindow[source]

Bases: object

add(A)[source]
add_prod(A, B)[source]
echelon_in_place()[source]

Calculate the echelon form of this matrix, returning the list of pivot columns

element_is_zero(i, j)[source]
get_unsafe(i, j)[source]
matrix()[source]

Return the underlying matrix that this window is a view of.

matrix_window(row, col, n_rows, n_cols)[source]

Return a matrix window relative to this window of the underlying matrix.

ncols()[source]
new_empty_window(nrows, ncols)[source]
new_matrix_window(matrix, row, col, n_rows, n_cols)[source]

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()[source]
set(src)[source]
set_to(A)[source]

Change self, making it equal A.

set_to_diff(A, B)[source]
set_to_prod(A, B)[source]
set_to_sum(A, B)[source]
set_to_zero()[source]
set_unsafe(i, j, x)[source]
subtract(A)[source]
subtract_prod(A, B)[source]
swap_rows(a, b)[source]
to_matrix()[source]

Return an actual matrix object representing this view.