On entry: the dimension of the array
WORK as declared in the (sub)program from which F08KCF (DGELSD) is called.
The exact minimum amount of workspace needed depends on
M,
N and
NRHS. As long as
LWORK is at least
where
is equal to the maximum size of the subproblems at the bottom of the computation tree (usually about
),
and
, the code will execute correctly.
If
, a workspace query is assumed; the routine only calculates the optimal size of the
WORK array and the minimum size of the
IWORK array, and returns these values as the first entries of the
WORK and
IWORK arrays, and no error message related to
LWORK is issued.
Suggested value:
for optimal performance,
LWORK should generally be larger than the minimum required as set out above. Consider increasing
LWORK by at least
, where
is the optimal
block size.