/*
* MatrixOps.java
*
* Created on February 23, 2007, 3:39 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package medusa.spectral;
import cern.colt.matrix.DoubleMatrix2D;
import cern.colt.matrix.impl.SparseDoubleMatrix2D;
/**
*
* @author shooper
*/
public class SparseMatrixOps {
public static double[] rowSum(DoubleMatrix2D m){
int rows = m.rows();
int cols = m.columns();
double[] result = new double[rows];
for (int i=0; i
Ads help maintain this website.