Ignore:
Timestamp:
Feb 1, 2008, 5:35:32 PM (13 years ago)
Author:
Peter
Message:

changing class names vectorView => VectorView? and vectorBase => VectorBase?. Refs #256

File:
1 edited

Legend:

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

    r1009 r1015  
    2727#include "matrix.h"
    2828#include "vector.h"
    29 #include "vectorView.h"
     29#include "VectorView.h"
    3030#include "utility.h"
    3131
     
    303303
    304304
    305   vectorView matrix::column_vec(size_t col)
    306   {
    307     vectorView res(*this, col, false);
     305  VectorView matrix::column_vec(size_t col)
     306  {
     307    VectorView res(*this, col, false);
    308308    return res;
    309309  }
    310310
    311311
    312   const vectorView matrix::column_vec(size_t col) const
    313   {
    314     return vectorView(*this, col, false);
    315   }
    316 
    317 
    318   const vectorView matrix::row_vec(size_t col) const
    319   {
    320     return vectorView(*this, col, true);
    321   }
    322 
    323 
    324   vectorView matrix::row_vec(size_t row)
    325   {
    326     vectorView res(*this, row, true);
     312  const VectorView matrix::column_vec(size_t col) const
     313  {
     314    return VectorView(*this, col, false);
     315  }
     316
     317
     318  const VectorView matrix::row_vec(size_t col) const
     319  {
     320    return VectorView(*this, col, true);
     321  }
     322
     323
     324  VectorView matrix::row_vec(size_t row)
     325  {
     326    VectorView res(*this, row, true);
    327327    return res;
    328328  }
     
    558558
    559559
    560   vector operator*(const matrix& m, const vectorBase& v)
     560  vector operator*(const matrix& m, const VectorBase& v)
    561561  {
    562562    utility::vector res(m.rows());
    563563    for (size_t i=0; i<res.size(); ++i)
    564       res(i) = vectorView(m,i) * v;
     564      res(i) = VectorView(m,i) * v;
    565565    return res;
    566566  }
     
    571571    utility::vector res(m.columns());
    572572    for (size_t i=0; i<res.size(); ++i)
    573       res(i) = v * vectorView(m,i,false);
     573      res(i) = v * VectorView(m,i,false);
    574574    return res;
    575575  }
Note: See TracChangeset for help on using the changeset viewer.