| 6534 | }; |
| 6535 | |
| 6536 | void VectorialCoefficientFunction::GenerateCode(Code &code, FlatArray<int> inputs, int index) const |
| 6537 | { |
| 6538 | int input = 0; |
| 6539 | int input_index = 0; |
| 6540 | // code.Declare (code.res_type, index, Dimensions()); |
| 6541 | code.Declare (index, Dimensions(), IsComplex()); |
| 6542 | for (int i = 0; i < Dimension(); i++) |
| 6543 | { |
| 6544 | auto cfi = ci[input]; |
| 6545 | code.body += Var(index, i, this->Dimensions()) |
| 6546 | .Assign(Var(inputs[input], input_index, cfi->Dimensions()), false); |
| 6547 | input_index++; |
| 6548 | if (input_index == cfi->Dimension() ) |
| 6549 | { |
| 6550 | input++; |
| 6551 | input_index = 0; |
| 6552 | } |
| 6553 | } |
| 6554 | |
| 6555 | } |
| 6556 | |
| 6557 | |
| 6558 | shared_ptr<CoefficientFunction> |
no test coverage detected