[SciPy-user] Construct sparse matrix from sparse blocks

Anne Archibald peridot.faceted@gmail....
Fri Feb 8 15:29:03 CST 2008


On 08/02/2008, Nathan Bell <wnbell@gmail.com> wrote:

> Regarding names, we already have spkron ~= kron and spdiags ~= diag.
> I think we'll have to abandon this approach for the proposed functions
> since spbmat, sphstack, spvstack  are terrible :)
>
> Which is better,
>
>   column_stack_sparse
>   row_stack_sparse
>   block_matrix_sparse
>
> or
>
>   sparse_column_stack
>   sparse_row_stack
>   sparse_block_matrix
>
>
> I prefer the XXX_sparse format since it aids tab completion.  Suggestions?

What's wrong with scipy.splinalg.hstack? Or scipy.sparse.hstack? This
is what namespaces are *for*...

Anne


More information about the SciPy-user mailing list