Changeset 1018


Ignore:
Timestamp:
Feb 1, 2008, 6:00:20 PM (13 years ago)
Author:
Peter
Message:

passing VectorBase? in DataLookup1D - refs #256

Location:
trunk/yat/classifier
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/DataLookup1D.cc

    r1000 r1018  
    6262
    6363
    64   DataLookup1D::DataLookup1D(const utility::vector& v,
     64  DataLookup1D::DataLookup1D(const utility::VectorBase& v,
    6565                             const std::vector<size_t>& index)
    6666    : column_vector_(true), index_(0), owner_(true)
     
    7575
    7676
    77   DataLookup1D::DataLookup1D(const utility::vector& v)
     77  DataLookup1D::DataLookup1D(const utility::VectorBase& v)
    7878    : column_vector_(false), index_(0), owner_(true)
    7979  {
  • trunk/yat/classifier/DataLookup1D.h

    r1000 r1018  
    3535namespace yat {
    3636namespace utility {
    37   class vector;
     37  class VectorBase;
    3838}
    3939namespace classifier { 
     
    7676
    7777    /**
    78        @brief Create general view from utility::vector
     78       @brief Create general view from utility::VectorBase
    7979   
    8080       Constructor creates a proper MatrixLookup that object can view
     
    8282       \f$ x(i) = vec(index(i)) \f$
    8383    */
    84     DataLookup1D(const utility::vector& vec, const std::vector<size_t>& index);
     84    DataLookup1D(const utility::VectorBase& vec,
     85                 const std::vector<size_t>& index);
    8586
    8687    /**
    87        @brief Create general view from utility::vector
     88       @brief Create general view from utility::VectorBase
    8889   
    8990       Constructor creates a proper MatrixLookup that object can view
     
    9192       \f$ x(i) = vec(i) \f$
    9293    */
    93     DataLookup1D(const utility::vector& vec);
     94    DataLookup1D(const utility::VectorBase& vec);
    9495
    9596    ///
Note: See TracChangeset for help on using the changeset viewer.