Skip to content
Snippets Groups Projects
Commit c2d4c08b authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix PugsFunctionAdapter for R^p -> R^dxd functions

parent 36cf2dc6
Branches
Tags
1 merge request!75Feature/language discretization
...@@ -236,8 +236,8 @@ class PugsFunctionAdapter<OutputType(InputType...)> ...@@ -236,8 +236,8 @@ class PugsFunctionAdapter<OutputType(InputType...)>
AggregateDataVariant& v = std::get<AggregateDataVariant>(result); AggregateDataVariant& v = std::get<AggregateDataVariant>(result);
OutputType x; OutputType x;
for (size_t i = 0, l = 0; i < x.dimension(); ++i) { for (size_t i = 0, l = 0; i < x.nbRows(); ++i) {
for (size_t j = 0; j < x.dimension(); ++j, ++l) { for (size_t j = 0; j < x.nbColumns(); ++j, ++l) {
std::visit( std::visit(
[&](auto&& Aij) { [&](auto&& Aij) {
using Aij_T = std::decay_t<decltype(Aij)>; using Aij_T = std::decay_t<decltype(Aij)>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment