| 5566 | }; |
| 5567 | |
| 5568 | shared_ptr<CoefficientFunction> |
| 5569 | MakeSingleContractionCoefficientFunction (shared_ptr<CoefficientFunction> c1, |
| 5570 | shared_ptr<CoefficientFunction> vec, |
| 5571 | int index) |
| 5572 | { |
| 5573 | auto res = make_shared<SingleContractionCoefficientFunction> (c1, vec, index); |
| 5574 | if (c1->IsZeroCF() || vec->IsZeroCF()) |
| 5575 | return ZeroCF(res->Dimensions()); |
| 5576 | return res; |
| 5577 | } |
| 5578 | |
| 5579 | |
| 5580 |
no test coverage detected