On Monday, August 10, 2015 at 9:02:01 PM UTC-4, Arjun Narayanan wrote:
> I would like to construct an iterable collection of sparse matrices. It > appears that I can do this with Array(SparseMatrixCSC, number_of_matrices). > That allocates an array of uninitialized entries and requires you to specify them afterwards. It would be slightly less error-prone to combine the two steps. If you know your arrays A,B,C already, you can just do [A, B, C]. If you don't know them, or are creating them in a loop, you can just do `matrices = SparseMatrixCSC[]` to create an empty array and then `push!(matrices, A)` one by one. (You can use the sizehint! function to slightly speed this up, but compared to the cost of creating sparse matrices I wouldn't worry about it.)
