Description Usage Arguments Details Value Author(s) References See Also Examples
IsDiagonal()
returns TRUE
if A
is a diagonal matrix,
and FALSE
otherwise.
1 2 3 4 5 6 7 | IsDiagonal(A, ...)
## Default S3 method:
IsDiagonal(A, tol = 1e-08, ...)
## S3 method for class 'yac_symbol'
IsDiagonal(A, ...)
|
A |
Input. |
... |
... |
tol |
Numeric. Tolerance. |
An m \times m matrix \mathbf{A} is diagonal if all off-diagonal elements are zero.
A
is considered to be a diagonal matrix
if the absolute value of all off-diagonal elements
is less than or equal to a tolerance value.
Logical.
Ivan Jacob Agaloos Pesigan
Other predicate functions:
IsIdempotent()
,
IsInvertible()
,
IsMatrix()
,
IsNilpotent()
,
IsOrthogonal()
,
IsPositiveDefinite()
,
IsScalar()
,
IsSingular()
,
IsSquareMatrix()
,
IsSymmetric()
,
IsVector()
,
MatrixCheck()
1 2 3 4 5 | # TRUE
IsDiagonal(diag(2))
# FALSE
IsDiagonal(matrix(1:9, ncol = 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.