GetMatrixSlice Subroutine

public subroutine GetMatrixSlice(this, submatrix, start_row, end_row, start_column, end_column)

Copy an arbitrary slice from a matrix into a new smaller matrix. NTPoly only works with square matrices, so if the number of rows and columns is different the matrix is resized to the maximum size.

Arguments

Type IntentOptional AttributesName
type(Matrix_ps), intent(in) :: this

The distributed sparse matrix.

type(Matrix_ps), intent(inout) :: submatrix

The slice to fill.

integer :: start_row

The starting row to include in this matrix.

integer :: end_row

The ending row to include in this matrix.

integer :: start_column

The starting column to include in this matrix.

integer :: end_column

The last column to include in this matrix.


Contents

None