Learn R Programming

cvxbiclustr (version 0.0.1)

convert: Convert weights, as COO matrix, to CSC matrix and weights vector

Description

convert Takes a weights triple (COO matrix) and converts it to a sparse edge-incidence matrix (CSC matrix) and weights vector.

Usage

convert(W)

Arguments

W
COO matrix of weights: (i,j,w[ij])

Examples

Run this code
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)

Run the code above in your browser using DataLab