convert {cvxbiclustr} | R Documentation |
convert
Takes a weights triple (COO matrix) and converts it to a sparse edge-incidence matrix (CSC matrix) and weights vector.
convert(W)
W |
COO matrix of weights: (i,j,w[ij]) |
W <- matrix(0,3,3) W[1,] <- c(1,2,1) W[2,] <- c(1,3,2) W[3,] <- c(2,3,3) sol <- convert(W)