| 945 | { return Array<shared_ptr<CoefficientFunction>>({ c1 } ); } |
| 946 | |
| 947 | virtual void NonZeroPattern (const class ProxyUserData & ud, |
| 948 | FlatVector<AutoDiffDiff<1,NonZero>> values) const override |
| 949 | { |
| 950 | int hd = Dimensions()[0]; |
| 951 | c1->NonZeroPattern (ud, values); |
| 952 | |
| 953 | for (int i = 0; i < hd; i++) |
| 954 | for (int j = 0; j < hd; j++) |
| 955 | { |
| 956 | int ii = i*hd+j; |
| 957 | int jj = j*hd+i; |
| 958 | values(ii) = values(ii)+values(jj); // logical or |
| 959 | } |
| 960 | } |
| 961 | |
| 962 | virtual void NonZeroPattern (const class ProxyUserData & ud, |
| 963 | FlatArray<FlatVector<AutoDiffDiff<1,NonZero>>> input, |
nothing calls this directly
no test coverage detected