User Profile

Collapse

Profile Sidebar

Collapse
acosgaya
acosgaya
Last Activity: Nov 12 '06, 01:42 PM
Joined: Jun 25 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • acosgaya
    started a topic load matrix into a vector of vectors
    in C

    load matrix into a vector of vectors

    hi,

    is there an efficient for to insert the elements of a 2d array into a vector of vectors?
    I have
    Code:
    	vector< vector <int> >  Points
    
    	for (i = 0; i < n; i++ )
    	  	Points.push_back(vector<int>(d));
    
            int Matrix[n][d];
    
            //populate matrix....
    
            //How to load the data in the Matrix into the vector of v.
    ...
    See more | Go to post

  • acosgaya
    started a topic partition a vector of vectors
    in C

    partition a vector of vectors

    hi,

    I am working in this problem, where I have a set of N d-dimensional points, e.g. (4,5,6,8) (2,0,4,6), are 4-d points, which I have stored in a vector of vectors.

    I am trying to partition the vector of vectors according to the median value of one the dimensions.

    I tried to use the stl partition method like this:

    // S is a vector of vectors containing the points
    vector < vector...
    See more | Go to post

  • acosgaya
    started a topic help with sorting d-dimensional points
    in C

    help with sorting d-dimensional points

    Hi, I would like some help as how to approach the following problem:

    I have a set of d-dimensional points (e.g (3,5,8,9,5) is a 5-dimensional point), and I need to sort the points on each of the coordinates.
    The algorithm that I am trying to implement says that the resulting data structure is a multi-pointer list ((d-1)tuply threaded list), each node of which is threaded in each of the single pointer lists corresponding to the...
    See more | Go to post
No activity results to display
Show More
Working...