public double[] makePseudoV(double[] weightings) {
return project(U, weightings);
}
/*default*/ static final SMat makeSMat(SparseMatrix matrix) {
SMat S = new SMat(matrix.rowCount(), matrix.columnCount(), matrix.used());
for (int j = 0, n = 0; j < matrix.columnCount(); j++) {
S.pointr[j] = n;
for (int i = 0; i < matrix.rowCount(); i++)
if (matrix.get(i, j) != 0) {
S.rowind[n] = i;