pagelsqminnorm
Description
computes the minimum-norm solution of the least-squares system AX = B for
each page of the N-D arrays X
= pagelsqminnorm(A
,B
)A
and B
. Each page of
the output array X
is given by X(:,:,i) =
lsqminnorm(A(:,:,i),B(:,:,i))
.
If A
and B
have more than three dimensions,
then pagelsqminnorm
implicitly expands the additional dimensions to
solve the least-squares systems of all page combinations, as in X(:,:,i,j,k) =
lsqminnorm(A(:,:,i,j,k),B(:,:,i,j,k))
.
Examples
Input Arguments
More About
Tips
pagelsqminnorm(A,B,tol)
is typically more efficient thanpagemtimes(pagepinv(A,tol),B)
for computing minimum-norm least-squares solutions to linear systems.pagelsqminnorm
uses the complete orthogonal decomposition (COD) to find a low-rank approximation of each page ofA
, whilepagepinv
uses the singular value decomposition (SVD). Therefore, the results ofpagepinv
andpagelsqminnorm
do not match exactly.Results obtained using
pagelsqminnorm
are numerically equivalent to usinglsqminnorm
to compute the minimum-norm solution of each of the same least-squares systems in afor
-loop. However, the two results might differ slightly due to floating-point round-off error.
Extended Capabilities
Version History
Introduced in R2024a