Ignore:
Timestamp:
Jan 7, 2007, 2:48:38 PM (16 years ago)
Author:
Peter
Message:

moving vector matrix multiplication to matrix.h and matrix.cc

File:
1 edited

Legend:

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

    r734 r737  
    119119
    120120
    121   vector operator*(const matrix& m, const vector& v)
    122   {
    123     utility::vector res(m.rows());
    124     for (size_t i=0; i<res.size(); ++i)
    125       res(i) = vector(m,i) * v;
    126     return res;
    127   }
    128 
    129 
    130   vector operator*(const vector& v, const matrix& m)
    131   {
    132     utility::vector res(m.columns());
    133     for (size_t i=0; i<res.size(); ++i)
    134       res(i) = v * vector(m,i,false);
    135     return res;
    136   }
    137 
    138121}}} // end of namespace utility, yat and thep
Note: See TracChangeset for help on using the changeset viewer.