23template <
class T>
class Matrix;
24template <
class T>
class Vps;
44 Vps(
int nDim,
int nVar = 0);
117 std::istream &
get(std::istream &is);
120 std::ostream &
put(std::ostream &os)
const;
153template <
class T>
inline
155{
return data[index]; }
157template <
class T>
inline
159{
return data[index]; }
207template <
class T> std::ostream &
operator<<(std::ostream &,
const Vps<T> &x);
213template <
class T>
inline
215{
Vps<T> z(x);
return z *= y; }
217template <
class T>
inline
219{
Vps<T> z(x);
return z *= y; }
221template <
class T>
inline
223{
Vps<T> z(x);
return z *= y; }
225template <
class T>
inline
227{
Vps<T> z(x);
return z *= y; }
229template <
class T>
inline
231{
Vps<T> z(x);
return z /= y; }
233template <
class T>
inline
235{
Vps<T> z(x);
return z /= y; }
238template <
class T>
inline
240{
Vps<T> z(x);
return z += y; }
242template <
class T>
inline
244{
Vps<T> z(x);
return z -= y; }
246template <
class T>
inline
248{
Vps<T> z(x);
return z += y; }
250template <
class T>
inline
252{
Vps<T> z(x);
return z -= y; }
254template <
class T>
inline
256{
Vps<T> z(y);
return z += x; }
258template <
class T>
inline
260{
Vps<T> z(- y);
return z += x; }
262template <
class T>
inline
266template <
class T>
inline
std::istream & operator>>(std::istream &, Vps< T > &x)
Extract from stream.
Vps< T > operator+(const Vps< T > &x, const Vps< T > &y)
Add.
Vps< T > operator/(const Vps< T > &x, const Tps< T > &y)
Divide.
Vps< T > operator*(const Vps< T > &x, const Tps< T > &y)
Multiply.
Vps< T > operator-(const Vps< T > &x, const Vps< T > &y)
Subtract.
std::ostream & operator<<(std::ostream &, const Vps< T > &x)
Insert to stream.
Vector truncated power series.
void setComponent(int index, const Tps< T > &value)
Set component.
int getTopOrder() const
Get highest order contained in any component.
Vps< T > & operator-=(const Vps< T > &y)
Subtraction.
std::ostream & put(std::ostream &os) const
Put a Vps<T> to stream os.
std::istream & get(std::istream &is)
Get a Vps<T> from stream is.
int getVariables() const
Get number of variables (the same in all components).
int getTruncOrder() const
Get lowest truncation order in any component.
Vps< T > operator+() const
Unary plus.
Vps< T > operator-() const
Unary minus.
Vps< T > truncate(int trunc)
Truncate, may also increase truncation order.
Tps< T > & operator[](int index)
Get component.
const Tps< T > & getComponent(int index) const
Get component.
int getDimension() const
Get dimension (number of Tps<T> components).
Vps< T > filter(int lowOrder, int highOrder) const
Extract range of orders, set others to zero.
Vps< T > & operator=(const Vps< T > &)
void check() const
Check consistency.
Vps< T > & operator*=(const Tps< T > &y)
Multiply by Tps<T> and assign.
Vps< T > & operator+=(const Vps< T > &y)
Addition.
Vps< T > & operator/=(const Tps< T > &y)
Divide by Tps<T> and assign.