Multiplikasi matriks nupy

numpy.matmul(x1, x2, /, out=None, *, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj, axes, axis]) = <ufunc 'matmul'>
Matrix product of two arrays.

Parameters
x1, x2array_like
Input arrays, scalars not allowed.

outndarray, optional
A location into which the result is stored. If provided, it must have a shape that matches the signature (n,k),(k,m)->(n,m). If not provided or None, a freshly-allocated array is returned.

**kwargs
For other keyword-only arguments, see the ufunc docs.

New in version 1.16: Now handles ufunc kwargs

Returns
yndarray
The matrix product of the inputs. This is a scalar only when both x1, x2 are 1-d vectors.

Raises
ValueError
If the last dimension of x1 is not the same size as the second-to-last dimension of x2.

If a scalar value is passed in.
Impossible Ibis