Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages | Search for

# tutorial/Lesson2/real_value.h

    00001 #include <vector>
    00002 //-----------------------------------------------------------------------------
    00008 // INIT
    00009 double real_value(const std::vector<double>& _ind)
    00010 {
    00011   double sum = 0;
    00012   for (unsigned i = 0; i < _ind.size(); i++)
    00013       {
    00014           sum += _ind[i] * _ind[i];
    00015       }
    00016   return -sum;
    00017 }
    00018
    00019
    00020