Get the latest Blender, older versions, or experimental builds.
Stay up-to-date with the new features in the latest Blender releases.
Access production assets and knowledge from the open movies.
Documentation on the usage and features in Blender.
Latest development updates, by Blender developers.
Guidelines, release notes and development docs.
A platform to collect and share results of the Blender Benchmark.
The yearly event that brings the community together.
Support core development with a monthly contribution.
Perform a single donation with more payment options available.
Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
/*
* Solver.hpp
*
* Created on: Jan 8, 2009
* Author: rubensmits
*/
#ifndef SOLVER_HPP_
#define SOLVER_HPP_
#include <vector>
#include "eigen_types.hpp"
namespace iTaSC{
class Solver{
public:
enum SolverParam {
DLS_QMAX = 0,
DLS_LAMBDA_MAX,
DLS_EPSILON
};
virtual ~Solver(){};
// gc = grouping of constraint output ,
// size of vector = nc, alternance of true / false to indicate the grouping of output
virtual bool init(unsigned int nq, unsigned int nc, const std::vector<bool>& gc)=0;
virtual bool solve(const e_matrix& A, const e_vector& Wy, const e_vector& ydot, const e_matrix& Wq, e_vector& qdot, e_scalar& nlcoef)=0;
virtual void setParam(SolverParam param, double value)=0;
}
#endif /* SOLVER_HPP_ */