Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/Telescopes/TCC/html/cheby_8cc_source.html
Дата изменения: Tue Sep 15 02:25:37 2015
Дата индексирования: Sun Apr 10 00:27:18 2016
Кодировка:
lsst.tcc: src/cheby.cc Source File
lsst.tcc  1.2.2-3-g89ecb63
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cheby.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include "tcc/cheby.h"
3 
4 namespace tcc {
5 
6  std::string ChebyshevPolynomial::__repr__() const {
7  std::ostringstream os;
8  os << *this;
9  return os.str();
10  }
11 
12  std::ostream &operator<<(std::ostream &os, ChebyshevPolynomial const &cheby) {
13  os << "ChebyshevPolynomial((";
14  bool isFirst = false;
15  for (std::vector<double>::const_iterator iter = cheby.params.begin();
16  iter != cheby.params.end(); ++iter) {
17  if (isFirst) {
18  isFirst = false;
19  } else {
20  os << ", ";
21  }
22  os << *iter;
23  }
24  os << "), " << cheby.getMinX() << ", " << cheby.getMaxX() << ")";
25  return os;
26  }
27 
28 }
std::vector< double > params
Definition: cheby.h:112
double getMaxX() const
Definition: cheby.h:72
double getMinX() const
Definition: cheby.h:67
std::string __repr__() const
Definition: cheby.cc:6
std::ostream & operator<<(std::ostream &os, ChebyshevPolynomial const &cheby)
Definition: cheby.cc:12