主权项 |
1. A computer-program product comprising a non-transitory machine-readable storage medium that stores instructions operable to cause a data processing apparatus to perform operations including:
accessing a representation of a sparse matrix, wherein the sparse matrix includes multiple rows and columns, wherein each of the rows includes multiple zero elements and multiple non-zero elements, wherein each of the non-zero elements is indexable by a row index and a column index, and wherein the representation includes information about each of the non-zero elements and the respective row indices and column indices of the non-zero elements; using the representation of the sparse matrix in performing the following operations with respect to each of the rows of the sparse matrix:
form a platform-independent binary representation of each non-zero element of the row;form a platform-independent binary representation of each column index that indexes a non-zero element of the row;form a sequence of bits that represents the row and includes the representations of non-zero elements and the representations of column indices; andform a character string that represents the row, wherein the character string is formed by encoding the sequence of bits using Base64 encoding; and storing or distributively communicating the character strings, wherein storing includes storing the character strings in a database, and wherein distributively communicating the character strings include communicating the character strings to grid-computing devices in a grid-computing system to facilitate parallelized statistical analysis of the sparse matrix. |