Description Usage Arguments Details Value Author(s) References See Also Examples
Support for sparse matrices in package Rcsdp
. The class
simple_triplet_sym_matrix
is defined to provide support
for symmetric sparse matrices. It's definition is copied from the package relations
by Kurt
Hornik. Coercion functions from objects of class matrix
and
classes in the Matrix
hierarchy are provided.
1 2 3 4 5 6 7 8 9 10 | simple_triplet_sym_matrix(i,j,v,n=max(c(i,j)),check.ind=FALSE)
## S3 method for class 'matrix'
as.simple_triplet_sym_matrix(x,check.sym=FALSE)
## S3 method for class 'simple_triplet_sym_matrix'
as.matrix(x,...)
## S3 method for class 'simple_triplet_sym_matrix'
as.vector(x,...)
.simple_triplet_zero_sym_matrix(n,mode="double")
.simple_triplet_diag_sym_matrix(x,n)
.simple_triplet_random_sym_matrix(n,occ=.1,nnz=occ*n*(n+1)/2,rfun=rnorm,seed=NULL,...)
|
i |
Row indices of non-zero entries. |
j |
Column indices of non-zero entries. |
v |
Non-zero entries. |
n |
Size of matrix. |
check.ind |
Checks that arguments |
check.sym |
Checks if matrix object is symmetric. Default |
x |
Object of class |
mode |
Type of zero matrix to create. Default |
occ |
Ratio of occupancy of random sparse matrix. Default |
nnz |
Number of non-zero entries in random sparse matrix. Default corresponds to |
rfun |
Function to generate random entries in sparse matrix. Default |
seed |
Random number generator seed. Set by function |
... |
Arguments passed on to casting functions. |
TO DO
TO DO
Hector Corrada Bravo
TO DO
csdp
1 | # TO DO
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.