Suppose I have an array M of dimension M = (3, 12, 9) and a vector C with 9 elements.
How do I efficiently multiply M with C so that
M(:,:,1) * C(1)
M(:,:,2) * C(2)
and so forth?
help is much appreciated. Thanks in advance
Suppose I have an array M of dimension M = (3, 12, 9) and a vector C with 9 elements.
How do I efficiently multiply M with C so that
M(:,:,1) * C(1)
M(:,:,2) * C(2)
and so forth?
help is much appreciated. Thanks in advance