Skip to content
Snippets Groups Projects
Verified Commit 1e159319 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Static block derivatives: minor simplification

parent 17ba2733
Branches
No related tags found
No related merge requests found
......@@ -697,8 +697,7 @@ StaticModel::computeChainRuleJacobian()
for (const auto &[indices, d1] : blocks_derivatives[blk])
{
auto &[eq, var, lag] { indices };
assert(lag == 0);
if (eq >= nb_recursives && var >= nb_recursives)
assert(eq >= nb_recursives && var >= nb_recursives && lag == 0);
blocks_jacobian_sparse_column_major_order[blk].try_emplace({eq-nb_recursives, var-nb_recursives}, d1);
}
blocks_jacobian_sparse_colptr[blk] = computeCSCColPtr(blocks_jacobian_sparse_column_major_order[blk], blocks[blk].mfs_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment