Description Usage Arguments Details Value Author(s) See Also Examples
IsSymmetric()
returns TRUE
if A
is a symmetric matrix,
and FALSE
otherwise.
1 2 3 4 5 6 7 | IsSymmetric(A)
## Default S3 method:
IsSymmetric(A)
## S3 method for class 'yac_symbol'
IsSymmetric(A)
|
A |
Input. |
An m \times m matrix \mathbf{A} is symmetric if
\mathbf{A} = \mathbf{A}^{\mathsf{T}} .
A
is considered to be a symmetric matrix
if all(A == t(A))
returns TRUE
.
Logical.
Ivan Jacob Agaloos Pesigan
Other predicate functions:
IsDiagonal()
,
IsIdempotent()
,
IsInvertible()
,
IsMatrix()
,
IsNilpotent()
,
IsOrthogonal()
,
IsPositiveDefinite()
,
IsScalar()
,
IsSingular()
,
IsSquareMatrix()
,
IsVector()
,
MatrixCheck()
1 2 3 4 5 6 7 8 9 | # TRUE
A <- matrix(
data = c(1, 2, 3, 2, 4, 5, 3, 5, 6),
ncol = 3
)
IsSymmetric(A)
# FALSE
IsSymmetric(matrix(1:10, ncol = 2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.