modified type info to accept sparse matrices and to run on 32-bit machines