Description Usage Arguments Value Examples
Auxiliary function to form matrices equal to x everywhere except from the upper/lower k diagonal, which values are vec
1 | myDiag(x, vec, k)
|
x |
initial matriw |
vec |
vector with specified new values for the upper/lower k diagonal elements of x |
k |
index of the diagonal |
x
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.