|
enum | |
|
enum | |
|
typedef double | Scalar |
|
typedef double | Scalar |
|
typedef Matrix< Scalar, InputsAtCompileTime, 1 > | InputType |
|
typedef Matrix< Scalar, InputsAtCompileTime, 1 > | InputType |
|
typedef Matrix< Scalar, ValuesAtCompileTime, 1 > | ValueType |
|
typedef Matrix< Scalar, ValuesAtCompileTime, 1 > | ValueType |
|
typedef Matrix< Scalar, ValuesAtCompileTime, InputsAtCompileTime > | JacobianType |
|
typedef Matrix< Scalar, ValuesAtCompileTime, InputsAtCompileTime > | JacobianType |
|
const int | m_inputs |
|
int | m_inputs |
|
const int | m_values |
|
int | m_values |
|
◆ lmstr_functor()
lmstr_functor::lmstr_functor |
( |
void |
| ) |
|
|
inline |
◆ df()
int lmstr_functor::df |
( |
const VectorXd & |
x, |
|
|
VectorXd & |
jac_row, |
|
|
VectorXd::Index |
rownb |
|
) |
| |
|
inline |
404 assert(jac_row.size() ==
x.size());
405 double tmp1, tmp2, tmp3, tmp4;
410 tmp3 = (
i >= 8) ? tmp2 : tmp1;
411 tmp4 = (
x[1] * tmp2 +
x[2] * tmp3);
414 jac_row[1] = tmp1 * tmp2 / tmp4;
415 jac_row[2] = tmp1 * tmp3 / tmp4;
int i
Definition: BiCGSTAB_step_by_step.cpp:9
#define assert(e,...)
Definition: Logger.h:744
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
list x
Definition: plotDoE.py:28
References assert, i, and plotDoE::x.
◆ operator()()
int lmstr_functor::operator() |
( |
const VectorXd & |
x, |
|
|
VectorXd & |
fvec |
|
) |
| |
|
inline |
387 double tmp1, tmp2, tmp3;
388 static const double y[15] = {1.4e-1, 1.8e-1, 2.2e-1, 2.5e-1, 2.9e-1, 3.2e-1, 3.5e-1, 3.9e-1,
389 3.7e-1, 5.8e-1, 7.3e-1, 9.6e-1, 1.34, 2.1, 4.39};
391 assert(15 == fvec.size());
394 for (
int i = 0;
i < 15;
i++) {
397 tmp3 = (
i >= 8) ? tmp2 : tmp1;
398 fvec[
i] =
y[
i] - (
x[0] + tmp1 / (
x[1] * tmp2 +
x[2] * tmp3));
Scalar * y
Definition: level1_cplx_impl.h:128
References assert, i, plotDoE::x, and y.
The documentation for this struct was generated from the following file: