| 112 } |
112 } |
| 113 |
113 |
| 114 #[inline] |
114 #[inline] |
| 115 fn p2powers_diff(&self) -> Self::Diff { |
115 fn p2powers_diff(&self) -> Self::Diff { |
| 116 let &Loc([x0, x1]) = self; |
116 let &Loc([x0, x1]) = self; |
| 117 [[x0 + x0, x1, 0.0].into(), [0.0, x0, x1 + x1].into()].into() |
117 [ |
| |
118 [x0 + x0, x1 + x1, 0.0].into(), |
| |
119 [0.0, x0 + x0, x1 + x1].into(), |
| |
120 ] |
| |
121 .into() |
| 118 } |
122 } |
| 119 } |
123 } |
| 120 |
124 |
| 121 /// A trait for generating second order polynomial model of dimension `N` on `Self´. |
125 /// A trait for generating second order polynomial model of dimension `N` on `Self´. |
| 122 /// |
126 /// |