Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

vec Namespace Reference

Namespace for generic routines operating on vectors; this helps avoid overloading ambiguities. More...


Typedefs

typedef double AxisCoord
 Type for coordinate on an axis. More...

typedef std::vector<AxisCoordAxisVector
 Type of a list of axis coordinates. More...

typedef AxisVector::size_type AxisSubscript
 Type of the index used by an AxisVector. More...


Functions

string temporaryname (const string prefix)
 Cleaner wrapper for ugly C tempnam() function. More...

string call_gnuplot (const string& title, const string& matrixfilename, const string& outputfilename, const string& gpscript_command, bool parametric)
 Actually calls gnuplot on a given file and saves or displays the output. More...

template<classVectorA, classVectorX> string gnuplot (const VectorA& A, const string& title, const string& outputfilename, const string& gpscript, const VectorX& X)
 General routine for plotting vectors using gnuplot. More...

template<classVector> string gnuplot (const Vector& A, const string& title="", const string& outputfilename="", const string& gpscript="", AxisCoord xo=0, AxisCoord xm=1)
 Shortcut version for plotting a vector using gnuplot; generates linearly spaced labels. More...


Detailed Description

Namespace for generic routines operating on vectors; this helps avoid overloading ambiguities.


Typedef Documentation

typedef double vec::AxisCoord
 

Type for coordinate on an axis.

Definition at line 82 of file tnt_gnuplot.h.

typedef AxisVector::size_type vec::AxisSubscript
 

Type of the index used by an AxisVector.

Definition at line 86 of file tnt_gnuplot.h.

typedef std::vector<AxisCoord> vec::AxisVector
 

Type of a list of axis coordinates.

Definition at line 84 of file tnt_gnuplot.h.


Function Documentation

string vec::call_gnuplot ( const string & title,
const string & matrixfilename,
const string & outputfilename,
const string & gpscript_command,
bool parametric ) [inline]
 

Actually calls gnuplot on a given file and saves or displays the output.

Definition at line 107 of file tnt_gnuplot.h.

template<classVector>
string vec::gnuplot ( const Vector & A,
const string & title = "",
const string & outputfilename = "",
const string & gpscript = "",
AxisCoord xo = 0,
AxisCoord xm = 1 )
 

Shortcut version for plotting a vector using gnuplot; generates linearly spaced labels.

Definition at line 222 of file tnt_gnuplot.h.

template<classVectorA, classVectorX>
string vec::gnuplot ( const VectorA & A,
const string & title,
const string & outputfilename,
const string & gpscript,
const VectorX & X )
 

General routine for plotting vectors using gnuplot.

Definition at line 178 of file tnt_gnuplot.h.

string vec::temporaryname ( const string prefix )
 

Cleaner wrapper for ugly C tempnam() function.

Definition at line 96 of file tnt_gnuplot.h.


Generated at Mon Aug 21 00:31:29 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000