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
No related branches found
No related tags found
1 merge request!75Feature/language discretization
......@@ -236,8 +236,8 @@ class PugsFunctionAdapter<OutputType(InputType...)>
AggregateDataVariant& v = std::get<AggregateDataVariant>(result);
OutputType x;
for (size_t i = 0, l = 0; i < x.dimension(); ++i) {
for (size_t j = 0; j < x.dimension(); ++j, ++l) {
for (size_t i = 0, l = 0; i < x.nbRows(); ++i) {
for (size_t j = 0; j < x.nbColumns(); ++j, ++l) {
std::visit(
[&](auto&& 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