# NOT RUN {
## Partial orthogonalization
# Generate a full matrix (default behaviour)
port()
# Generate a matrix with a percentage of zeros
port(d = 0.5)
# Generate a random undirected graph structure
ug <- rgraph(p = 3, d = 0.5)
igraph::print.igraph(ug)
# Generate a matrix complying with the predefined zero pattern
port(ug = ug)
## Diagonal dominance
# Generate a full matrix (default behaviour)
diagdom()
# Generate a matrix with a percentage of zeros
diagdom(d = 0.5)
# Generate a matrix complying with the predefined zero pattern
igraph::print.igraph(ug)
diagdom(ug = ug)
# }
Run the code above in your browser using DataLab