Allocate space for sparse matrix
Both matrix dimensions, m and n, must be smaller
than 2^31-1 on 32-bit platforms, or 2^48-1 on 64-bit
platforms.
When you assign several times into a matrix you created with
spalloc, the preallocated memory can prevent repeated reallocations.
However, assigning into a sparse matrix is still a relatively expensive operation, which
should usually be avoided if it can easily be replaced by one of the following: