source: trunk/c++_tools/classifier/utility.cc @ 616

Last change on this file since 616 was 616, checked in by Jari Häkkinen, 15 years ago

Removed gslapi namespace and put the code into utility namespace.
Move #ifndef _header_ idiom to top of touched header files.
Removed unneccesary #includes, and added needed #includes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date ID
File size: 413 bytes
RevLine 
[581]1// $Id$
2
3#include <c++_tools/classifier/utility.h>
4
5
6#include <c++_tools/classifier/DataLookup1D.h>
[616]7#include <c++_tools/utility/vector.h>
[581]8
9
10namespace theplu {
11namespace classifier {
12
[616]13  void convert(const DataLookup1D& lookup, utility::vector& vector) 
[581]14  {
[616]15    vector=utility::vector(lookup.size());
[581]16    for(u_int i=0; i<lookup.size(); i++)
17      vector(i)=lookup(i);
18  }
19
20}} // of namespace classifier and namespace theplu
Note: See TracBrowser for help on using the repository browser.