ResizeMatrix Subroutine

public subroutine ResizeMatrix(this, new_size)

Change the size of a matrix. If the new size is smaller, then values outside that range are deleted. IF the new size is bigger, zero padding is applied. Warning: this requires a full data redistribution.

Arguments

Type IntentOptional Attributes Name
type(Matrix_ps), intent(inout) :: this

The matrix to resize.

integer, intent(in) :: new_size

The new size of the matrix.


Contents