solve_least_squares Interface

public interface solve_least_squares

Module Procedures

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

Solves the least squares problem by minimizing using a complete orthogonal factorization of .

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 resulting N-by-NRHS matrix .

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

Solves the least squares problem by minimizing using a complete orthogonal factorization of .

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 array .

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

The resulting N-element array .