Closed ilayn closed 7 years ago
Currently rejected if systems are multiplied from the right. But for the left multiplication numpy tries element by element method and each entry of an array is allowed for SISO systems. The result becomes a numpy array with object
dtype. Currently I don't know how to prevent this.
Since the api for matrix multiplication requires @
or dot()
, and star is elementwise mult, right multiplication is also allowed now.
Thanks to the fine people of NumPy mailing list, I'll set __array_ufunc__
attribute on the representation classes to override ndarray.__mul__()
.
Finally...
this will require NumPy 1.13+ though I don't expect any objections anyways
When a SISO
Transfer()
orState()
multiplied with ap x m
matrix, should it reject due to size mismatch or elementwise multiply with each element of the matrixP
as if an overloaded Kronecker Productkron(P,G)
?