is.tridiagonal {expperm} | R Documentation |
A function for checking whether a matrix is tridiagonal. The check is used before attempting to apply the BG method for computing the permanent, since the method is only applicable to tridiagonal matrices.
is.tridiagonal(A)
A |
A matrix. |
A logical variable. TRUE
if the A
is tridiagonal, FALSE
otherwise.
data(A) is.tridiagonal(A) data(triA) is.tridiagonal(triA)