$include_dir="/home/hyper-archives/ublas/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [ublas] iterate over non-zeros of a sparse vector
From: Umut Tabak (u.tabak_at_[hidden])
Date: 2010-12-09 11:11:13
On 12/09/2010 04:09 PM, Umut Tabak wrote:
> Dear all,
>
> Is there a way to iterate over the nonzeros of a sparse vector, 
> iterating over non zeros of sparse matrix is provided by Gunther 
> Winkler gently, is there a similar guide line also for the sparse 
> vectors?
>
> Best,
> Umut 
Sorry that I should have checked the documentation, I guess the answer 
is there, actually for a compressed vector, iterators iterate over the 
non-zeros...