Release 2.7.0: executable handbooks and native user-site workflows
This commit is contained in:
1 parent
aa0c4d0f55
commit
d9aef957f7
562 files changed
+21064
-20387
No files matched your search
@@ -8,20 +8,25 @@ import:
|
||||
|
||||
# SVD from a runnable document
|
||||
|
||||
|
||||
A diagonal matrix has singular values on the diagonal. Prefer matrix values and methods; `factorize` / `draw` stay explicit for teaching SVGs.
|
||||
|
||||
# main
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | any | None; execute this page's documented steps in order and observe their output or stated effects |
|
||||
|
||||
`M` =
|
||||
$$
|
||||
\begin{bmatrix}4&0\\0&2\end{bmatrix}
|
||||
$$
|
||||
|
||||
**`M` = > la.from_formula formula=`M`**
|
||||
**`f` = > la.factorize matrix=`M` kind="svd"**
|
||||
**`S` = [S](access(f, "S"))**
|
||||
**`_` = > la.draw factor=`f` kind="svd" theme="light" path="svd-structure.svg"**
|
||||
**`hm` = > la.draw factor=`M` kind="hinton" path="svd-hinton.svg"**
|
||||
We first **M = [Compute M](la.from_formula(formula=`M`))** for the next step.
|
||||
We first **f = [Compute f](la.factorize(matrix=`M`, kind="svd"))** for the next step.
|
||||
We first **S = [S](access(`f`, "S"))** for the next step.
|
||||
We first **_ = [Compute _](la.draw(factor=`f`, kind="svd", theme="light", path="svd-structure.svg"))** for the next step.
|
||||
We first **hm = [Compute hm](la.draw(factor=`M`, kind="hinton", path="svd-hinton.svg"))** for the next step.
|
||||
|
||||
> print text=`S`
|
||||
> print text=svd-ok
|
||||
We now **[Display this step's result](> print text=`S`)**.
|
||||
We now **[Display this step's result](> print text="svd-ok")**.
|
||||
Reference in new issue
Block a user