GR Engine
A physics engine in curved space-time
 All Classes Files Functions Variables
Public Member Functions | List of all members
DiffEq Class Referenceabstract

Base class for implementing differential equations. More...

#include <numeric.h>

Inheritance diagram for DiffEq:
Particle Entity

Public Member Functions

 DiffEq ()
 Constructor.
 
virtual ~DiffEq ()
 Virtual destructor.
 
virtual StateVector derivative (StateVector v)=0
 Pure virtual function returning the derivative based on the current state. More...
 

Detailed Description

Base class for implementing differential equations.

Class represents a differential equation of the form dy/dx = f(x, y) The (x, y) forms a state vector, which is passed to the derivative method, corresponding to the function f.

Member Function Documentation

virtual StateVector DiffEq::derivative ( StateVector  v)
pure virtual

Pure virtual function returning the derivative based on the current state.

Parameters
vCurrent state.
Returns
StateVector which contains the derivatives of the components of the state.

Implemented in Entity, and Particle.


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