#include <libFN.h>
Public Member Functions | |
vec | eval (const vec &cond) |
Evaluates $f(x0,u0)$ (VS: Do we really need common eval? ). | |
virtual vec | eval (const vec &x0, const vec &u0) |
Evaluates $f(x0,u0)$. | |
virtual void | dfdx_cond (const vec &x0, const vec &u0, mat &A, bool full=true) |
Evaluates and writes result into A . | |
virtual void | dfdu_cond (const vec &x0, const vec &u0, mat &A, bool full=true) |
Evaluates and writes result into A . | |
diffbifn (const RV rvx0, const RV rvu0) | |
Default constructor (dimy is not set!). | |
int | _dimx () const |
access function | |
int | _dimu () const |
access function | |
Protected Attributes | |
RV | rvx |
RV | rvu |
int | dimx |
int | dimu |
int | dimy |
Function of two variables.
TODO: 1) Technically, it could have a common parent (e.g. fnc
) with other functions. For now, we keep it as it is. 2) It could be generalized into multivariate form, (which was original meaning of fnc
).
virtual void diffbifn::dfdx_cond | ( | const vec & | x0, | |
const vec & | u0, | |||
mat & | A, | |||
bool | full = true | |||
) | [inline, virtual] |
Evaluates and writes result into A
.
full | denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. |
Reimplemented in bilinfn.
virtual void diffbifn::dfdu_cond | ( | const vec & | x0, | |
const vec & | u0, | |||
mat & | A, | |||
bool | full = true | |||
) | [inline, virtual] |
Evaluates and writes result into A
.
full | denotes that even unchanged entries are to be rewritten. When, false only the changed elements are computed. |
Reimplemented in bilinfn.