Changeset 899 for trunk/yat/utility


Ignore:
Timestamp:
Sep 26, 2007, 11:26:25 PM (14 years ago)
Author:
Peter
Message:

changed euclidean to fulfill design criteria, removes sum_squared_deviation from AveragerPairWeighted?, also changed vector::sort to use stl rather than gsl. refs #248 and fixes #253

Location:
trunk/yat/utility
Files:
2 edited

Legend:

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

    r880 r899  
    3030#include "yat/random/random.h"
    3131
     32#include <algorithm>
    3233#include <cassert>
    3334#include <cmath>
     
    533534  {
    534535    assert(v.gsl_vector_p());
    535     gsl_sort_vector(v.gsl_vector_p());
     536    std::sort(v.begin(), v.end());
    536537  }
    537538
  • trunk/yat/utility/vector.h

    r882 r899  
    549549  /**
    550550     Sort the elements in the vector.
    551 
    552      \note Bug in GSL: if the vector contains one ore more NaNs the
    553      call never returns.
    554551  */
    555552  void sort(vector&);
Note: See TracChangeset for help on using the changeset viewer.