SparseMatrixVectorAllocator: Allocates and initializes input to the matrix-vector...

Description Usage Arguments Value

View source: R/sparse_matrix_kernels.R

Description

SparseMatrixVectorAllocator allocates and initializes the sparse matrix and vector that are inputs to the sparse matrix kernel for the purposes of conducting a single performance trial with the SparseMatrixVectorMicrobenchmark function. The matrix and vector are populated and returned in the kernelParameters list.

Usage

1
SparseMatrixVectorAllocator(benchmarkParameters, index)

Arguments

benchmarkParameters

an object of type SparseMatrixMicrobenchmark specifying various parameters needed to generate input for the sparse matrix kernel.

index

an integer index indicating the dimensions of the matrix or vector data to be generated as input for the sparse matrix kernel.

Value

a list containing the matrices or vectors to be input for the sparse matrix kernel for which a single performance trial is to be conducted.


RHPCBenchmark documentation built on May 2, 2019, 6:40 a.m.