Description Usage Arguments Details Examples
Computes the singular value decomposition.
1 | linalg_svd(x, s, u = NULL, vt = NULL)
|
x |
Input data. The input values are overwritten. |
s |
Singular values. |
u, vt |
The left/right singular vectors. Should both be |
You will need to initialize the return objects s
and/or u
and
vt
.
manually. See the example.
1 2 3 4 5 6 7 8 | suppressMessages(library(fmlr))
x = cpumat(3, 2)
x$fill_linspace(1, 6)
s = cpuvec()
linalg_svd(x, s)
s$info()
s$print()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.