Back to index

texmacs  1.0.7.15
Private Member Functions
polynomial Class Reference

#include <polynomial.hpp>

Inheritance diagram for polynomial:
Inheritance graph
[legend]

List of all members.

Private Member Functions

 CONCRETE_TEMPLATE (polynomial, T)
 polynomial (T *a, int n)
 polynomial (T c, int n)
 polynomial ()
 polynomial (T c1)
 polynomial (T c1, T c2)
 polynomial (T c1, T c2, T c3)
T operator[] (int i)
T operator() (T c)
T operator() (T c, int order)

Detailed Description

Definition at line 42 of file polynomial.hpp.


Constructor & Destructor Documentation

polynomial::polynomial ( T a,
int  n 
) [inline, private]

Definition at line 44 of file polynomial.hpp.

                                 :
    rep (tm_new<polynomial_rep<T> > (a, n)) {}
polynomial::polynomial ( T  c,
int  n 
) [inline, private]

Definition at line 46 of file polynomial.hpp.

                                 {
    T* a= (n == 0? NULL: tm_new_array<T> (n));
    for (int i=0; i<n; i++) a[i]= c;
    rep= tm_new<polynomial_rep<T> > (a, n); }
polynomial::polynomial ( ) [inline, private]

Definition at line 50 of file polynomial.hpp.

                       {
    rep= tm_new<polynomial_rep<T> > ((T*) NULL, 0); }
polynomial::polynomial ( T  c1) [inline, private]

Definition at line 52 of file polynomial.hpp.

                           {
    T* a= tm_new_array<T> (1); a[0]= c1;
    rep= tm_new<polynomial_rep<T> > (a, 1); }
polynomial::polynomial ( T  c1,
T  c2 
) [inline, private]

Definition at line 55 of file polynomial.hpp.

                                 {
    T* a= tm_new_array<T> (2); a[0]= c1; a[1]= c2;
    rep= tm_new<polynomial_rep<T> > (a, 2); }
polynomial::polynomial ( T  c1,
T  c2,
T  c3 
) [inline, private]

Definition at line 58 of file polynomial.hpp.

                                       {
    T* a= tm_new_array<T> (3); a[0]= c1; a[1]= c2; a[2]= c3;
    rep= tm_new<polynomial_rep<T> > (a, 3); }

Member Function Documentation

polynomial::CONCRETE_TEMPLATE ( polynomial  ,
T   
) [private]
T polynomial::operator() ( T  c) [private]
T polynomial::operator() ( T  c,
int  order 
) [private]
T polynomial::operator[] ( int  i) [inline, private]

Definition at line 61 of file polynomial.hpp.

{ return i<rep->n? rep->a[i]: T(0); }

The documentation for this class was generated from the following file: