List of usage examples for org.apache.commons.math3.linear DefaultRealMatrixChangingVisitor DefaultRealMatrixChangingVisitor
DefaultRealMatrixChangingVisitor
From source file:org.lenskit.mf.BPR.BPRMFModelProvider.java
/** * Initialize the feature vectors./* w ww . ja v a2s . com*/ **/ private void initFeatures(RealMatrix features) { features.walkInOptimizedOrder(new DefaultRealMatrixChangingVisitor() { @Override public double visit(int row, int column, double value) { return rand.nextDouble(); } }); }