This forum has been archived. All content is frozen. Please use KDE Discuss instead.

std::set and Eigen::Vector3d

Tags: None
(comma "," separated)
-jomegaA
Registered Member
Posts
2
Karma
0

std::set and Eigen::Vector3d

Thu May 09, 2019 6:30 am
Cannot compile the following code,
Code: Select all
int triangle;
Vector3d vertex;
set<pair<int, Vector3d>> tri_set;
tri_set.insert(make_pair(triangle, vertex));


After insertion, I may need to get the index of the matching pair. This should be performed really fast and I have no clue right now.

CXXFLAGS = -std=c++1y -O3 -ffast-math -fno-cx-limited-range -funroll-loops --param max-unroll-times=2 -march=native
gcc version: 8.3.0 (Debian 8.3.0-6)
eigen version: 3.3.7-1

Last edited by -jomegaA on Thu May 09, 2019 9:46 am, edited 1 time in total.
-jomegaA
Registered Member
Posts
2
Karma
0

Re: std::set and Eigen::Vector3d

Thu May 09, 2019 7:03 am
All the pairs are added once. It is the searching of a pair that is performed millions of times.

A fast searching method is also I am looking forward...
twithaar
Registered Member
Posts
23
Karma
0

Re: std::set and Eigen::Vector3d

Sun Jun 30, 2019 1:19 pm
If you can allow some more up-front calculations, then after creating the set:


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell