(node: Node, want_type: Type)
| 179 | } |
| 180 | |
| 181 | fn broadcast(node: Node, want_type: Type) -> Result<Node> { |
| 182 | let g = node.get_graph(); |
| 183 | if node.get_type()? == want_type { |
| 184 | Ok(node) |
| 185 | } else { |
| 186 | g.zeros(want_type)?.add(node) |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | fn single_iteration_graph(context: &Context, types: Types) -> Result<Graph> { |
| 191 | // In the state we store (remainder, abs(divisor), -abs(divisor)), with bits dimension pulled |
no test coverage detected