Lines Matching refs:Linear

70     std::vector<Linear> d;
71 void push_back(Linear const&l) { d.push_back(l); }
76 typedef std::vector<Linear>::iterator iterator;
77 typedef std::vector<Linear>::const_iterator const_iterator;
78 Linear operator[](unsigned i) const {
81 Linear& operator[](unsigned i) { return d.at(i); }
87 Linear &back() {return d.back();}
88 Linear const &back() const {return d.back();}
98 void resize(unsigned n, Linear const& l) { d.resize(std::max<unsigned>(n, 1), l);}
106 Linear& at(unsigned i) { return d.at(i);}
107 //void insert(Linear* before, int& n, Linear const &l) { d.insert(std::vector<Linear>::iterator(before), n, l);}
112 : d(1, Linear(0, 0))
115 : d(1, Linear(a, a))
118 : d(1, Linear(a, b))
123 SBasis(std::vector<Linear> const &ls)
126 SBasis(Linear const &bo)
129 SBasis(Linear* bo)
130 : d(1, bo ? *bo : Linear(0, 0))
132 explicit SBasis(size_t n, Linear const&l) : d(n, l) {}
188 push_back(Linear(*first, *last));
223 const Linear &lin = (*this)[k-1];
257 inline SBasis Linear::toSBasis() const { return SBasis(*this); }
271 SBasis result(a.size(), Linear());
281 SBasis result(p.size(), Linear());
301 /*inline SBasis operator+(const SBasis & a, Linear const & b) {
308 inline SBasis operator-(const SBasis & a, Linear const & b) {
314 inline SBasis& operator+=(SBasis& a, const Linear& b) {
321 inline SBasis& operator-=(SBasis& a, const Linear& b) {
331 if(a.isZero()) return Linear(b, b);
337 if(a.isZero()) return Linear(-b, -b);
344 a = SBasis(Linear(b,b));
351 a = SBasis(Linear(-b,-b));
358 SBasis shift(Linear const &a, int sh);
376 SBasis reciprocal(Linear const &a, int k);
427 inline std::ostream &operator<< (std::ostream &out_file, const Linear &bo) {
443 SBasis sin(Linear bo, int k);
444 SBasis cos(Linear bo, int k);