Back to index

texmacs  1.0.7.15
Public Member Functions | Private Attributes
vector_function_rep Class Reference

#include <function_extra.hpp>

Inheritance diagram for vector_function_rep:
Inheritance graph
[legend]
Collaboration diagram for vector_function_rep:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 vector_function_rep (vector< function< F, T > > v2)
vector< Tapply (F x)
ball< vector< T > > apply (ball< F > x)
function< F, vector< T > > derive (V var)
tree expression ()

Private Attributes

vector< function< F, T > > v

Detailed Description

Definition at line 95 of file function_extra.hpp.


Constructor & Destructor Documentation

Definition at line 98 of file function_extra.hpp.

: v (v2) {}

Member Function Documentation

vector<T> vector_function_rep::apply ( x) [inline, virtual]

Implements function_rep< F, vector< T > >.

Definition at line 99 of file function_extra.hpp.

                        {
    int i, n= N(v);
    T* a= tm_new_array<T> (n);
    for (i=0; i<n; i++)
      a[i]= v[i] (x);
    return vector<T> (a, n);
  }

Here is the call graph for this function:

ball<vector<T> > vector_function_rep::apply ( ball< F >  x) [inline, virtual]

Implements function_rep< F, vector< T > >.

Definition at line 106 of file function_extra.hpp.

                                     {
    int i, n= N(v);
    ball<T>* a= tm_new_array<ball<T> > (n);
    for (i=0; i<n; i++)
      a[i]= v[i] (x);
    return as_ball (vector<ball<T> > (a, n));
  }

Here is the call graph for this function:

function<F,vector<T> > vector_function_rep::derive ( V  var) [inline, virtual]

Implements function_rep< F, vector< T > >.

Definition at line 113 of file function_extra.hpp.

                                        {
    int i, n= N(v);
    vector<function<F,T> > w;
    for (i=0; i<n; i++) w[i]= v[i]->derive (var);
    return vector_function (w);
  }

Here is the call graph for this function:

tree vector_function_rep::expression ( ) [inline, virtual]

Implements function_rep< F, vector< T > >.

Definition at line 119 of file function_extra.hpp.

                     {
    return compound ("as_function", as_tree (v));
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 96 of file function_extra.hpp.


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