solve_least_squares Interface

public interface solve_least_squares

Module Procedures

private pure function solve_least_squares_mtx(a, b) result(x)

Solves the system of equations assuming matrix is of full rank.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:,:) :: a

The M-by-N matrix .

real(kind=real64), intent(in), dimension(:,:) :: b

The M-by-NRHS matrix .

Return Value real(kind=real64), allocatable, dimension(:,:)

The N-by-NRHS matrix .

private pure function solve_least_squares_mtx_cmplx(a, b) result(x)

Solves the system of equations assuming matrix is of full rank.

Arguments

Type IntentOptional Attributes Name
complex(kind=real64), intent(in), dimension(:,:) :: a

The M-by-N matrix .

complex(kind=real64), intent(in), dimension(:,:) :: b

The M-by-NRHS matrix .

Return Value complex(kind=real64), allocatable, dimension(:,:)

The N-by-NRHS matrix .

private pure function solve_least_squares_vec(a, b) result(x)

Solves the system of equations assuming matrix is of full rank.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:,:) :: a

The M-by-N matrix .

real(kind=real64), intent(in), dimension(:) :: b

The M-element vector .

Return Value real(kind=real64), allocatable, dimension(:)

The N-element vector .

private pure function solve_least_squares_vec_cmplx(a, b) result(x)

Solves the system of equations assuming matrix is of full rank.

Arguments

Type IntentOptional Attributes Name
complex(kind=real64), intent(in), dimension(:,:) :: a

The M-by-N matrix .

complex(kind=real64), intent(in), dimension(:) :: b

The M-element vector .

Return Value complex(kind=real64), allocatable, dimension(:)

The N-element vector .