ScaMaC  0.8.2
A Scalable Matrix Collection
Functions
scamac_statistics.h File Reference

Pattern and value statistics. More...

#include "scamac_generator.h"

Go to the source code of this file.

Functions

ScamacErrorCode scamac_collect_statistics_and_pattern (const ScamacGenerator *gen, ScamacFlag flag, scamac_matrix_statistics_st *st, scamac_matrix_pattern_st **pt)
 collect matrix statistics and/or pattern from generator More...
 
ScamacErrorCode scamac_statistics_empty (scamac_matrix_statistics_st *st, ScamacIdx nrow, ScamacIdx ncol, int valtype)
 set statistics to "empty", i.e., initialize
 
ScamacErrorCode scamac_statistics_update (scamac_matrix_statistics_st *st, ScamacIdx irow, ScamacIdx nzr, const ScamacIdx *cind, const double *val)
 update statistics with data from a matrix row not yet included
 
ScamacErrorCode scamac_statistics_combine (scamac_matrix_statistics_st *stcomb, const scamac_matrix_statistics_st *st)
 combine two parts of a matrix statistics for different sets of rows
 
ScamacErrorCode scamac_statistics_print (const scamac_matrix_statistics_st *st, char **desc)
 create description of statistics for output, printing etc.
 
ScamacErrorCode scamac_pattern_alloc (int px, int py, scamac_matrix_pattern_st **pt)
 allocate memory for pattern
 
ScamacErrorCode scamac_pattern_empty (scamac_matrix_pattern_st *pt, ScamacIdx nrow, ScamacIdx ncol, int valtype)
 set pattern to "empty", i.e., initialize
 
ScamacErrorCode scamac_pattern_update (scamac_matrix_pattern_st *pt, ScamacIdx irow, ScamacIdx nzr, const ScamacIdx *cind)
 update pattern with data from a matrix row not yet included
 
ScamacErrorCode scamac_pattern_combine (scamac_matrix_pattern_st *ptcomb, const scamac_matrix_pattern_st *pt)
 combine two parts of a sparsity pattern for different sets of rows
 
ScamacErrorCode scamac_pattern_print (const scamac_matrix_pattern_st *pt, char **desc)
 create ASCII pattern for output, printing etc. More...
 
ScamacErrorCode scamac_pattern_free (scamac_matrix_pattern_st *pt)
 free memory allocated for pattern
 

Detailed Description

Pattern and value statistics.

Author
Andreas Alvermann (University of Greifswald)
Date
October 2017 — today