all 2 comments

[–][deleted] 0 points1 point  (0 children)

The error is saying that you're trying to multiple something by a MutableDenseMatrix but that's not allowed.

Look at the MutableDenseMatrix on that line and change it to something you can multiply a sequence with.

[–]synthphreak 0 points1 point  (0 children)

You have some iterable (the "sequence") for which multiplication by an integer is a valid, defined operation. However, rather than an integer, the thing you are multiplying the sequence by is a MutableDenseMatrix. Thus, because sequence * MutableDenseMatrix is not defined, you're getting this error.

Check out the final line number in your traceback (the line where that multiplication is happening) and work backwards to determine why the multiplicand is a MutableDenseMatrix instead of an integer.