as.matrix,Dyadic-method {DyadiCarma} | R Documentation |
Matrix representation of dyadic objects
Description
Extracting the matrix representation
of a Dyadic
-object.
Usage
## S4 method for signature 'Dyadic'
as.matrix(x)
Arguments
x |
|
Details
The dyadic structure contains information about the type of matrix and its width and height.
Value
The result is a width*(2^height-1) x width*(2^height-1)
matrix.
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
#--------------------------------------------------------#
#------- Matrix representation of dyadic objects --------#
#--------------------------------------------------------#
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") # symmetric
AS <- construct(N, k, type = "asymm", distr="norm") # asymmetric
# Convert the dyadic matrices to matrix format
mat_V <- as.matrix(V)
mat_H <- as.matrix(H)
mat_S <- as.matrix(S)
mat_AS <- as.matrix(AS)
[Package DyadiCarma version 1.0.1 Index]