| 160 G: SupportGenerator<N, F>, |
160 G: SupportGenerator<N, F>, |
| 161 { |
161 { |
| 162 /// Change the [bisection tree][BTImpl] of the [`BTFN`] to a different one. |
162 /// Change the [bisection tree][BTImpl] of the [`BTFN`] to a different one. |
| 163 /// |
163 /// |
| 164 /// This can be used to convert a [`PreBTFN`] to a full [`BTFN`], or the change |
164 /// This can be used to convert a [`PreBTFN`] to a full [`BTFN`], or the change |
| 165 /// the aggreagator; see also [`self.convert_aggregator`]. |
165 /// the aggreagator; see also [`Self::convert_aggregator`]. |
| 166 pub fn instantiate<BTNew: BTImpl<N, F, Data = G::Id>>( |
166 pub fn instantiate<BTNew: BTImpl<N, F, Data = G::Id>>( |
| 167 self, |
167 self, |
| 168 domain: Cube<N, F>, |
168 domain: Cube<N, F>, |
| 169 depth: BTNew::Depth, |
169 depth: BTNew::Depth, |
| 170 ) -> BTFN<F, G, BTNew, N> |
170 ) -> BTFN<F, G, BTNew, N> |