[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with [] for defined types

From: Andy Adler
Subject: Re: Help with [] for defined types
Date: Thu, 8 Jul 2004 08:55:55 -0400 (EDT)

On Thu, 8 Jul 2004, David Bateman wrote:

> What I suggest is that this is implemented as
>       cat(cat(sparse(),full()), galois())
> with the proviso on memory you discuss below. The first cat would promote the
> sparse matrix to a full() as defined by the function
> NDArray concat (const Sparse& ra, const NDArray& rb, Array<int>& ra_idx)
> and the second similarly to a Galois type as
> galois concat (const NDArray& ra, const galois& rb, Array<int>& ra_idx)


Just to be pedantic, Matlab defines [sparse(),full()] as sparse.
This makes sense in most cases, consider
    [sparse( eye(1000) ) , ones(1000,1)];

I don't think this impacts the rest of the discussion.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]