Inner
Inner(f, x, y, g)
computes a generalized inner product of
x
andy
, using a multiplication functionf
and 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}True
The 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