| SparseMatrixMicrobenchmark {RHPCBenchmark} | R Documentation |
This class specifies a sparse matrix microbenchmark.
Description
This class specifies a sparse matrix microbenchmark.
Fields
activea logical indicating whether the microbenchmark is to be executed (TRUE) or not (FALSE).
benchmarkNamea character string that is the name of the microbenchmark.
benchmarkDescriptiona character string describing the microbenchmark.
matrixObjectNamea character string specifying the name of the sparse matrix object that is input to the benchmark; the object must be stored in the R data file with name
matrixObjectName.RData Setting the field to NA_character_ indicates that the test data will be generated dynamically by the function given in theallocatorFunctionfield instead of read from a data file.numberOfRowsan integer specifying the expected number of rows in the input sparse matrix.
numberOfColumnsan integer specifying the expected number of columns in the input sparse matrix.
numberOfNonzerosan integer specifying the expected number of nonzeros in the input sparse matrix.
numberOfTrialsan integer vector specifying the number of performance trials conducted for each matrix to be tested.
numberOfWarmupTrialsan integer vector specifying the number of warmup trials to be performed for each matrix to be tested.
allocatorFunctionthe function that allocates and initializes input to the benchmark function. The function takes a
SparseMatrixMicrobenchmarkobject and an integer index indicating which matrix parameter fromnumberOfRows,numberOfColumns, andnumberOfNonzerosshould be used to generate the matrix.benchmarkFunctionthe benchmark function which executes the functionality to be timed. The function takes a
SparseMatrixMicrobenchmarkand a list of kernel parameters returned by the allocator function.