constrained_lstsq_space Interface

public interface constrained_lstsq_space

Computes the size of the workspace required by the constrained least-squares solver. (Specification)

Description

This interface provides the size of the workspace array required by the constrained least-squares solver. It can be used to pre-allocate the working array in case several repeated solutions to a same system are sought. If pre-allocated, working arrays are provided, no internal allocation will take place.


Subroutines

private module subroutine stdlib_linalg_c_constrained_lstsq_space(A, C, lwork, err)

Arguments

Type IntentOptional Attributes Name
complex(kind=sp), intent(in) :: A(:,:)

Least-squares cost.

complex(kind=sp), intent(in) :: C(:,:)

Equality constraints.

integer(kind=ilp), intent(out) :: lwork
type(linalg_state_type), intent(out), optional :: err

private module subroutine stdlib_linalg_d_constrained_lstsq_space(A, C, lwork, err)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: A(:,:)

Least-squares cost.

real(kind=dp), intent(in) :: C(:,:)

Equality constraints.

integer(kind=ilp), intent(out) :: lwork
type(linalg_state_type), intent(out), optional :: err

private module subroutine stdlib_linalg_s_constrained_lstsq_space(A, C, lwork, err)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(in) :: A(:,:)

Least-squares cost.

real(kind=sp), intent(in) :: C(:,:)

Equality constraints.

integer(kind=ilp), intent(out) :: lwork
type(linalg_state_type), intent(out), optional :: err

private module subroutine stdlib_linalg_z_constrained_lstsq_space(A, C, lwork, err)

Arguments

Type IntentOptional Attributes Name
complex(kind=dp), intent(in) :: A(:,:)

Least-squares cost.

complex(kind=dp), intent(in) :: C(:,:)

Equality constraints.

integer(kind=ilp), intent(out) :: lwork
type(linalg_state_type), intent(out), optional :: err