OpenSim  OpenSim 3.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
OpenSim::RootSolver Class Reference

A class for finding the N roots of N one-dimensional non-linear equations. More...

#include <RootSolver.h>

Public Member Functions

 RootSolver (VectorFunctionUncoupledNxN *aFunc)
virtual ~RootSolver ()
Array< double > solve (const SimTK::State &s, const Array< double > &ax, const Array< double > &bx, const Array< double > &tol)

Detailed Description

A class for finding the N roots of N one-dimensional non-linear equations.

The rational for making this class solve for the roots of N equations simultaneously is that, for some problems, it is more computationally efficient to evaluate the N equations at the same time, as opposed to one after the other. That is, the N equations, though decoupled, do share some common terms.

This class can always be used for a system where N=1, although there will be some small amount of overhead for this class to function in this way when compared to a class that is dedicated to an N=1.

To construct an instance of this class, the user must provide an instance of a VectorFunctionUncoupledNxN.

Version
1.0
Author
Frank C. Anderson

Constructor & Destructor Documentation

OpenSim::RootSolver::RootSolver ( VectorFunctionUncoupledNxN aFunc)
virtual OpenSim::RootSolver::~RootSolver ( )
virtual

Member Function Documentation

Array<double> OpenSim::RootSolver::solve ( const SimTK::State &  s,
const Array< double > &  ax,
const Array< double > &  bx,
const Array< double > &  tol 
)

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