public class FloatDenseMatrixSumAggregator extends MatrixSumAggregator
| Constructor and Description | 
|---|
| FloatDenseMatrixSumAggregator(String name)Create a new matrix aggregator with the given prefix name for the vector
 aggregators. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | aggregate(int i,
         int j,
         float v,
         WorkerAggregatorUsage worker)Add the given value to the entry specified. | 
| FloatDenseMatrix | getMatrix(int numRows,
         AggregatorUsage aggUser)Read the aggregated values of the matrix. | 
| void | register(int numRows,
        MasterAggregatorUsage master)Register the float vector aggregators, one for each row of the matrix. | 
| void | setMatrix(FloatDenseMatrix matrix,
         MasterAggregatorUsage master)Set the values of the matrix to the master specified. | 
getRowAggregatorNamepublic FloatDenseMatrixSumAggregator(String name)
name - the prefix for the row vector aggregatorspublic void register(int numRows,
                     MasterAggregatorUsage master)
              throws InstantiationException,
                     IllegalAccessException
numRows - the number of rowsmaster - the master to register the aggregatorsInstantiationExceptionIllegalAccessExceptionpublic void aggregate(int i,
                      int j,
                      float v,
                      WorkerAggregatorUsage worker)
i - the rowj - the columnv - the valueworker - the worker to aggregatepublic void setMatrix(FloatDenseMatrix matrix, MasterAggregatorUsage master)
matrix - the matrix to set the valuesmaster - the masterpublic FloatDenseMatrix getMatrix(int numRows, AggregatorUsage aggUser)
numRows - the number of rowsaggUser - the master or workerCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.