1. A computer-implemented method comprising: retrieving a first packet that includes one or more non-zero elements corresponding to one or more of a plurality of rows in a sparse-matrix, wherein the one or more non-zero elements are stored in one or more of a plurality of predefined fields included in the first packet that each correspond to one of the plurality of rows; computing a plurality of output values to correspond with each of the plurality of rows using one or more of the non-zero elements and one or more corresponding input values; storing the plurality of output values in a plurality of consecutive locations included in an output buffer; and processing the plurality of output values.