View source: R/GridProcessing.R
within_diag | R Documentation |
Returns the sum of all cells on a grid's main diagonal (trace) and on its two off-diagonals.
within_diag(mat, col = 5)
mat |
a square matrix. |
col |
the number of columns of the matrix. |
The sum of the matrix's diagonal and two off-diagonals within one cell from the diagonal.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.