SpsMatUtil

Usage

use SparseMatrix.SpsMatUtil;

or

import SparseMatrix.SpsMatUtil;
enum layout { CSR, CSC }
enum constant CSR
enum constant CSC
config const seed = 0
var rands = if seed == 0 then new randomStream(real) else new randomStream(real, seed)
record sparseMatDat
proc ref add(idx: 2*(int), val: int)
proc randSparseDomain(parentDom, density, param matLayout, param distributed)  where distributed == false
proc randSparseDomain(parentDom, density, param matLayout, param distributed)  where distributed == true
proc emptySparseDomLike(Mat)
proc writeSparseMatrix(msg, Arr)
proc makeSparseMat(parentDom, spsData)
proc makeSparseMat(parentDom, nnzs, vals)
class merge : ReduceScanOp
type eltType = sparseMatDat
var value : eltType
proc identity
proc accumulate(x)
proc accumulateOntoState(ref state, x)
proc combine(x)
proc generate()
proc clone()