| 5446 | } |
| 5447 | |
| 5448 | array outer(const array& a, const array& b, StreamOrDevice s /* = {} */) { |
| 5449 | return multiply( |
| 5450 | reshape(a, {static_cast<int>(a.size()), 1}, s), flatten(b, s), s); |
| 5451 | } |
| 5452 | |
| 5453 | array inner(const array& a, const array& b, StreamOrDevice s /* = {} */) { |
| 5454 | if (a.ndim() == 0 || b.ndim() == 0) { |