| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>SVD</title> |
| 3 |
<style> |
| 4 |
td { padding-left: 5pt; padding-right: 5pt; } |
| 5 |
th { padding-left: 5pt; padding-right: 5pt; } |
| 6 |
code { white-space: pre-wrap; } |
| 7 |
dd { white-space: pre-wrap; } |
| 8 |
</style> |
| 9 |
</head><body bgcolor="#FFFFFF"> |
| 10 |
|
| 11 |
<table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 |
SVD |
| 13 |
</b></font></table></table> |
| 14 |
<p>An object of type <b>SVD</b> represents the <a href="singular_value_decomposition.html">singular value decomposition</a> of a matrix.</p> |
| 15 |
<h2>SVD internals</h2> |
| 16 |
<p>Given <b>A</b>, an <i>m</i> × <i>n</i> matrix with <i>m</i> >= <i>n</i>, the decomposition will be <b>A</b> = <b>U</b> <b>D</b> <b>V</b>′. </p> |
| 17 |
<p>In the SVD object we store the <i>m</i> × <i>n</i> matrix <b>U</b>, the <i>n</i> × <i>n</i> matrix <b>V</b> and the <i>n</i>-dimensional vector with the singular values. </p> |
| 18 |
<p>If it happens that for the <b>A</b> matrix <i>m</i> < <i>n</i>, i.e. the number of rows is less than the number of columns, then we store the SVD of the transpose of <b>A</b> and flag this internally. In this way we can make sure that for the matrix <b>U</b> the number of columns never exceeds the number of rows and at the same time that the dimension of the matrix <b>V</b> never exceeds the dimension of the matrix <b>U</b>. </p> |
| 19 |
<p>For example the SVD of a 100 × 20 matrix will result in a 100 × 20 matrix <b>U</b>, a 20 × 20 matrix <b>V</b> and 20 singular values, the SVD of a 20 × 100 matrix will also result in a 100 × 20 matrix <b>U</b>, a 20 × 20 matrix <b>V</b> and 20 singular values, however it will be internally flagged as being transposed.</p> |
| 20 |
<hr> |
| 21 |
<address> |
| 22 |
<p>© djmw 20220111</p> |
| 23 |
</address> |
| 24 |
</body> |
| 25 |
</html> |