Navigation

Operators and Keywords

Function List:

C++ API

: blkmm (A, B)

Compute products of matrix blocks.

The blocks are given as 2-dimensional subarrays of the arrays A, B. The size of A must have the form [m,k,…] and size of B must be [k,n,…]. The result is then of size [m,n,…] and is computed as follows:

for i = 1:prod (size (A)(3:end))
 C(:,:,i) = A(:,:,i) * B(:,:,i)
endfor

Package: octave