Description
Fixing bugs originated from commits in #683 and #595 .
Requirements
All three matrices must be int for the multiplication to work.
So if we just convert them to int, it works again
How to test
Beatriz and Mathijs can check if their datasets are working now, Henk and Michael can check the code.
Release notes
Fixing bugs originated from commits in #683 and #595 .