uBLAS and stl algorithms
Hi List Members
I have data stored in an matrix. Now, i want to acces the data of the matrix
row-wise. because i want to access it in a sorted manner (without moving the
matrix entries around), i make a stl-vector of matrix_rows. This works fine.
But if i now use the stl algorithms to sort the stl-vector by a certain
criteria, then it happens, that the algorithm is making several copies of a
singe vector entry and overwriting other entries.
Can anyone give me a tipp, what i'm doing wrong?
----------------------------
Here is an example code:
#include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
#include
participants (1)
-
Pascal Bauer