Boost logo

Boost Users :

Subject: [Boost-users] matrix iterator each element
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2010-03-12 05:23:49


Hello,

I have very large matrices (not sparse), where I have to change
each element. From the documentation I used the example
with which two for-loops.

I use for vectors:

blas::vector<T> l_vec = p_vec;
BOOST_FOREACH( T& i, l_vec)
        i = std::pow(i, p_exponent);

Is there any way to process each element in
the matrix with a loop and an iterator?

Thanks

Phil



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net