Boost logo

Ublas :

From: Nico Galoppo (nico_at_[hidden])
Date: 2007-03-21 16:10:06


While I don't have personal experience with this, I've seen this discussed
recently. You can search the mailing list archives for

indirect_array
matrix_indirect
vector_indirect

Cheers,

--nico

Gross, Steve wrote:
> In RogueWave, there’s a “pick” operation where, given a vector and a
> list of indices, roguewave gives you a proxy to that vector. The proxy’s
> elements are indexed back on that given list of indices. For instance:
>
>
>
> V = { 1, 3, 5, 7, 6, 4, 2, 0 }
>
> W = pick(V, 0, 2, 1, 5) = { 1, 5, 3, 4 }
>
>
>
> In the above example, W is a proxy vector to V, and it points to (in
> order) the 0^th , 2^nd , 1^st , and 5^th element of V.
>
>
>
> Is there an equivalent feature in ublas?
>
>
>
> Thanks,
>
> --Steve
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas

-- 
nico galoppo von borries     |  address: 119 fidelity st., carrboro
comp. graphics phd. student  |           north carolina, 27510 USA
UNC, chapel hill             |  phone: +1 (919) 962-1898 (office)
                              |         +1 (919) 942-4388 (home)
                              |  email: nico at cs dot unc dot edu
                              |  homepage: http://www.ngaloppo.org