I am trying to multiply a matrix containing voxel sizes with a list of single numbers (containing the amount of voxels). Something like this:
a = [(1, 2, 3), (2, 3, 4)]
b = [5, 6]
hocuspocus = [1 * 2 * 3 * 5, 2 * 3 * 4 * 6] = [30, 144]
Because I need to provide the voxels in cubic millimeters, I need to multiply the content of each matrix row with each other and then with list b. Haven't yet figured out how to do that in python. Does anyone have any suggestions? Thanks.