Changeset 680 for trunk/yat/utility


Ignore:
Timestamp:
Oct 11, 2006, 7:49:03 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #153. Introduced yat namespace. Removed alignment namespace. Clean up of code.

Location:
trunk/yat/utility
Files:
27 edited

Legend:

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

    r675 r680  
    2222*/
    2323
    24 #include "yat/utility/Alignment.h"
    25 #include "yat/utility/matrix.h"
     24#include "Alignment.h"
     25#include "matrix.h"
    2626
    2727#include <utility>
     
    2929
    3030namespace theplu {
     31namespace yat {
    3132namespace utility {
    32 namespace alignment {
    3333
    3434  double NeedlemanWunsch(const utility::matrix& s,
     
    8282  }
    8383
    84 }}} // of namespace alignment namespace utility and namespace theplu
     84}}} // of namespace utility, yat and theplu
  • trunk/yat/utility/Alignment.h

    r675 r680  
    1 #ifndef _theplu_utility_alignment_
    2 #define _theplu_utility_alignment_
     1#ifndef _theplu_yat_utility_alignment_
     2#define _theplu_yat_utility_alignment_
    33
    44// $Id$
     
    2929
    3030namespace theplu {
     31namespace yat {
     32namespace utility {
    3133
    32 namespace utility {
    3334  class matrix;
    34 }
    35 
    36 namespace utility {
    37 namespace alignment {
    3835
    3936  ///
     
    6158                         const double gap);
    6259
    63 }}} // of namespace alignment namespace utility and namespace theplu
     60}}} // of namespace utility, yat and theplu
    6461
    6562#endif
  • trunk/yat/utility/CommandLine.cc

    r675 r680  
    1 //$Id$
     1// $Id$
    22
    33/*
     
    3535
    3636namespace theplu {
     37namespace yat {
    3738namespace utility {
    3839
     
    292293  }
    293294
    294 }} // of namespace svm_ensemble and namespace theplu
     295}}} // of namespace utility, yat and theplu
  • trunk/yat/utility/CommandLine.h

    r679 r680  
    1 #ifndef _theplu_utility_commandline_
    2 #define _theplu_utility_commandline_
     1#ifndef _theplu_yat_utility_commandline_
     2#define _theplu_yat_utility_commandline_
    33
    44//$Id$
     
    3535
    3636namespace theplu {
     37namespace yat {
    3738namespace utility {
    3839
     
    248249    std::list<Option*> options_;
    249250    std::vector<std::string> arguments_;
    250    
    251251  };
    252252
    253253
    254 }} // end of namespace utility and namespace theplu
    255 
    256 #endif
    257 
    258 
    259 
    260 
     254}}} // end of namespace utility, yat and theplu
     255
     256#endif
  • trunk/yat/utility/Exception.h

    r675 r680  
    1 #ifndef _theplu_utility_exception_
    2 #define _theplu_utility_exception_
     1#ifndef _theplu_yat_utility_exception_
     2#define _theplu_yat_utility_exception_
    33
    44// $Id$
     
    3030
    3131namespace theplu {
     32namespace yat {
    3233namespace utility {
    3334
     
    5152
    5253
    53 }} // of namespace utility and namespace theplu
     54}}} // of namespace utility, yat and theplu
    5455
    5556#endif
  • trunk/yat/utility/FileIO.cc

    r675 r680  
    2424*/
    2525
    26 #include "yat/utility/FileIO.h"
     26#include "FileIO.h"
    2727
    2828#include <iostream>
     
    3131
    3232namespace theplu {
     33namespace yat {
    3334namespace utility {
    3435
     
    5657  }
    5758
    58 }} // of namespace utility and namespace theplu
     59}}} // of namespace utility, yat and theplu
  • trunk/yat/utility/FileIO.h

    r675 r680  
     1#ifndef _theplu_yat_utility_fileio_
     2#define _theplu_yat_utility_fileio_
     3
    14// $Id$
    25
     
    2427*/
    2528
    26 #ifndef _theplu_utility_fileio_
    27 #define _theplu_utility_fileio_
    28 
    2929#include <string>
    3030
     
    3232
    3333namespace theplu {
     34namespace yat {
    3435namespace utility {
    3536
     
    7172  };
    7273
    73 }} // of namespace utility and namespace theplu
     74}}} // of namespace utility, yat and theplu
    7475
    7576#endif
  • trunk/yat/utility/NNI.cc

    r675 r680  
    2424*/
    2525
    26 #include "yat/utility/NNI.h"
    27 
    28 #include "yat/utility/stl_utility.h"
     26#include "NNI.h"
     27#include "stl_utility.h"
    2928
    3029#include <algorithm>
     
    3231#include <fstream>
    3332
    34 
    3533namespace theplu {
     34namespace yat {
    3635namespace utility {
    3736
     
    9493
    9594
    96 }} // of namespace utility and namespace theplu
     95}}} // of namespace utility, yat and theplu
  • trunk/yat/utility/NNI.h

    r675 r680  
    1 #ifndef _theplu_utility_nni_
    2 #define _theplu_utility_nni_
     1#ifndef _theplu_yat_utility_nni_
     2#define _theplu_yat_utility_nni_
    33
    44// $Id$
     
    2727*/
    2828
    29 #include "yat/utility/matrix.h"
     29#include "matrix.h"
    3030
    3131#include <iostream>
     
    3434
    3535namespace theplu {
     36namespace yat {
    3637namespace utility {
    3738
     
    146147  };
    147148
    148 }} // of namespace utility and namespace theplu
     149}}} // of namespace utility, yat and theplu
    149150
    150151#endif
  • trunk/yat/utility/Option.cc

    r675 r680  
    2929
    3030namespace theplu {
     31namespace yat {
    3132namespace utility {
    3233
     
    6061  }
    6162
    62 } // end of namespace utility
    63 } // end of namespace theplu
     63}}} // of namespace utility, yat and theplu
  • trunk/yat/utility/Option.h

    r675 r680  
    1 #ifndef _theplu_utility_option_
    2 #define _theplu_utility_option_
     1#ifndef _theplu_yat_utility_option_
     2#define _theplu_yat_utility_option_
    33
    44// $Id$
     
    2727#include <string>
    2828
    29 
    3029namespace theplu {
     30namespace yat {
    3131namespace utility {
    3232
     
    107107  };
    108108
    109 
    110 
    111 
    112 } // end of namespace utility
    113 } // end of namespace theplu
     109}}} // of namespace utility, yat and theplu
    114110
    115111#endif
  • trunk/yat/utility/PCA.cc

    r675 r680  
    2222*/
    2323
    24 #include "yat/utility/PCA.h"
    25 #include "yat/utility/SVD.h"
     24#include "PCA.h"
     25#include "SVD.h"
    2626
    2727#include <iostream>
     
    3030
    3131namespace theplu {
     32namespace yat {
    3233namespace utility {
    3334
     
    199200
    200201
    201 }} // of namespace utility and namespace theplu
     202}}} // of namespace utility, yat and theplu
  • trunk/yat/utility/PCA.h

    r675 r680  
    1 #ifndef _theplu_utility_pca_
    2 #define _theplu_utility_pca_
     1#ifndef _theplu_yat_utility_pca_
     2#define _theplu_yat_utility_pca_
    33
    44// $Id$
     
    2525*/
    2626
    27 #include "yat/utility/matrix.h"
    28 #include "yat/utility/vector.h"
     27#include "matrix.h"
     28#include "vector.h"
    2929
    3030namespace theplu {
     31namespace yat {
    3132namespace utility {
    3233
     
    135136
    136137
    137 }} // of namespace utility and namespace theplu
     138}}} // of namespace utility, yat and theplu
    138139
    139140#endif
  • trunk/yat/utility/SVD.cc

    r675 r680  
    2222*/
    2323
    24 #include "yat/utility/SVD.h"
    25 
     24#include "SVD.h"
    2625
    2726namespace theplu {
     27namespace yat {
    2828namespace utility {
    2929
     
    6666
    6767
    68 }} // of namespace utility and namespace theplu
     68}}} // of namespace utility, yat and theplu
  • trunk/yat/utility/SVD.h

    r675 r680  
    1 #ifndef _theplu_utility_svd_
    2 #define _theplu_utility_svd_
     1#ifndef _theplu_yat_utility_svd_
     2#define _theplu_yat_utility_svd_
    33
    44// $Id$
     
    2525*/
    2626
    27 #include "yat/utility/matrix.h"
    28 #include "yat/utility/vector.h"
     27#include "matrix.h"
     28#include "vector.h"
    2929
    3030#include <gsl/gsl_linalg.h>
    3131
    3232namespace theplu {
     33namespace yat {
    3334namespace utility {
    3435
     
    140141  }; 
    141142
    142 }} // of namespace utility and namespace theplu
     143}}} // of namespace utility, yat and theplu
    143144
    144145#endif
  • trunk/yat/utility/WeNNI.cc

    r675 r680  
    2424*/
    2525
    26 #include "yat/utility/WeNNI.h"
    27 
    28 #include "yat/utility/matrix.h"
    29 #include "yat/utility/stl_utility.h"
     26#include "WeNNI.h"
     27#include "matrix.h"
     28#include "stl_utility.h"
    3029
    3130#include <algorithm>
     
    3433
    3534namespace theplu {
     35namespace yat {
    3636namespace utility {
    3737
     
    8787
    8888
    89 }} // of namespace utility and namespace theplu
     89}}} // of namespace utility, yat and theplu
  • trunk/yat/utility/WeNNI.h

    r675 r680  
    1 #ifndef _theplu_utility_wenni_
    2 #define _theplu_utility_wenni_
     1#ifndef _theplu_yat_utility_wenni_
     2#define _theplu_yat_utility_wenni_
    33
    44// $Id$
     
    2727*/
    2828
    29 #include "yat/utility/NNI.h"
    30 
    31 #include "yat/utility/matrix.h"
     29#include "NNI.h"
     30#include "matrix.h"
    3231
    3332#include <iostream>
    3433
    35 
    36 
    3734namespace theplu {
     35namespace yat {
    3836namespace utility {
    3937
     
    7674  };
    7775
    78 }} // of namespace utility and namespace theplu
     76}}} // of namespace utility, yat and theplu
    7977
    8078#endif
  • trunk/yat/utility/kNNI.cc

    r675 r680  
    2424*/
    2525
    26 #include "yat/utility/kNNI.h"
    27 #include "yat/utility/stl_utility.h"
     26#include "kNNI.h"
     27#include "stl_utility.h"
    2828
    2929#include <algorithm>
     
    3333
    3434namespace theplu {
     35namespace yat {
    3536namespace utility {
    3637
     
    9091
    9192
    92 }} // of namespace utility and namespace theplu
     93}}} // of namespace utility, yat and theplu
  • trunk/yat/utility/kNNI.h

    r675 r680  
    1 #ifndef _theplu_utility_knni_
    2 #define _theplu_utility_knni_
     1#ifndef _theplu_yat_utility_knni_
     2#define _theplu_yat_utility_knni_
    33
    44// $Id$
     
    2727*/
    2828
    29 #include "yat/utility/NNI.h"
     29#include "NNI.h"
    3030
    3131#include <iostream>
     
    3333
    3434namespace theplu {
     35namespace yat {
    3536namespace utility {
    3637
     
    6566  };
    6667
    67 }} // of namespace utility and namespace theplu
     68}}} // of namespace utility, yat and theplu
    6869
    6970#endif
  • trunk/yat/utility/matrix.cc

    r675 r680  
    2424*/
    2525
    26 #include "yat/utility/matrix.h"
    27 
    28 #include "yat/utility/vector.h"
    29 #include "yat/utility/stl_utility.h"
    30 #include "yat/utility/utility.h"
     26#include "matrix.h"
     27#include "vector.h"
     28#include "stl_utility.h"
     29#include "utility.h"
    3130
    3231#include <cmath>
     
    3635#include <gsl/gsl_blas.h>
    3736
    38 
    3937namespace theplu {
     38namespace yat {
    4039namespace utility {
    4140
     
    241240
    242241
    243 }} // of namespace utility and namespace thep
     242}}} // of namespace utility, yat and thep
  • trunk/yat/utility/matrix.h

    r675 r680  
    1 #ifndef _theplu_utility_matrix_
    2 #define _theplu_utility_matrix_
     1#ifndef _theplu_yat_utility_matrix_
     2#define _theplu_yat_utility_matrix_
    33
    44// $Id$
     
    2828*/
    2929
    30 #include "yat/utility/vector.h"
    31 #include "yat/utility/Exception.h"
     30#include "vector.h"
     31#include "Exception.h"
    3232
    3333#include <gsl/gsl_matrix.h>
     
    3535
    3636namespace theplu {
     37namespace yat {
    3738namespace utility {
    3839
     
    463464
    464465
    465 }} // of namespace utility and namespace theplu
     466}}} // of namespace utility, yat and theplu
    466467
    467468#endif
  • trunk/yat/utility/stl_utility.cc

    r675 r680  
    2323*/
    2424
    25 #include "yat/utility/stl_utility.h"
    26 #include "yat/utility/utility.h"
     25#include "stl_utility.h"
     26#include "utility.h"
    2727
    2828#include <iostream>
     
    3333
    3434namespace theplu {
     35namespace yat {
    3536namespace utility {
    3637
     
    102103  }
    103104
    104 }} // end of namespace utility and namespace thep
     105}}} // end of namespace utility, yat and thep
  • trunk/yat/utility/stl_utility.h

    r675 r680  
    1 #ifndef _theplu_utility_stl_utility_
    2 #define _theplu_utility_stl_utility_
     1#ifndef _theplu_yat_utility_stl_utility_
     2#define _theplu_yat_utility_stl_utility_
    33
    44// $Id$
     
    5454
    5555namespace theplu {
     56namespace yat {
    5657namespace utility {
    5758
     
    133134
    134135
    135 }} // of namespace utility and namespace theplu
     136}}} // of namespace utility, yat and theplu
    136137
    137138#endif
  • trunk/yat/utility/utility.cc

    r675 r680  
    2323*/
    2424
    25 #include "yat/utility/utility.h"
    26 
     25#include "utility.h"
     26#include "stl_utility.h"
     27#include "vector.h"
    2728#include "yat/random/random.h"
    28 #include "yat/utility/stl_utility.h"
    29 #include "yat/utility/vector.h"
    3029
    3130#include <sstream>
     
    3332
    3433namespace theplu {
     34namespace yat {
    3535namespace utility {
    3636
     
    116116
    117117
    118 }} // end of namespace utility and namespace thep
     118}}} // end of namespace utility, yat and thep
  • trunk/yat/utility/utility.h

    r675 r680  
    1 #ifndef _theplu_utility_utility_
    2 #define _theplu_utility_utility_
     1#ifndef _theplu_yat_utility_utility_
     2#define _theplu_yat_utility_utility_
    33
    44// $Id$
     
    2929/// @file utility/utility.h
    3030///
    31 /// Some useful functions are placed here
     31/// @brief Some useful functions are placed here
    3232///
    3333
     
    3737
    3838namespace theplu {
     39namespace yat {
    3940namespace utility {
    4041
     
    8283
    8384
    84 }} // of namespace utility and namespace theplu
     85}}} // of namespace utility, yat and theplu
    8586
    8687#endif
  • trunk/yat/utility/vector.cc

    r675 r680  
    2525*/
    2626
    27 #include "yat/utility/vector.h"
    28 #include "yat/utility/matrix.h"
    29 #include "yat/utility/stl_utility.h"
    30 #include "yat/utility/utility.h"
    31 
     27#include "vector.h"
     28#include "matrix.h"
     29#include "stl_utility.h"
     30#include "utility.h"
    3231
    3332#include <iostream>
     
    3635#include <utility>
    3736
    38 
    3937namespace theplu {
     38namespace yat {
    4039namespace utility {
    4140
     
    264263
    265264
    266 }} // of namespace utility and namespace thep
     265}}} // of namespace utility, yat and thep
  • trunk/yat/utility/vector.h

    r675 r680  
    1 #ifndef _theplu_utility_vector_
    2 #define _theplu_utility_vector_
     1#ifndef _theplu_yat_utility_vector_
     2#define _theplu_yat_utility_vector_
    33
    44// $Id$
     
    2828*/
    2929
    30 #include "yat/utility/Exception.h"
     30#include "Exception.h"
    3131
    3232#include <iostream>
     
    3838
    3939namespace theplu {
     40namespace yat {
    4041namespace utility {
    4142
     
    490491
    491492
    492 }} // of namespace utility and namespace theplu
     493}}} // of namespace utility, yat and theplu
    493494
    494495#endif
Note: See TracChangeset for help on using the changeset viewer.