proj home

Files   Classes   Functions   Hierarchy  

probparab3 Class Reference

Test Problem of a 3D parabola. More...

#include <probparab.h>

Collaboration diagram for probparab3:

List of all members.

Public Member Functions

 probparab3 ()
 Initialize memory for xi.
void operator() (double &fval)

Public Attributes

double a0
double a1
double a2
dumbarray< double > xi


Detailed Description

Test Problem of a 3D parabola.

Definition at line 63 of file probparab.h.


Constructor & Destructor Documentation

probparab3::probparab3 (  ) 

Initialize memory for xi.

Definition at line 18 of file probparab.cpp.

References a0, a1, a2, and xi.

00019   : xi(3)
00020 {
00021   xi(0)=&a0;
00022   xi(1)=&a1;
00023   xi(2)=&a2;
00024 }


Member Function Documentation

void probparab3::operator() ( double &  fval  )  [inline]

Definition at line 77 of file probparab.h.

References xi.

00078   {
00079     double a = xi[0]-1.0;
00080     double b = xi[1]-2.0;
00081     double c = xi[2]-5.0;
00082     fval = a*a+b*b+c*c;
00083   }


Member Data Documentation

Definition at line 68 of file probparab.h.

Referenced by probparab3().

Definition at line 69 of file probparab.h.

Referenced by probparab3().

Definition at line 70 of file probparab.h.

Referenced by probparab3().

Definition at line 72 of file probparab.h.

Referenced by operator()(), and probparab3().


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

Generated on Fri Mar 4 00:50:11 2011 for Chelton Evans Source by  doxygen 1.5.8