powered by
smat takes a vector and creates a symmetrix matrix
smat
smat(blk, p, At, isspM = NULL)
Lx2 matrix detailing the type of matrices ("s", "q", "l", "u"), and the size of each matrix
Row of blk to be used during matrix creation
vector to be turned into a symmetric matrix
if At is sparse, isspx = 1, 0 otherwise. Default is to assume M is dense.
A Symmetric Matrix
# NOT RUN { y <- c(1,0.00000279, 3.245, 2.140, 2.44, 2.321, 4.566) blk <- matrix(list(),1,2) blk[[1,1]] <- "s" blk[[1,2]] <- 3 P <- smat(blk,1, y) # }
Run the code above in your browser using DataLab