I apologize if this question has already been addressed.
I have a ndsdpvar object X, e.g., X = sdpvar(2,2,3), and a vector sdpvar object, e.g., y = sdpvar(3,1).
I wish to compute a product Z of size (2,2,3) such that Z(:,:,i) = X(:,:,i) * y(i), i = 1,2,3.
If X and y were Matlab arrays, I can achieve this quickly using: X .* reshape(y, 1,1,3).
However, this throws an error in Yalmip since Yalmip converts the X object into a 12 x1 sdpvar object. Any simple suggestions for adressing this? Ideally, using vectorization.
Note: the actual dimensions I am working with are on the order of 10x10x2000 (hence the requirement for fast code).
Thanks!