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