Update documentation in autodiff.h

Change-Id: Icc2753b4f5be95022ffd92e479cdd3d9d7959d4c
This commit is contained in:
Sameer Agarwal
2020-03-23 11:15:32 -07:00
parent 8904fa4887
commit 2c1c0932e9
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -206,9 +206,9 @@ struct Make1stOrderPerturbation<N, N, Offset, T, JetT> {
// If one having three parameter blocks with dimensions (3, 2, 4), the call
// Make1stOrderPerturbations<integer_sequence<3, 2, 4>::Apply(params, x);
// will result in the following calls to Make1stOrderPerturbation:
// Make1stOrderPerturbation<0, 3>(params[0], x + 0);
// Make1stOrderPerturbation<3, 2>(params[1], x + 3);
// Make1stOrderPerturbation<5, 4>(params[2], x + 5);
// Make1stOrderPerturbation<0, 0, 3>::Apply(params[0], x + 0);
// Make1stOrderPerturbation<0, 3, 2>::Apply(params[1], x + 3);
// Make1stOrderPerturbation<0, 5, 4>::Apply(params[2], x + 5);
template <typename Seq, int ParameterIdx = 0, int Offset = 0>
struct Make1stOrderPerturbations;
+1 -1
View File
@@ -313,7 +313,7 @@ bool ProductParameterization::ComputeJacobian(const double* x,
int x_cursor = 0;
int delta_cursor = 0;
for (const auto& param : local_params_) {
for (const auto& param : local_params_) {
const int local_size = param->LocalSize();
const int global_size = param->GlobalSize();