Exact Linear Algebra for SAGE - William Stein - University of ...
Exact Linear Algebra for SAGE - William Stein - University of ...
Exact Linear Algebra for SAGE - William Stein - University of ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Echelon Forms <strong>of</strong> Matrices<br />
Computing Echelon Forms<br />
Decomposing Spaces Under the Action <strong>of</strong> Matrix<br />
Wiedemann’s Minimal Algorithm<br />
This gives a flavor <strong>for</strong> advanced charpoly algorithms.<br />
Choose a random vector v and compute the iterates<br />
v0 = v, v1 = A(v), v2 = A 2 (v), . . . , v2n−1 = A 2n−1 (v). (3.1)<br />
If f = x m + cm−1x m−1 + · · · + c1x + c0 is the minimal polynomial <strong>of</strong> A, then<br />
A m + cm−1A m−1 + · · · + c0In = 0,<br />
where In is the n × n identity matrix. For any k ≥ 0, by multiplying both sides<br />
on the right by the vector A k v, we see that<br />
hence<br />
A m+k v + cm−1A m−1+k v + · · · + c0A k v = 0,<br />
vm+k + cm−1vm−1+k + · · · + c0vk = 0, all k ≥ 0.<br />
Any single component <strong>of</strong> the vectors v0, . . . , v2n−1 satisfies the linear<br />
recurrence with coefficients 1, cm−1, . . . , c0. The Berlekamp-Massey<br />
algorithm finds the minimal polynomial <strong>of</strong> a linear recurrence sequence {ar },<br />
which is a factor <strong>of</strong> the minimal polynomial <strong>of</strong> A.<br />
This algorithm is especially good <strong>for</strong> sparse matrices.<br />
<strong>William</strong> <strong>Stein</strong> <strong>Exact</strong> <strong>Linear</strong> <strong>Algebra</strong> <strong>for</strong> <strong>SAGE</strong>