On the other hand Tom,
If you know that you will be doing < N insertions in the future,
you can always pre-allocate a Table / Array that is of size N
and pre-loaded with null values. You can then 'insert' by
over-writing the nth row. Furthermore you can always append
size N chunks whenever.
For
On Mar 21, 2012, at 7:08 AM, Tom Diethe wrote:
>>> I'm writing a wrapper for sparse matrices (CSR format) and therefore
>>> need to store three vectors and 3 scalars:
>>>
>>> - data(float64 vector)
>>> - indices(int32 vector)
>>> - indptr (int32 vector)
>>>
>>> - nrows (int
>> I'm writing a wrapper for sparse matrices (CSR format) and therefore
>> need to store three vectors and 3 scalars:
>>
>> - data (float64 vector)
>> - indices (int32 vector)
>> - indptr (int32 vector)
>>
>> - nrows (int32 scalar)
>> - ncols (int32 scalar)
>> - nnz