What makes the matrix sign function so interesting and useful is that it can be computed directly without first computing eigenvalues or eigenvectore of
. Roberts noted that the iteration

converges quadratically to
. This iteration is Newton’s method applied to the equation
, with starting matrix
. It is one of the rare circumstances in which explicitly inverting matrices is justified!
Various other iterations are available for computing
. A matrix multiplication-based iteration is the Newton–Schulz iteration

This iteration is quadratically convergent if
for some subordinate matrix norm. The Newton–Schulz iteration is the
member of a Padé family of rational iterations

where
is the
Padé approximant to
(
and
are polynomials of degrees at most
and
, respectively). The iteration is globally convergent to
for
and
, and for
it converges when
, with order of convergence
in all cases.
Although the rate of convergence of these iterations is at least quadratic, and hence asymptotically fast, it can be slow initially. Indeed for
, if
then the Newton iteration computes
, and so the early iterations make slow progress towards
. Fortunately, it is possible to speed up convergence with the use of scale parameters. The Newton iteration can be replaced by

with, for example,

This parameter
can be computed at no extra cost.
As an example, we took A = gallery('lotkin',4), which has eigenvalues
,
,
, and
to four significant figures. After six iterations of the unscaled Newton iteration
had an eigenvalue
, showing that
is far from
, which has eigenvalues
. Yet when scaled by
(using the
-norm), after six iterations all the eigenvalues of
were within distance
of
, and the iteration had converged to within this tolerance.
The Matrix Computation Toolbox contains a MATLAB function signm that computes the matrix sign function. It computes a Schur decomposition then obtains the sign of the triangular Schur factor by a finite recurrence. This function is too expensive for use in applications, but is reliable and is useful for experimentation.