convert {cvxbiclustr}R Documentation

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

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)

[Package cvxbiclustr version 0.0.1 Index]