Changeset 1015 for trunk/yat/utility/matrix.cc
 Timestamp:
 Feb 1, 2008, 5:35:32 PM (13 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/utility/matrix.cc
r1009 r1015 27 27 #include "matrix.h" 28 28 #include "vector.h" 29 #include " vectorView.h"29 #include "VectorView.h" 30 30 #include "utility.h" 31 31 … … 303 303 304 304 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); 308 308 return res; 309 309 } 310 310 311 311 312 const vectorView matrix::column_vec(size_t col) const313 { 314 return vectorView(*this, col, false);315 } 316 317 318 const vectorView matrix::row_vec(size_t col) const319 { 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); 327 327 return res; 328 328 } … … 558 558 559 559 560 vector operator*(const matrix& m, const vectorBase& v)560 vector operator*(const matrix& m, const VectorBase& v) 561 561 { 562 562 utility::vector res(m.rows()); 563 563 for (size_t i=0; i<res.size(); ++i) 564 res(i) = vectorView(m,i) * v;564 res(i) = VectorView(m,i) * v; 565 565 return res; 566 566 } … … 571 571 utility::vector res(m.columns()); 572 572 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); 574 574 return res; 575 575 }
Note: See TracChangeset
for help on using the changeset viewer.