Description Usage Arguments Details Value
Creates a value for (row, col) such that value = row * ncol + col.
1 2 3 | qgen.element.default(row, col, nrow, ncol)
qgen.element.diagonal(row, col, nrow, ncol, value = 1, orelse = 0)
|
value |
the value to be placed on the diagonal. |
orelse |
the value to be placed everwhere else. |
The default implementation returns the row * number of columns plus the column number.
The diagonal implementation returns a matrix with the given value on the diagonal.
a value representing the row * ncol + col.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.