edu.emory.mathcs.csparsej.tdouble
Class Dcs_scatter
- java.lang.Object
-
- edu.emory.mathcs.csparsej.tdouble.Dcs_scatter
-
public class Dcs_scatter extends java.lang.ObjectScatter a sparse vector.
-
-
Constructor Summary
Constructors Constructor and Description Dcs_scatter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intcs_scatter(Dcs_common.Dcs A, int j, double beta, int[] w, double[] x, int mark, Dcs_common.Dcs C, int nz)Scatters and sums a sparse vector A(:,j) into a dense vector, x = x + beta * A(:,j).
-
-
-
Method Detail
-
cs_scatter
public static int cs_scatter(Dcs_common.Dcs A, int j, double beta, int[] w, double[] x, int mark, Dcs_common.Dcs C, int nz)
Scatters and sums a sparse vector A(:,j) into a dense vector, x = x + beta * A(:,j).- Parameters:
A- the sparse vector is A(:,j)j- the column of A to usebeta- scalar multiplied by A(:,j)w- size m, node i is marked if w[i] = markx- size m, ignored if nullmark- mark value of wC- pattern of x accumulated in C.inz- pattern of x placed in C starting at C.i[nz]- Returns:
- new value of nz, -1 on error
-
-
DMelt 3.0 © DataMelt by jWork.ORG