t,Dyadic-method {DyadiCarma} | R Documentation |
Transpose of a Dyadic
object
Description
The Dyadic
object transpose of a Dyadic
object: t(Dyadic)
.
Usage
## S4 method for signature 'Dyadic'
t(x)
Arguments
x |
|
Details
The operations are performed in a way that is consistent with the dyadic structure of the matrices.
Value
The Dyadic
-object that is the result of the operation with properly defined fields.
References
Kos, M., Podgórski, K., & Wu, H. (2025). Dyadic Factorization and Efficient Inversion of Sparse Positive Definite Matrices. arXiv. https://arxiv.org/abs/2505.08144
See Also
Dyadic-class
for the definition of the Dyadic
-class;
dyadFac
for the dyadic decomposition of dyadic matrices;
Examples
#--------------------------------------------#
#-------Transpose of a dyadic object --------#
#--------------------------------------------#
N <- 4
k <- 3
# Construct four types of dyadic matrices with made of 1's
V <- construct(N, k, type = "vert") # vertical
H <- construct(N, k, type = "horiz") # horizontal
S <- construct(N, k, type = "symm", distr = "unif") # symmetric
t(V)@type # The transpose of a vertical dyadic matrix is horizontal
t(H)@type # The transpose of a horizontal dyadic matrix is vertical
all(as.matrix(t(V)) == t(as.matrix(V))) # Should be TRUE
all(as.matrix(S) == as.matrix(t(S))) # Should be TRUE
[Package DyadiCarma version 1.0.1 Index]