Boost logo

Ublas :

Subject: [ublas] [UBLAS] sparse vector get iterator from position
From: John Reid (j.reid_at_[hidden])
Date: 2010-11-15 04:53:14


Suppose I have one of the ublas sparse vectors and I know it holds a
value at a certain index. How can I find the preceeding and succeeding
non-zero values? In other words, given an index into a sparse vector is
there an efficient way to return the iterator that points to that
element? I can't see anything in the public API given in the documenation.

Thanks,
John.