# Changeset 1151

Ignore:
Timestamp:
Feb 25, 2008, 11:32:04 PM (14 years ago)
Message:

remove operator [] in Vector.

Location:
trunk
Files:
8 edited

Unmodified
Removed
• ## trunk/test/matrix_test.cc

 r1121 for (size_t i=0; i
• ## trunk/test/regression_test.cc

 r1121 polynomialfit.fit(x,ln_y); utility::Vector fit=polynomialfit.fit_parameters(); if (fabs(fit[0]-1.012229646706 + fit[1]-0.012561322528 + fit[2]+1.159674470130)>1e-11) { if (fabs(fit(0)-1.012229646706 + fit(1)-0.012561322528 + fit(2)+1.159674470130)>1e-11) { *error << "regression_Polynomial: cannot reproduce fit." << std::endl; ok=false;
• ## trunk/test/svd_test.cc

 r1121 utility::Matrix S(s.size(),s.size()); for (size_t i=0; i
• ## trunk/test/vector_test.cc

 r1135 sum_before=0; for (size_t i=0; i
• ## trunk/yat/utility/VectorBase.cc

 r1121 const double& VectorBase::operator[](size_t i) const { return this->operator()(i); } bool VectorBase::operator==(const VectorBase& other) const {
• ## trunk/yat/utility/VectorBase.h

 r1125 */ const double& operator()(size_t i) const; // Peter, remove this one /// \deprecated const double& operator[](size_t i) const; /**
• ## trunk/yat/utility/VectorMutable.cc

 r1121 double& VectorMutable::operator[](size_t i) { return this->operator()(i); } const VectorMutable& VectorMutable::operator+=(double d) {
• ## trunk/yat/utility/VectorMutable.h

 r1125 */ double& operator()(size_t i); // Peter, remove this one /// \deprecated double& operator[](size_t i); // to allow overload from base class using VectorBase::operator(); using VectorBase::operator[]; /**
Note: See TracChangeset for help on using the changeset viewer.