API  4.5.1
For C++ developers
OpenSim::RootSolver Class Reference

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

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

◆ RootSolver()

OpenSim::RootSolver::RootSolver ( VectorFunctionUncoupledNxN aFunc)

◆ ~RootSolver()

virtual OpenSim::RootSolver::~RootSolver ( )
virtual

Member Function Documentation

◆ solve()

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: