Prev | Next |
size_t forward_sweep(
bool
print,
size_t
d,
size_t
numvar,
player<
Base> *
Rec,
size_t
J,
Base *
Taylor,
)
AD<
Base>
comparison operations have a different result
from when the information in Rec was recorded.
\[
F : B^n \rightarrow B^m
\]
forward_sweep
computes the d-th order Taylor coefficients
for all the other variables.
Rec->TotNumVar()
.
d+1
.
i = 1, \ldots , n
and
j = 0 , \ldots , d
,
field | Value |
Taylor[ 0 * J + j] | the variable with index zero is not used |
Rec->GetOp(0) |
the operator with index zero must be a NonOp
|
Taylor[ i * J + j] | j-th order coefficient for variable with index i |
Rec->GetOp( i) |
the operator with index i must be a InvOp
|
i = n+1, \ldots , numvar-1
,
j = 0 , \ldots , d-1
,
and
k = n+1, \ldots ,
Rec->NumOp() - 1
,
field | Value |
Taylor[ i * J + j] | j-th coefficient for variable with index i |
Rec->GetOp( i) |
any operator except for InvOp
|
i = 1, \ldots , n
and
j = 0 , \ldots , J-1
,
Taylor[
i *
J +
j]
is not modified.
i = n+1, \ldots , numvar-1
and
j < d
,
Taylor[
i *
J +
j]
is not modified.
For
i = n+1, \ldots , numvar-1
,
Taylor[
i *
J +
d]
is set equal to the
d-th order Taylor coefficient for the variable with index i.