SimilarityTransform Subroutine

public subroutine SimilarityTransform(A, P, PInv, ResMat, pool_in, threshold_in)

Transform a matrix B = P * A * P^-1

Arguments

Type IntentOptional Attributes Name
type(Matrix_ps), intent(in) :: A

The matrix to transform

type(Matrix_ps), intent(in) :: P

The left matrix.

type(Matrix_ps), intent(in) :: PInv

The right matrix.

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

The computed matrix P * A * P^-1

type(MatrixMemoryPool_p), intent(inout), optional :: pool_in

A matrix memory pool.

real(kind=NTREAL), intent(in), optional :: threshold_in

The threshold for removing small elements.


Contents