Method, System and Program Product for Mask-Based Compression of a Sparse Matrix
OwnerHsilin Huanginventor
Life of this patent
Estimating the term…
Abstract
A method, system and program product includes examining elements of a first matrix in a sequential fashion. Values of the examined elements are determined. A corresponding bit of a first mask is set to a first value if a determined value is zero. A corresponding bit of a first mask is set to a second value if a determined value is non-zero. The non-zero values are packed in a first vector, wherein bits of at least the first mask determine operations on packed values.
Claims20
A method comprising the steps of:
- examining elements of a first matrix in a sequential fashion;
- determining values of the examined elements;
- setting a corresponding bit of a first mask to a first value if a determined value is zero;
- setting a corresponding bit of a first mask to a second value if a determined value is non-zero;
- and
- packing the non-zero values in a first vector, wherein bits of at least the first mask determine operations on packed values.
A system comprising:
- a module for examining elements of a first matrix in a sequential fashion;
- determining values of the examined elements;
- setting a corresponding bit of a first mask to a first value if a determined value is zero;
- setting a corresponding bit of a first mask to a second value if a determined value is non-zero;
- and
- packing the non-zero values in a first vector;
- and
- a module for skipping operations on packed values at least based in part on values of the first mask.
A non-transitory computer-readable storage medium with an executable program stored thereon, wherein the program instructs one or more processors to perform the following steps:
- examining elements of a first matrix in a sequential fashion;
- determining values of the examined elements;
- setting a corresponding bit of a first mask to a first value if a determined value is zero;
- setting a corresponding bit of a first mask to a second value if a determined value is non-zero;
- and
- packing the non-zero values in a first vector, wherein bits of at least the first mask determine operations on packed values.
Dependencies are inferred from the claim text.