Inner
Inner(f, x, y, g)computes a generalized inner product of
xandy, using a multiplication functionfand an addition functiong.
See
Examples
>> Inner(f, {a, b}, {x, y}, g)g(f(a, x), f(b, y))Inner can be used to compute a dot product:
>> Inner(Times, {a, b}, {c, d}, Plus) == {a, b} . {c, d}TrueThe inner product of two boolean matrices:
>> Inner(And, {{False, False}, {False, True}}, {{True, False}, {True, True}}, Or){{False, False}, {True, True}}Implementation status
- ✅ - full supported