Skip to content

Commit

Permalink
Minor.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescarni committed Nov 10, 2023
1 parent 99f498f commit e63aae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expression_diff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ void diff_tensors_forward_impl(
// will produce several times the same derivative, and thus
// we need to store the derivatives in a dictionary in order
// to prevent duplicates. For order-1 derivatives, no duplicate
// derivatives will be produced and thus we can use a plain vector
// derivatives will be produced and thus we can use a plain vector,
// which can be quite a bit faster.
using diff_map_t = fast_umap<dtens_ss_idx_t, expression, diff_map_hasher>;
using diff_vec_t = std::vector<std::pair<dtens_ss_idx_t, expression>>;
Expand Down Expand Up @@ -788,7 +788,7 @@ void diff_tensors_reverse_impl(
// will produce several times the same derivative, and thus
// we need to store the derivatives in a dictionary in order
// to prevent duplicates. For order-1 derivatives, no duplicate
// derivatives will be produced and thus we can use a plain vector
// derivatives will be produced and thus we can use a plain vector,
// which can be quite a bit faster.
using diff_map_t = fast_umap<dtens_ss_idx_t, expression, diff_map_hasher>;
using diff_vec_t = std::vector<std::pair<dtens_ss_idx_t, expression>>;
Expand Down

0 comments on commit e63aae3

Please sign in to comment.