mat2coo_forloop | R Documentation |
Converts a matrix to COO format. This version of the
function uses for-loops, which is presumably less
efficient than mat2coo
.
mat2coo_forloop(tmpmat)
tmpmat |
A square matrix |
tmpmat_in_REXPOKIT_coo_fmt A cbind
of ia
,
ja
, and a
Nicholas J. Matzke nickmatzke.ncse@gmail.com
mat2coo
# Example use:
# Make a Q matrix
tmpmat = matrix(c(-1.218, 0.504, 0.336, 0.378, 0.126, -0.882, 0.252, 0.504, 0.168,
0.504, -1.05, 0.378, 0.126, 0.672, 0.252, -1.05), nrow=4, byrow=TRUE)
# Convert to REXPOKIT coo format
tmpmat_in_REXPOKIT_coo_fmt = mat2coo_forloop(tmpmat)
tmpmat_in_REXPOKIT_coo_fmt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.