March 2003
Intermediate to advanced
656 pages
39h 30m
English
innerproduct
innerproduct(a,b)
Returns an array m with the result of the
inner product of a and
b, like
matrixmultiply(
a
,transpose(
b
)).
a
.shape[-1] must equal
b
.shape[-1], and
m
.shape is the tuple
a
.shape[:-1]+
b
.shape[0:-1:-1].