Ignore:
Timestamp:
Sep 20, 2007, 9:01:57 PM (14 years ago)
Author:
Markus Ringnér
Message:

This revision breaks the vector_test. I know this is against the rules but it is intented for getting help from Jari to identify linking problem. A new function sort_index is added to vector, and tested in vector_test. Everything compiles but vector_test fails to link and I cannot see why

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/vector.h

    r865 r877  
    536536
    537537  /**
     538     Create a vector \a sort_index containing the indeces of
     539     elements in a another vector \a invec.  The elements of \a
     540     sort_index give the index of the vector element which would
     541     have been stored in that position if the vector had been sorted
     542     in place. The first element of \a sort_index gives the index of the least
     543     element in \a invec, and the last element of \a sort_index gives the index of the
     544     greatest element in \a invec . The vector \a invec is not changed.
     545
     546  */
     547  void sort_index(std::vector<size_t>& sort_index, vector& invec);
     548
     549
     550  /**
    538551     \brief Calculate the sum of all vector elements.
    539552
Note: See TracChangeset for help on using the changeset viewer.