29 ~ProcSplitter()
override {}
31 void configure(ConfIterator iter,
unsigned int n)
override;
32 void eval(ValueIterator iter,
unsigned int n)
const override;
33 std::vector<double> deriv(ValueIterator iter,
unsigned int n)
const override;
44 void ProcSplitter::configure(ConfIterator iter,
unsigned int n) {
46 for (
unsigned int i = 0;
i <
count;
i++)
47 iter << Variable::FLAG_OPTIONAL;
48 iter << iter++(Variable::FLAG_ALL);
52 void ProcSplitter::eval(ValueIterator iter,
unsigned int n)
const {
55 while (i < iter.size()) {
67 std::vector<double> ProcSplitter::deriv(ValueIterator iter,
unsigned int n)
const {
68 unsigned int size = 0;
69 for (ValueIterator iter2 = iter; iter2; ++iter2)
72 std::vector<double>
result(size * size);
73 for (
unsigned int i = 0; i <
size; i++)
74 result[i * size + i] = 1.0;