Wiki

Clone wiki

symja_android_library / Symbols / Inner

Inner

Inner(f, list1, list2, g)
returns the inner product of two lists. Inner works with tensors of any depth.

Examples

>>> Inner(f, {a, b}, {x, y}, g)
g(f(a,x),f(b,y))
>>> Inner(f, {{{a, b}}, {{x, y}}}, {{1}, {2}}, g)
{{{g(f(a,1),f(b,2))}},{{g(f(x,1),f(y,2))}}}

Updated